joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e1a00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x687eed
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x70af2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00464660
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CPdfLine.0
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0052a71c
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
call fcn.004e1c10
mov ecx, dword [ebp - 0x10]
movss xmm0, dword [ebp + 8]
movss dword [ecx + 0xc], xmm0
movss xmm0, dword [ebp + 0xc]
subss xmm0, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
movss dword [edx + 0x10], xmm0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x10]
movss xmm0, dword [ebp + 0x14]
movss dword [edx + 0x18], xmm0
push 0x14
call fcn.004096f0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0
je 0x4e1abb
mov ecx, dword [ebp - 0x14]
call fcn.0052c157
mov dword [ebp - 0x18], eax
jmp 0x4e1ac2
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0052a80d
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ee8f0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6889d4
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x70af2c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x711cec]
cmp dword [eax + 0x1fec], 0
jne 0x4eea3d
push 0x24
call fcn.004096f0
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0
je 0x4ee94e
mov ecx, dword [ebp - 0x40]
call fcn.004d0720
mov dword [ebp - 0x44], eax
jmp 0x4ee955
mov dword [ebp - 0x44], 0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [0x711cec]
mov eax, dword [ebp - 0x50]
mov dword [edx + 0x1fec], eax
lea ecx, [ebp - 0x74]
push ecx
call fcn.00425fe0
add esp, 4
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov ecx, dword [ebp - 0x24]
shr ecx, 0xa
mov dword [ebp - 0x54], ecx
lea ecx, [ebp - 0x3c]
call fcn.004096c0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x58]
push eax
push str._ld000_d
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00410020
add esp, 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0x64], esp
push 0x6dadd8
call fcn.00409260
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x6c], esp
lea edx, [ebp - 0x3c]
push edx
call fcn.0040da60
mov byte [ebp - 4], 1
call fcn.00423420
add esp, 8
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 8], 0
je 0x4eea0d
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0052a80d
jmp 0x4eea19
mov edx, dword [ebp - 0x38]
push edx
call fcn.004129f0
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [0x711cec]
mov ecx, dword [ecx + 0x1fec]
call fcn.004d0a20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408e30
push 0x14
call fcn.004096f0
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 3
cmp dword [ebp - 0x48], 0
je 0x4eea61
mov ecx, dword [ebp - 0x48]
call fcn.0052a475
mov dword [ebp - 0x4c], eax
jmp 0x4eea68
mov dword [ebp - 0x4c], 0
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x60], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
push 0xffffffffffffffff
push 0x10
mov ecx, dword [ebp - 0x34]
call fcn.0052a609
cmp dword [ebp + 8], 0
je 0x4eea9b
mov ecx, dword [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0052a80d
jmp 0x4eeaa7
mov edx, dword [ebp - 0x34]
push edx
call fcn.004129f0
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [0x711cec]
mov ecx, dword [ecx + 0x1fec]
call fcn.004d0880
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006588a1
mov esp, ebp
pop ebp
ret
Function at 0x4f1000
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x688c28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70af2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00464660
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CPAContext.0
mov ecx, dword [ebp - 0x10]
add ecx, 0x24
call fcn.004096c0
mov byte [ebp - 4], 1
push 0xa
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0052a71c
mov byte [ebp - 4], 2
push 0x64
call fcn.004096f0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x18], 0
je 0x4f1089
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.004fca20
mov dword [ebp - 0x1c], eax
jmp 0x4f1090
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0052a80d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.004f1210
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4fe030
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6898e2
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x70af2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
mov ecx, dword [ecx + 0x1c]
call fcn.004a1740
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0052a80d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x30]
mov edx, dword [eax + 0x28]
call edx
mov dword [ebp - 0x28], eax
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
call fcn.004a2f30
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0052a80d
cmp dword [ebp - 0x14], 0
jne 0x4fe0d6
push str.no_current_point
lea ecx, [ebp - 0x2c]
call fcn.00409260
push 0x6eb76c
lea edx, [ebp - 0x2c]
push edx
call fcn.0065b6ba
push 0x38
call fcn.004096f0
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
je 0x4fe0f7
mov ecx, dword [ebp - 0x1c]
call fcn.0049dcb0
mov dword [ebp - 0x20], eax
jmp 0x4fe0fe
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x48
call fcn.0052a80d
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, dword [eax + 0x30]
mov eax, dword [edx + 0x24]
call eax
mov ecx, dword [ebp - 0x18]
call fcn.0047ee10
fstp qword [ebp - 0x3c]
movsd xmm0, qword [ebp - 0x3c]
sub esp, 8
movsd qword [esp], xmm0
mov ecx, dword [ebp - 0x18]
call fcn.004a20a0
fstp qword [ebp - 0x44]
movsd xmm0, qword [ebp - 0x44]
sub esp, 8
movsd qword [esp], xmm0
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp + 8]
push edx
call fcn.0040da60
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x30]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x30]
mov edx, dword [eax + 0x5c]
call edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x30]
mov eax, dword [ebp - 0x10]
mov edx, dword [edx]
mov ecx, dword [eax + 0x30]
mov eax, dword [edx + 0x24]
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408e30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x520670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0052cd39
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5206a7
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.005206c6
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x523e51
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x523e96
call fcn.0052cd39
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x523e96
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x523eb2
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.005400fc
mov ebx, eax
test edi, edi
je 0x523eb0
test esi, esi
je 0x523eb0
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x5248ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x5249aa
cmp dword [esi + 0x20], 0
je 0x5249aa
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x5249aa
cmp dword [ebp + 8], 0
je 0x5249aa
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.0052cd39
push 0x6a75f8
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x52497b
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5249aa
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.00546fe2
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x52499b
test edi, edi
je 0x52499b
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x5249a6
mov ecx, esi
call fcn.0052468e
mov eax, ebx
jmp 0x5249ac
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x529815
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x684ca8
call fcn.00659908
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x52983b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x52989b
call fcn.00529f92
push eax
lea ecx, [ebp - 0x10]
call fcn.00408e50
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 [0x698a64]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0066832e
push eax
call fcn.0040fd50
add esp, 0x14
test esi, esi
je 0x52988e
push esi
call fcn.00662940
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004089b0
mov eax, ebx
call fcn.006598d1
ret 8

Function at 0x52a102
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.0052975b
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.0052a31b
cmp esi, 3
je 0x52a140
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x52a189
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x52a163
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00523f26
jmp 0x52a174
push 0xff
mov ecx, esi
call fcn.00408730
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00412a10
jmp 0x52a1ad
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x52a1ad
push dword [esi]
push dword [ebp - 4]
call fcn.005459e7
pop edi
pop esi
leave
ret 0xc

Function at 0x52a272
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0052a31b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x52a2ba
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00523f26
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00412a10
jmp 0x52a2c5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.005459e7
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x53a026
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 0x53a079
push esi
push dword [ebp + 8]
call fcn.0053a20c
mov edi, eax
test edi, edi
je 0x53a074
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_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x53a074
mov eax, dword [ebp - 8]
jmp 0x53a08b
mov eax, dword [ebp + 0x10]
jmp 0x53a08b
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x5426d1
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x5426fa
call fcn.0052cd39
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
je 0x542727
push esi
push eax
mov ecx, 0x713b54
call fcn.00543715
mov eax, esi
pop esi
pop ebp
ret 0x18
push 0
push dword [esi + 4]
call fcn.00542cef
int3

Function at 0x548f3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x548f92
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x548f6b
call fcn.0053ddf9
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x548f80
call fcn.0053ddf9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x548f92
call fcn.0053ddf9
call fcn.0052cd39
cmp dword [eax + 0x3c], 0
je 0x548fa7
push edi
mov ecx, ebx
call fcn.0054866c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00549179
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x548fd0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x548fdc
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x553139
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x553153
call fcn.0052cd39
mov esi, dword [eax + 0xc]
push 0x6acc1c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x5531a9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5531a9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x553188
xor esi, esi
jmp 0x55319e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.005531b2
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x5531ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x5e5245
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x69263e
call fcn.0065993c
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00408950
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x6a4ba8
call fcn.0040fae0
cmp eax, 0xffffffff
jne 0x5e531f
push 0
push 0x698e34
lea ecx, [ebp - 0x278]
call fcn.0040fae0
cmp eax, 0xffffffff
jne 0x5e531f
push 0
push 0x6a7d5c
lea ecx, [ebp - 0x278]
call fcn.0040fae0
cmp eax, 0xffffffff
jne 0x5e531f
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00408950
mov edi, eax
pop ecx
mov dword [ebp - 0x27c], edi
lea ecx, [edi + 0x10]
mov dword [ebp - 0x280], ecx
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea eax, [ebp - 0x114]
push eax
push 0x104
push edx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x5e52ee
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x698a64]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.004089b0
jmp 0x5e5358
lea eax, [ebp - 0x114]
push eax
call fcn.00662940
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.004087a0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.004089b0
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x5e5345
mov edi, dword [ebp - 0x274]
jmp 0x5e5358
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x698a64]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.004089b0
mov eax, edi
call fcn.006598e6
ret
Function at 0x6219a6
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0066d6c4
pop ecx
test eax, eax
jne 0x6219e8
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0052a459
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6219ae
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x6766cd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0067654a
Function at 0x403b50
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
mov eax, dword [0x420a50]
xor eax, esp
mov dword [esp + 0x100], eax
push esi
mov esi, dword [esp + 0x110]
lea eax, [esp + 4]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
cmp dword [esp + 0x10c], 0
je 0x403b9e
test byte [esp + esi + 4], 1
je 0x403ba5
pop esi
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.00407a57
add esp, 0x104
ret
test byte [esp + esi + 4], 1
je 0x403bc5
push edi
mov edi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 1
push 0xff
push esi
call edi
push 0
push 3
push 0xff
push esi
call edi
pop edi
mov ecx, dword [esp + 0x104]
pop esi
xor ecx, esp
call fcn.00407a57
add esp, 0x104
ret

Function at 0x403d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x420a50]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
push 0
push 0
push 0x147
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
mov dword [0x421eb4], eax
call fcn.00402b40
add esp, 4
push 0x3ee
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [0x422d38], eax
mov eax, dword [0x421eb4]
mov ecx, dword [eax*4 + 0x422210]
mov ecx, dword [ecx]
lea edx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x403d83
cmp dword [0x422d00], 0
je 0x403de4
cmp dword [0x422e40], 0
je 0x403de4
lea edx, [esp + 8]
push edx
push str.User_changed_keyboard_layout_to__s.kbl_n
push 0x422d70
call fcn.004079c0
mov eax, 0x422d70
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403dc2
mov ecx, dword [0x422e40]
push ecx
sub eax, edx
push eax
push 1
push 0x422d70
call fcn.00407ebf
add esp, 0x10
lea eax, [esp + 8]
add eax, 0xffffffff
jmp 0x403df0
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x403df0
mov edx, dword [str..bmp]
mov cl, byte [0x41a9a8]
push 0x50
push 0
push 0
mov dword [eax], edx
push 0
lea edx, [esp + 0x18]
push edx
push 0
mov byte [eax + 4], cl
call dword [sym.imp.USER32.dll_LoadImageA]
test eax, eax
mov dword [0x4234e0], eax
je 0x403e6e
push eax
mov eax, dword [0x422d38]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_GetMapMode]
mov ecx, dword [0x422d38]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetMapMode]
push edi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [0x421eb4]
mov eax, dword [edx*4 + 0x422210]
mov ecx, dword [eax + 4]
mov dword [0x42220c], ecx
call fcn.00403be0
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.00407a57
add esp, 0x108
ret