joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460b7d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xe4]
test ecx, ecx
je 0x460cdb
push esi
push edi
push 0x587fec
call fcn.00423d74
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], eax
je 0x460c16
mov edi, dword [ebx + 0x168]
jmp 0x460c02
mov esi, dword [edi + 8]
mov edi, dword [edi]
push esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x460c02
push esi
call fcn.0041d442
push eax
push 0x5cb3a8
call fcn.00423cd5
mov dword [ebp - 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x460c02
mov ecx, dword [eax]
mov esi, dword [ecx + 0x1a0]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, dword [ebp - 0xc]
call esi
test eax, eax
jle 0x460c02
push 4
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_ShowWindow]
test edi, edi
jne 0x460bb1
lea ecx, [ebx + 0x164]
call fcn.0040cca7
jmp 0x460cd9
mov eax, dword [ebx + 0xcc]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x460cd9
lea eax, [ebx + 0xc8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, eax
call fcn.0040ca41
mov edi, dword [eax]
test edi, edi
jne 0x460c42
xor esi, esi
jmp 0x460c45
mov esi, dword [edi + 0x20]
push esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x460cc9
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x460cc9
cmp dword [ebp - 0x10], 0
jne 0x460c9e
push edi
push 0x5cb3a8
call fcn.00423cd5
mov edi, eax
pop ecx
pop ecx
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1a8]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, edi
call esi
push eax
push 0x58a820
call fcn.00423cd5
pop ecx
pop ecx
test eax, eax
je 0x460cc9
mov esi, dword [ebp - 4]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
lea eax, [ebp - 8]
lea esi, [ebx + 0x164]
push eax
mov ecx, esi
call fcn.0045fcee
test eax, eax
jne 0x460cc9
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.0045de24
cmp dword [ebp - 0xc], 0
lea eax, [ebx + 0xc8]
jne 0x460c2d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46eed9
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 0x46eef2
call fcn.0041b1af
mov esi, dword [eax + 0xc]
push 0x588668
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x46ef34
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x46ef34
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x46ef34
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0046ef3d
jmp 0x46ef36
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4b6803
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 0x4b68a2
mov eax, dword [esi + 0x34c]
test eax, eax
je 0x4b689e
mov eax, dword [eax + 0x20]
test eax, eax
je 0x4b689e
cmp dword [ebx], eax
jne 0x4b689e
mov eax, dword [ebx + 4]
sub eax, 1
je 0x4b6878
sub eax, 1
je 0x4b6848
sub eax, 1
jne 0x4b689e
mov edi, 0x428e
jmp 0x4b687d
push 0x11
mov edi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4b687d
mov eax, dword [esi]
mov esi, dword [eax + 0x340]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, dword [ebp - 4]
call esi
test eax, eax
je 0x4b687d
add edi, 3
jmp 0x4b687d
mov edi, 0x3ea0
push edi
mov ecx, 0x5d40a4
call fcn.004031a0
test eax, eax
je 0x4b68a2
mov eax, dword [0x5d40a4]
mov dword [ebx + 0xc], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor eax, eax
jmp 0x4b6897
call fcn.00404333
int3

Function at 0x4c1346
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x4c139c
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x4c1375
call fcn.0040681b
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4c138a
call fcn.0040681b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c139c
call fcn.0040681b
call fcn.0041b1af
cmp dword [eax + 0x3c], 0
je 0x4c13b1
push esi
mov ecx, ebx
call fcn.004c0a6c
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.004c159b
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c13da
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c13e6
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4c1f84
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00422476
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4c1fc0
call fcn.004c21a1
mov dword [esi + 0xc], 1
jmp 0x4c1fc5
call fcn.004c21a1
cmp dword [esi], 0
je 0x4c2010
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x4c1feb
push edi
call fcn.004056ab
lea ecx, [edi + 1]
push ecx
jmp 0x4c1ffa
push 0xff
call fcn.00403310
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004056ce
pop edi
jmp 0x4c2034
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 0x4c2034
push dword [esi]
push dword [ebp - 4]
call fcn.0042647a
pop esi
leave
ret 0xc

Function at 0x4c20f8
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.004c21a1
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c2140
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004056ab
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004056ce
jmp 0x4c214b
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042647a
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c41cd
Capabilities:
Get file system object information

Disassembly:
push 0x398
mov eax, 0x575cac
call fcn.0054ce7e
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3a0], edi
test ecx, ecx
je 0x4c435e
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x4c4330
sub eax, 1
je 0x4c424c
sub eax, 1
je 0x4c4224
sub eax, 1
je 0x4c424c
push 0x57ef79
mov ecx, edi
call fcn.00404571
mov eax, edi
call fcn.0054ce2d
ret 0x10
push 0x408
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4c420e
lea eax, [ebp - 0x28c]
push eax
jmp 0x4c4213
lea eax, [ebp - 0x114]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x4c420e
push esi
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], esi
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x238], esi
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x22c], esi
mov dword [ebp - 0x228], esi
call fcn.004c57ab
test eax, eax
je 0x4c420e
lea ecx, [ebp - 0x3a0]
call fcn.004027f0
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x4c42e6
test byte [ebp - 0x21c], 0x18
jne 0x4c4308
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
push dword [ebp - 0x220]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x224]
call dword [0x57d9f0]
mov ecx, ebx
call esi
jmp 0x4c4308
mov eax, dword [ebx]
lea ecx, [ebp - 0x3a0]
push ecx
lea ecx, [ebp - 0x234]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x3a0]
add eax, 0xfffffff0
push eax
call fcn.00405bae
pop ecx
mov ecx, dword [ebp - 0x3a0]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.004033e0
jmp 0x4c421a
push 0x208
push 0x160
lea eax, [ebp - 0x39c]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x4c420e
lea eax, [ebp - 0x390]
jmp 0x4c4249
call fcn.00404333
int3

Function at 0x4c44d6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0053160a
call fcn.0041b203
cmp dword [eax + 0x14], 0
jne 0x4c44f1
mov ecx, esi
pop esi
jmp fcn.004c37da
pop esi
ret
Function at 0x4c5635
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5cbe80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x128
xor edi, edi
push edi
push esi
call fcn.0054e300
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00555d41
push eax
call fcn.00404309
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x5833a4]
je 0x4c5793
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4c57a7
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4c57a7
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x4c56f1
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4c56e5
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004c543c
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4c56ec
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c56f3
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004c58e5
test eax, eax
je 0x4c571a
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c52c3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c571e
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004c58e5
test eax, eax
je 0x4c5745
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c52c3
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4c5749
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004c58e5
test eax, eax
je 0x4c5771
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004c52c3
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4c5773
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4c5785
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4c5793
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054cada
leave
ret 4
xor eax, eax
jmp 0x4c5796
Function at 0x4ce274
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.0055e314
pop ecx
test eax, eax
jne 0x4ce2b6
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.0040b30b
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4ce27c
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 0x4cf9e5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4cfa12
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4cfa27
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4cfa27
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0041d442
jmp 0x4cfaf8
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0041d442
cmp eax, edi
jne 0x4cfb02
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4cfa94
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4cfad8
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4cfb02
cmp eax, 0x205
je 0x4cfb02
cmp eax, 0x201
je 0x4cfb02
cmp eax, 0x204
je 0x4cfb02
cmp eax, 0x100
jne 0x4cfac0
cmp dword [ebp - 0x18], 0x1b
je 0x4cfb02
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x4cfaf8
ja 0x4cfaf1
cmp eax, dword [0x5d4144]
jbe 0x4cfaf8
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4cfa49
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d0afb
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4d0b31
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00407e85
test eax, eax
je 0x4d0b19
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x4d946d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5cb5dc], 0
push esi
push edi
je 0x4d94f5
cmp dword [0x5cb7e8], 0xfffffffe
jne 0x4d94e1
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4d94f5
mov edi, 0x5d4194
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5d41ac], 0
jne 0x4d94f9
push 0
push 0
push 0x4d94ff
call fcn.005565df
add esp, 0xc
mov dword [0x5d41ac], eax
test eax, eax
je 0x4d94d1
cmp eax, 0xffffffff
je 0x4d94d1
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5cb7e8], esi
jmp 0x4d94d8
and dword [0x5d41ac], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4d94f5
mov eax, dword [ebp + 8]
mov dword [0x5cb7e8], eax
cmp eax, 0xffffffff
jne 0x4d94f5
and dword [0x5d41ac], 0
pop edi
pop esi
pop ebp
ret
call fcn.00404333
int3
Function at 0x4e0e1a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov ecx, 0x104
mov eax, dword [esi + 4]
cmp eax, ecx
ja 0x4e0fa1
je 0x4e0fc8
sub eax, 0xa1
je 0x4e0fc8
sub eax, 1
je 0x4e0fc8
dec eax
sub eax, 1
je 0x4e0fc8
sub eax, 1
je 0x4e0fc8
dec eax
sub eax, 1
je 0x4e0fc8
sub eax, 1
je 0x4e0fc8
sub eax, 0x58
jne 0x4e1006
cmp dword [edi + 0xc0], 0xffffffff
je 0x4e0fc8
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4e0fc8
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4e0ef6
sub eax, 1
jne 0x4e0fc8
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4e0ee5
mov eax, ebx
cdq
idiv ecx
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e0f42
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4e0ebb
jmp 0x4e1020
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4e1020
mov eax, ebx
cdq
idiv dword [edi + 0xbc]
mov eax, dword [edi]
mov ecx, edx
mov dword [ebp - 4], ecx
push ecx
mov esi, dword [eax + 0x27c]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e0f42
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4e0f0d
jmp 0x4e1020
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00422d72
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x57d9f0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4e1020
sub eax, 0x200
je 0x4e0fc8
sub eax, 1
je 0x4e0fc8
sub eax, 1
je 0x4e0fc8
dec eax
sub eax, 1
je 0x4e0fc8
sub eax, 1
je 0x4e0fc8
dec eax
sub eax, 1
je 0x4e0fc8
sub eax, 1
jne 0x4e1006
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4e0fe7
cmp dword [eax + 0x20], ebx
je 0x4e0fe7
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4e1006
cmp dword [eax + 0x20], ebx
je 0x4e1006
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi + 4], 0x203
jne 0x4e1025
lea eax, [edi + 0x2250]
test eax, eax
je 0x4e101c
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4e1025
xor eax, eax
inc eax
jmp 0x4e102d
push esi
mov ecx, edi
call fcn.00491df0
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x52119f
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x5724d6
call fcn.0054ce4b
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x521285
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x521285
cmp esi, 0x43
je 0x5211e1
cmp esi, 0x2d
jne 0x521285
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x521285
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.004027f0
movzx eax, byte [edi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [edi + 0xe5]
push eax
movzx eax, byte [edi + 0xe4]
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00402e80
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x521273
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x521273
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [ebp - 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.004033e0
push ebx
mov ecx, edi
call fcn.00423406
call fcn.0054ce19
ret 4
Function at 0x523239
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x52337f
mov ecx, 0x5cbae8
call fcn.004239d3
mov esi, eax
test esi, esi
je 0x523374
xor eax, eax
cmp word [esi + 8], ax
jne 0x52333e
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x5232fa
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x5232c0
push str.MS_UI_Gothic
call fcn.005233bd
pop ecx
test eax, eax
je 0x5232c0
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x5232db
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x5232fa
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x523300
push ebx
push edi
push eax
call fcn.00427226
add esp, 0xc
jmp 0x523300
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0040587c
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x523379
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00423eac
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x523341
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x52334f
push edi
call fcn.00551b30
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00403510
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00404333
call fcn.0040434d
int3

Function at 0x52ea9b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0x5cbe80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x168], esi
test eax, eax
je 0x52eb05
push 0x208
push 0x160
lea ecx, [ebp - 0x164]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, esi
test eax, eax
je 0x52eaea
lea eax, [ebp - 0x158]
push eax
jmp 0x52eaef
push 0x5a1068
call fcn.00404571
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054cada
leave
ret 8
call fcn.00404333
int3

Function at 0x52efea
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00408955
call fcn.0041b203
cmp dword [eax + 0x14], 0
jne 0x52f005
mov ecx, esi
pop esi
jmp fcn.0052e845
pop esi
ret