joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b88ca
Capabilities:
Create directory

Disassembly:
push 0x69c
mov eax, 0x602e15
call fcn.004d1a03
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x10], ebx
jne 0x4b88e9
xor al, al
jmp 0x4b8b78
push esi
lea ecx, [ebp - 0x690]
call fcn.0040c5c0
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4b8903
mov esi, dword [esi]
push 0x5c
pop edi
cmp word [esi + eax*2 - 2], di
je 0x4b893b
push 0x647dec
lea ecx, [ebp - 0x678]
call fcn.00417ec0
push eax
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 1
call fcn.00422fb0
lea ecx, [ebp - 0x678]
mov byte [ebp - 4], bl
call fcn.0040f8c0
cmp dword [ebp - 0x67c], 8
lea ecx, [ebp - 0x418]
mov edx, 0x100
lea eax, [ebp - 0x690]
cmovae eax, dword [ebp - 0x690]
push edx
push ecx
push edx
lea ecx, [ebp - 0x618]
push ecx
push edx
lea ecx, [ebp - 0x218]
push ecx
push 3
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00581b16
add esp, 0x24
lea ecx, [ebp - 0x648]
push 0x647dec
call fcn.00417ec0
mov esi, eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x678]
call fcn.00417ec0
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x660]
call fcn.00439b80
pop ecx
lea ecx, [ebp - 0x678]
call fcn.0040f8c0
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 6
call fcn.0040f8c0
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x630]
call fcn.00417ec0
lea ecx, [ebp - 0x660]
mov byte [ebp - 4], 7
call fcn.004b881c
test al, al
je 0x4b8b55
cmp dword [ebp - 0x620], 0
je 0x4b8b55
cmp dword [ebp - 0x61c], 8
lea eax, [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
cmp word [eax], di
jne 0x4b8a4f
cmp dword [ebp - 0x61c], 8
lea ecx, [ebp - 0x630]
lea eax, [ebp - 0x630]
cmovae ecx, dword [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
sub ecx, eax
sar ecx, 1
push 1
push ecx
lea ecx, [ebp - 0x630]
call fcn.00427360
push ecx
push ecx
lea ecx, [ebp - 0x630]
call fcn.004b8be1
mov esi, eax
jmp 0x4b8b4a
push esi
push ebx
lea eax, [ebp - 0x648]
push eax
lea ecx, [ebp - 0x630]
call fcn.00422cc0
lea eax, [esi + 1]
mov byte [ebp - 4], 8
push eax
push ebx
lea ecx, [ebp - 0x630]
call fcn.00427360
push 0x647dec
lea ecx, [ebp - 0x6a8]
call fcn.00417ec0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x648]
cmp dword [ebp - 0x634], 8
push dword [ebp - 0x638]
cmovae ecx, dword [ebp - 0x648]
push ecx
push ecx
mov ecx, eax
call fcn.00439ab0
push eax
lea ecx, [ebp - 0x678]
call fcn.00411c20
lea eax, [ebp - 0x678]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x660]
call fcn.00422fb0
lea ecx, [ebp - 0x678]
call fcn.0040f8c0
lea ecx, [ebp - 0x6a8]
mov byte [ebp - 4], 8
call fcn.0040f8c0
lea ecx, [ebp - 0x660]
call fcn.004b881c
test al, al
jne 0x4b8b2c
cmp dword [ebp - 0x64c], 8
lea eax, [ebp - 0x660]
cmovae eax, dword [ebp - 0x660]
push eax
call fcn.0057fab3
pop ecx
test eax, eax
jne 0x4b8b7e
push ecx
push ecx
lea ecx, [ebp - 0x630]
call fcn.004b8be1
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 7
mov esi, eax
call fcn.0040f8c0
cmp esi, 0xffffffff
jne 0x4b8a63
mov bl, 1
lea ecx, [ebp - 0x630]
call fcn.0040f8c0
lea ecx, [ebp - 0x660]
call fcn.0040f8c0
lea ecx, [ebp - 0x690]
call fcn.0040f8c0
mov al, bl
call fcn.004d19ad
ret
lea ecx, [ebp - 0x648]
call fcn.0040f8c0
jmp 0x4b8b55
Function at 0x4b9324
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd40
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor bl, bl
mov dword [ebp - 0xd3c], edx
push edi
mov dword [ebp - 0xd38], ecx
xor esi, esi
mov dword [ebp - 0xd40], eax
test bl, bl
jne 0x4b956e
push 0x200
lea eax, [ebp - 0x50c]
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x50c]
push esi
push str..PhysicalDrive_d
push 0xffffffffffffffff
push 0xff
push eax
call fcn.004b8ce1
add esp, 0x14
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push eax
lea eax, [ebp - 0x50c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b9564
and dword [ebp - 0xd34], 0
lea eax, [ebp - 0xd18]
push 0xc
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xd18], eax
mov dword [ebp - 0xd14], eax
push 0x800
push eax
lea eax, [ebp - 0xd0c]
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0xd34]
push 0
push eax
push 0x800
lea eax, [ebp - 0xd0c]
push eax
push 0xc
lea eax, [ebp - 0xd18]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4b9557
push 0x100
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x100
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x30c]
push 0x100
push 0
push eax
call fcn.0056c1d0
mov edx, dword [ebp - 0xcfc]
lea eax, [ebp - 0x20c]
add esp, 0xc
lea ecx, [ebp - 0xd0c]
push eax
push 0
call fcn.004b8d7f
mov edx, dword [ebp - 0xcf8]
lea eax, [ebp - 0x30c]
push eax
push 0
lea ecx, [ebp - 0xd0c]
call fcn.004b8d7f
mov edx, dword [ebp - 0xcf4]
lea eax, [ebp - 0x10c]
push eax
push 1
lea ecx, [ebp - 0xd0c]
call fcn.004b8d7f
movsx eax, byte [ebp - 0x10c]
push eax
call fcn.00574f9c
add esp, 0x1c
test eax, eax
jne 0x4b94d8
movsx eax, byte [ebp - 0xf9]
push eax
call fcn.00574f9c
pop ecx
test eax, eax
je 0x4b955d
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.0040ece0
mov ecx, dword [ebp - 0xd38]
push eax
call fcn.0040d2d0
lea ecx, [ebp - 0xd30]
call fcn.0040b640
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.0040ece0
mov ecx, dword [ebp - 0xd3c]
push eax
call fcn.0040d2d0
lea ecx, [ebp - 0xd30]
call fcn.0040b640
lea eax, [ebp - 0x30c]
push eax
lea ecx, [ebp - 0xd30]
call fcn.0040ece0
mov ecx, dword [ebp - 0xd40]
push eax
call fcn.0040d2d0
lea ecx, [ebp - 0xd30]
call fcn.0040b640
mov bl, 1
jmp 0x4b955d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x4b9353
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0a85
leave
ret
Function at 0x4b99cc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2aa4
call fcn.004d1ce0
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, ecx
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
push str.iphlpapi.dll
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov dword [ebp - 0x2aa4], eax
test eax, eax
jne 0x4b9a3e
xor al, al
jmp 0x4b9b61
push str.GetAdaptersInfo
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4b9b34
lea ecx, [ebp - 0x2aa0]
mov dword [ebp - 0x2aa0], 0x2880
push ecx
lea ecx, [ebp - 0x2a8c]
push ecx
call eax
test eax, eax
jne 0x4b9b34
push ebx
push esi
push 3
pop eax
mov dword [ebp - 0x2a9c], eax
lea esi, [ebp - 0x2a8c]
mov ebx, edi
lea eax, [ebp - 0x2a94]
sub ebx, eax
lea ecx, [esi + 8]
call fcn.004b9b6e
push 6
mov dword [ebp - 0x2a98], eax
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
xor edx, edx
lea ecx, [ebp - 0x2a94]
add ecx, edx
mov al, byte [ebx + ecx]
cmp al, byte [ecx]
jne 0x4b9acf
inc edx
cmp edx, 6
jb 0x4b9ab2
mov ecx, dword [ebp - 0x2a98]
jmp 0x4b9aed
mov eax, dword [esi + 0x1a0]
cmp eax, 6
je 0x4b9adf
cmp eax, 0x17
jne 0x4b9b28
mov ecx, dword [ebp - 0x2a98]
cmp dword [ebp - 0x2a9c], ecx
jle 0x4b9b28
mov al, byte [esi + 0x194]
mov byte [edi], al
mov al, byte [esi + 0x195]
mov byte [edi + 1], al
mov al, byte [esi + 0x196]
mov byte [edi + 2], al
mov al, byte [esi + 0x197]
mov byte [edi + 3], al
mov al, byte [esi + 0x198]
mov byte [edi + 4], al
mov al, byte [esi + 0x199]
mov byte [edi + 5], al
mov dword [ebp - 0x2a9c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x4b9a8f
pop esi
pop ebx
push dword [ebp - 0x2aa4]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
push 6
lea eax, [ebp - 0x2a94]
push 0
push eax
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x2a94]
mov ecx, edi
push eax
call fcn.004b9841
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004d0a85
leave
ret
Function at 0x4b9b6e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor eax, eax
push 3
pop esi
inc eax
mov dword [ebp - 0x10c], 0x104
mov dword [ebp - 0x110], eax
mov ebx, ecx
lea eax, [ebp - 0x11c]
xor ecx, ecx
push eax
push 0x20019
push ecx
push str.SystemCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x114], ecx
call edi
test eax, eax
jne 0x4b9d29
push ebx
push str._sConnection
push 0xffffffffffffffff
lea eax, [ebp - 0x108]
push 0x103
push eax
call fcn.0042a370
add esp, 0x14
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x11c]
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4b9d21
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.MediaSubType
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4b9d19
push 0x104
push eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], 1
push eax
mov dword [ebp - 0x10c], 0x103
call fcn.0056c1d0
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push str.PnpInstanceID
push dword [ebp - 0x118]
call ebx
test eax, eax
jne 0x4b9d19
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x4b9d10
mov ebx, 0x654268
push ebx
call fcn.005811f0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00587950
add esp, 0x10
test eax, eax
jne 0x4b9cdf
xor esi, esi
jmp 0x4b9d19
mov eax, dword [ebp - 0x114]
cmp eax, 1
jne 0x4b9d10
push ebx
call fcn.005811f0
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00587950
add esp, 0x10
test eax, eax
je 0x4b9d0a
push 2
pop esi
jmp 0x4b9d19
mov eax, dword [ebp - 0x114]
cmp eax, 2
push 1
pop eax
cmove esi, eax
push dword [ebp - 0x118]
call edi
push dword [ebp - 0x11c]
call edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d0a85
leave
ret
Function at 0x4ba56e
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
ret

Function at 0x4c4db1
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 0x4c4df6
call fcn.004ca969
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
test eax, eax
je 0x4c4df6
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov esi, eax
test esi, esi
je 0x4c4e12
push esi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004c12ca
mov ebx, eax
test edi, edi
je 0x4c4e10
test esi, esi
je 0x4c4e10
push esi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4c54e3
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 0x4c55a1
cmp dword [esi + 0x20], 0
je 0x4c55a1
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4c55a1
cmp dword [ebp + 8], 0
je 0x4c55a1
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.004ca969
push 0x60b5e0
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c5572
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 0x4c55a1
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.004ce0dc
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x4c5592
test edi, edi
je 0x4c5592
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
test ebx, ebx
je 0x4c559d
mov ecx, esi
call fcn.004c52f4
mov eax, ebx
jmp 0x4c55a3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4f5c50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4f5c71
mov ecx, dword [ebp - 4]
or ecx, 8
mov dword [ebp - 4], ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4f5c89
mov eax, dword [ebp - 4]
or eax, 1
mov dword [ebp - 4], eax
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x4f5ca1
mov edx, dword [ebp - 4]
or edx, 2
mov dword [ebp - 4], edx
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
test eax, eax
jge 0x4f5cb7
mov ecx, dword [ebp - 4]
or ecx, 4
mov dword [ebp - 4], ecx
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
test edx, edx
jge 0x4f5ccf
mov eax, dword [ebp - 4]
or eax, 0x20
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4fcd50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xa8]
je 0x4fcd8e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x108]
je 0x4fcd8e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xa8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0x108]
jne 0x4fcda1
jmp 0x4fcefd
mov edx, dword [ebp - 4]
cmp dword [edx + 0x108], 0
je 0x4fce27
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x28], 0x17
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x20], eax
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x134]
call edx
push 0
push 0
push 0
push str.killfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004fc7b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x108], 0
cmp dword [ebp + 8], 0
jne 0x4fce32
jmp 0x4fcefd
cmp dword [ebp + 8], 0
je 0x4fcefd
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
call eax
cmp eax, dword [ebp - 4]
jne 0x4fcefd
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, dword [edx + 0xf4]
call eax
movzx ecx, al
test ecx, ecx
je 0x4fcefd
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x100]
call edx
movzx eax, al
test eax, eax
je 0x4fcefd
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x108], edx
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x48], 0x18
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x40], eax
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
mov edx, dword [ebp - 4]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x108]
mov edx, dword [eax + 0x134]
call edx
push 0
push 0
push 0
push str.setfocus
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x108]
push ecx
mov ecx, dword [ebp - 4]
call fcn.004fc7b0
mov esp, ebp
pop ebp
ret 4
Function at 0x512f30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
push 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 4], eax
push 1
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x51300a
push 0
push 0
push 0
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x51300a
cmp dword [ebp - 0x24], 0x10
jne 0x512fd6
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax + 4]
jne 0x512fd6
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0xc], edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [ebp - 0x28]
push edx
call fcn.004fd8e0
add esp, 4
movzx eax, al
test eax, eax
jne 0x512ffd
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x24], 0x12
jne 0x513005
jmp 0x51300a
jmp 0x512f84
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x24], 0x12
jne 0x513030
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x527750
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x69c], 0
je 0x527801
cmp dword [ebp + 8], 0x100
jne 0x5277cd
movzx ecx, word [ebp + 0xc]
cmp ecx, 0xd
jne 0x5277cd
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x6a2]
test eax, eax
je 0x5277a6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x5277cd
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x6a3]
test eax, eax
jne 0x5277cd
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x44], 0
je 0x5277c9
push 0
push 0
push 0
push str.return
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x44]
call fcn.004fc7b0
xor eax, eax
jmp 0x527806
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x69c]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov ecx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
call eax
jmp 0x527806
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x54cba0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x672494]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x54cbd4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x54cbd4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x54cbe3
jmp 0x54cd48
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x418], edx
mov eax, dword [ebp - 0x418]
movzx ecx, word [eax]
test ecx, ecx
je 0x54cc3e
mov edx, dword [ebp - 0x418]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x54cc21
mov ecx, dword [ebp - 0x418]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x54cc2d
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
jmp 0x54cbf8
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0xc]
je 0x54ccce
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.0056bc50
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x420], 0x208
jae 0x54cc97
jmp 0x54cc9c
call fcn.004d0bb7
xor edx, edx
mov eax, dword [ebp - 0x420]
mov word [ebp + eax - 0x414], dx
lea ecx, [ebp - 0x414]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0054cba0
add esp, 8
mov eax, dword [ebp - 0x424]
add eax, 2
mov dword [ebp - 0x424], eax
mov ecx, 2
imul edx, ecx, 0
mov dword [ebp - 0x428], edx
cmp dword [ebp - 0x428], 0x208
jae 0x54ccea
jmp 0x54ccef
call fcn.004d0bb7
xor eax, eax
mov ecx, dword [ebp - 0x428]
mov word [ebp + ecx - 0x20c], ax
cmp dword [ebp + 8], 0
je 0x54cd16
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x54cd48
push 0
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d0a85
mov esp, ebp
pop ebp
ret
Function at 0x54dac0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x54dada
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0xffffffff
je 0x54dae4
mov eax, 0x1000000
jmp 0x54dbca
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov eax, dword [ebp - 0xc]
add eax, 0x244
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ecx, dword [ebp - 0xc]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x54db3e
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x54db3e
push 0x647dec
mov edx, dword [ebp - 0xc]
add edx, 0x244
push edx
call dword [sym.imp.SHLWAPI.dll_StrCatW]
cmp dword [ebp + 0x10], 1
jne 0x54db82
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x54db66
mov dword [ebp - 0x10], 1
jmp 0x54db6d
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
jne 0x54db82
mov eax, 0x2000000
jmp 0x54dbca
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00552c80
add esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x54dba8
mov eax, dword [ebp - 0x1c]
jmp 0x54dbca
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00553970
add esp, 4
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x54dbc8
mov eax, 0x200
jmp 0x54dbca
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc