joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484f73
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 0x484fbb
call fcn.00427c90
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 0x484fbb
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x484fc8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x485004
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x484fe7
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x484ff0
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x485002
test di, di
jne 0x485002
test dx, dx
je 0x485004
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x485009
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x485034
cmp dword [esi + 0x80], 0
jne 0x485034
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.00427c90
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x485064
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x485064
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.004852d0
jmp 0x485066
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x48506d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.00427c90
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4850ad
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4850ad
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.004850b5
jmp 0x4850af
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x4853a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x58e5c7
call fcn.005689c5
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.00427c90
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x485404
call fcn.00427c90
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 0x485418
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x485414
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x485420
or eax, 0xffffffff
jmp 0x485572
mov ecx, edi
call fcn.004859a9
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0042983b
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x4854ac
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x4854ac
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4854ac
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0041de51
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4854a9
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x5999f0]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x4854a9
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0045f791
test eax, eax
je 0x4854a9
push 0
mov ecx, esi
call fcn.0045f0ec
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.004294da
push ebx
call fcn.0042abd2
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00485348
test eax, eax
jne 0x4854f5
cmp dword [edi + 0x9c], eax
jne 0x4854f5
call fcn.00427c90
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.0042abd2
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.00485348
and dword [edi + 0x9c], 0
jmp 0x485520
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x485534
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0045f0ec
test esi, esi
je 0x485541
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x485557
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x485557
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x5999f0]
mov ecx, edi
call esi
mov ecx, edi
call fcn.00485960
mov eax, dword [edi + 0x68]
call fcn.0056892a
ret
Function at 0x4871bf
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 0x487215
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4871ee
call fcn.0046dac9
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x487203
call fcn.0046dac9
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x487215
call fcn.0046dac9
call fcn.00427c90
cmp dword [eax + 0x3c], 0
je 0x48722a
push esi
mov ecx, ebx
call fcn.004868e5
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.00487410
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x487253
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x48725f
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 0x48b5bc
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x48b5f2
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.0041de51
test eax, eax
je 0x48b5da
mov eax, dword [eax + 0x20]
push 1
push edi
push ebx
push esi
push 0
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
pop edi
sbb eax, eax
pop ebx
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4a9318
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 0x4a9345
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4a935a
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4a935a
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.0042abd2
jmp 0x4a942b
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0042abd2
cmp eax, edi
jne 0x4a9435
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x4a93c7
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4a940b
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4a9435
cmp eax, 0x205
je 0x4a9435
cmp eax, 0x201
je 0x4a9435
cmp eax, 0x204
je 0x4a9435
cmp eax, 0x100
jne 0x4a93f3
cmp dword [ebp - 0x18], 0x1b
je 0x4a9435
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 0x4a942b
ja 0x4a9424
cmp eax, dword [0x5fa89c]
jbe 0x4a942b
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4a937c
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4f8a4f
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5f2000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.0056a750
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.00574558
push eax
call fcn.0041ca2b
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x59fb7c]
je 0x4f8bad
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 0x4f8bc1
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4f8bc1
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 0x4f8b0b
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4f8aff
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004f8800
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4f8b06
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4f8b0d
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004f7a29
test eax, eax
je 0x4f8b34
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.004f753f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4f8b38
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.004f7a29
test eax, eax
je 0x4f8b5f
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.004f753f
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x4f8b63
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.004f7a29
test eax, eax
je 0x4f8b8b
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.004f753f
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4f8b8d
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4f8b9f
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4f8bad
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.00568294
leave
ret 4
xor eax, eax
jmp 0x4f8bb0
Function at 0x518909
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.0045f269
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x518945
call fcn.00518b26
mov dword [esi + 0xc], 1
jmp 0x51894a
call fcn.00518b26
cmp dword [esi], 0
je 0x518995
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x518970
push edi
call fcn.00427478
lea ecx, [edi + 1]
push ecx
jmp 0x51897f
push 0xff
call fcn.0041d207
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042393b
pop edi
jmp 0x5189b9
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x5189b9
push dword [esi]
push dword [ebp - 4]
call fcn.0046a640
pop esi
leave
ret 0xc

Function at 0x518a7d
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.00518b26
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x518ac5
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00427478
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0042393b
jmp 0x518ad0
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046a640
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x5199f9
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x519b3f
mov ecx, 0x5f1aac
call fcn.004287a4
mov esi, eax
test esi, esi
je 0x519b34
xor eax, eax
cmp word [esi + 8], ax
jne 0x519afe
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x519aba
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x519a80
push 0x5b5b08
call fcn.00519b7d
pop ecx
test eax, eax
je 0x519a80
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 0x519a9b
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 0x519aba
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 0x519ac0
push ebx
push edi
push eax
call fcn.005195a2
add esp, 0xc
jmp 0x519ac0
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0042761f
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 0x519b39
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00427d9d
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x519b01
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x519b0f
push edi
call fcn.00574685
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0041d302
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.0041d951
call fcn.0041d96b
int3

Function at 0x519e50
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.00579003
pop ecx
test eax, eax
jne 0x519e92
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.00423bc6
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x519e58
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret
Function at 0x55416c
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x5975e5
call fcn.0056898f
mov ebx, ecx
mov ecx, dword [ebp + 0x14]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x700], edi
test ecx, ecx
je 0x5542fd
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x5542cf
sub eax, 1
je 0x5541eb
sub eax, 1
je 0x5541c3
sub eax, 1
je 0x5541eb
push 0x5cc02c
mov ecx, edi
call fcn.0041c8fd
mov eax, edi
call fcn.0056893e
ret 0x10
push 0x408
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x5541ad
lea eax, [ebp - 0x4e8]
push eax
jmp 0x5541b2
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x5541ad
push esi
lea eax, [ebp - 0x448]
mov dword [ebp - 0x448], esi
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x444], esi
push eax
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x43c], esi
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x434], esi
call fcn.004f8bc5
test eax, eax
je 0x5541ad
lea ecx, [ebp - 0x700]
call fcn.0041c95a
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x554285
test byte [ebp - 0x428], 0x18
jne 0x5542a7
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
push dword [ebp - 0x42c]
mov esi, dword [eax + 0x1a0]
mov ecx, esi
push dword [ebp - 0x430]
call dword [0x5999f0]
mov ecx, ebx
call esi
jmp 0x5542a7
mov eax, dword [ebx]
lea ecx, [ebp - 0x700]
push ecx
lea ecx, [ebp - 0x440]
push ecx
mov esi, dword [eax + 0x1a4]
mov ecx, esi
call dword [0x5999f0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0041df10
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00416650
jmp 0x5541b9
push 0x208
push 0x2b4
lea eax, [ebp - 0x6fc]
push eax
push esi
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x5541ad
lea eax, [ebp - 0x6f0]
jmp 0x5541e8
call fcn.0041d951
int3

Function at 0x554475
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005649da
call fcn.00427ce4
cmp dword [eax + 0x14], 0
jne 0x554490
mov ecx, esi
pop esi
jmp fcn.0055378e
pop esi
ret

Function at 0x554e0b
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5f2000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2bc], esi
test eax, eax
je 0x554e75
push 0x208
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov ecx, esi
test eax, eax
je 0x554e5a
lea eax, [ebp - 0x2ac]
push eax
jmp 0x554e5f
push 0x5c1208
call fcn.0041c8fd
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00568294
leave
ret 8
call fcn.0041d951
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00402290
call fcn.00427ce4
cmp dword [eax + 0x14], 0
jne 0x555375
mov ecx, esi
pop esi
jmp fcn.00554bb5
pop esi
ret
Function at 0x558fc8
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x58bf98
call fcn.0056895c
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x5590b4
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x5590b4
cmp esi, 0x43
je 0x55900a
cmp esi, 0x2d
jne 0x5590b4
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x5590b4
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.0041c95a
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 0x5c2500
push eax
call fcn.00420d00
mov esi, dword [ebp - 0x10]
add esp, 0x14
lea eax, [esi - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 4]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x5590a2
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x5590a2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
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.00416650
push ebx
mov ecx, edi
call fcn.004db385
call fcn.0056892a
ret 4

Function at 0x569238
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x569277
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x569277
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x569277
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x569277
cmp dword [ecx + 0x74], 0xe
jbe 0x569277
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x581219
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00580d6c

Function at 0x586120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58614d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58614d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4053b0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi + 0x84]
push edi
test ecx, ecx
je 0x4053fe
mov eax, dword [esi + 0x8c]
mov edi, dword [esi + 0x88]
cmp eax, edi
jae 0x40543b
sub edi, eax
cmp edi, edx
jbe 0x4053d4
mov edi, edx
push edi
add eax, ecx
push eax
push ebx
call fcn.0040cad0
mov eax, dword [esi + 0x78]
add dword [esi + 0x8c], edi
add dword [esi + 0x74], edi
add esp, 0xc
mov edx, edi
mov ecx, ebx
call fcn.00404a00
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x405434
push 0
lea ecx, [esp + 8]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40543b
mov edi, dword [esp + 4]
mov eax, dword [esi + 0x78]
add dword [esi + 0x74], edi
mov edx, edi
mov ecx, ebx
call fcn.00404a00
mov dword [esi + 0x78], eax
mov eax, edi
pop edi
pop ecx
ret
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop ecx
ret

Function at 0x40603f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416044]
jne 0x406049
repz ret
jmp fcn.004068f4

Function at 0x40dfbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040903e
and dword [ebp - 4], 0
cmp dword [0x417a20], 0
mov ebx, eax
jne 0x40e06d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40e11e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40e11e
push eax
call fcn.00408fcc
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417a20], eax
call esi
push eax
call fcn.00408fcc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417a24], eax
call esi
push eax
call fcn.00408fcc
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417a28], eax
call esi
push eax
call fcn.00408fcc
pop ecx
mov dword [0x417a30], eax
test eax, eax
je 0x40e06d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408fcc
pop ecx
mov dword [0x417a2c], eax
mov eax, dword [0x417a2c]
cmp eax, ebx
je 0x40e0c5
cmp dword [0x417a30], ebx
je 0x40e0c5
push eax
call fcn.00409047
push dword [0x417a30]
mov esi, eax
call fcn.00409047
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40e0c5
test edi, edi
je 0x40e0c5
call esi
test eax, eax
je 0x40e0bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40e0bc
test byte [ebp - 0xc], 1
jne 0x40e0c5
or dword [ebp + 0x10], 0x200000
jmp 0x40e0fe
mov eax, dword [0x417a24]
cmp eax, ebx
je 0x40e0fe
push eax
call fcn.00409047
pop ecx
test eax, eax
je 0x40e0fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40e0fe
mov eax, dword [0x417a28]
cmp eax, ebx
je 0x40e0fe
push eax
call fcn.00409047
pop ecx
test eax, eax
je 0x40e0fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417a20]
call fcn.00409047
pop ecx
test eax, eax
je 0x40e11e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40e120
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret