joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3aba
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5d0000]
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.0054f890
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.005570bd
push eax
call fcn.00402b90
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x580de8]
je 0x4c3c1b
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 0x4c3c2f
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4c3c2f
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 0x4c3b76
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4c3b6a
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.004c38c1
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x4c3b71
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4c3b78
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.004301e3
test eax, eax
je 0x4c3ba4
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043006a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi], ecx
mov dword [esi + 4], eax
jmp 0x4c3ba9
mov dword [esi], edi
mov dword [esi + 4], edi
lea eax, [ebp - 0x40]
push eax
call fcn.004301e3
test eax, eax
je 0x4c3bd1
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043006a
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
jmp 0x4c3bd7
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea eax, [ebp - 0x48]
push eax
call fcn.004301e3
test eax, eax
je 0x4c3bf9
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0043006a
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x4c3bfb
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x4c3c0d
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4c3c1b
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.0054d6d8
leave
ret 4
xor eax, eax
jmp 0x4c3c1e
Function at 0x4ce482
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 0x4ce4af
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4ce4c4
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4ce4c4
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.00426509
jmp 0x4ce595
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00426509
cmp eax, edi
jne 0x4ce59f
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 0x4ce531
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 0x4ce575
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4ce59f
cmp eax, 0x205
je 0x4ce59f
cmp eax, 0x201
je 0x4ce59f
cmp eax, 0x204
je 0x4ce59f
cmp eax, 0x100
jne 0x4ce55d
cmp dword [ebp - 0x18], 0x1b
je 0x4ce59f
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 0x4ce595
ja 0x4ce58e
cmp eax, dword [0x5d98a8]
jbe 0x4ce595
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4ce4e6
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4cf59b
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4cf5d1
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.00402e20
test eax, eax
je 0x4cf5b9
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 0x4d6a86
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5cf82c], 0
push esi
push edi
je 0x4d6b0e
cmp dword [0x5cf904], 0xfffffffe
jne 0x4d6afa
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4d6b0e
mov edi, 0x5d98d8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5d98f0], 0
jne 0x4d6b12
push 0
push 0
push 0x4d6b18
call fcn.00556367
add esp, 0xc
mov dword [0x5d98f0], eax
test eax, eax
je 0x4d6aea
cmp eax, 0xffffffff
je 0x4d6aea
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5cf904], esi
jmp 0x4d6af1
and dword [0x5d98f0], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4d6b0e
mov eax, dword [ebp + 8]
mov dword [0x5cf904], eax
cmp eax, 0xffffffff
jne 0x4d6b0e
and dword [0x5d98f0], 0
pop edi
pop esi
pop ebp
ret
call fcn.004218b9
int3
Function at 0x4e1cb4
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 0x4e1e3b
je 0x4e1e62
sub eax, 0xa1
je 0x4e1e62
sub eax, 1
je 0x4e1e62
dec eax
sub eax, 1
je 0x4e1e62
sub eax, 1
je 0x4e1e62
dec eax
sub eax, 1
je 0x4e1e62
sub eax, 1
je 0x4e1e62
sub eax, 0x58
jne 0x4e1ea0
cmp dword [edi + 0xc0], 0xffffffff
je 0x4e1e62
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4e1e62
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4e1d90
sub eax, 1
jne 0x4e1e62
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4e1d7f
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 [0x57c9a0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e1ddc
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4e1d55
jmp 0x4e1eba
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4e1eba
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 [0x57c9a0]
mov ecx, edi
call esi
test eax, eax
jne 0x4e1ddc
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4e1da7
jmp 0x4e1eba
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x57c9a0]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x57c9a0]
mov ecx, edi
call esi
mov ecx, eax
call fcn.0042b636
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x57c9a0]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4e1eba
sub eax, 0x200
je 0x4e1e62
sub eax, 1
je 0x4e1e62
sub eax, 1
je 0x4e1e62
dec eax
sub eax, 1
je 0x4e1e62
sub eax, 1
je 0x4e1e62
dec eax
sub eax, 1
je 0x4e1e62
sub eax, 1
jne 0x4e1ea0
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4e1e81
cmp dword [eax + 0x20], ebx
je 0x4e1e81
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 0xf8]
test eax, eax
je 0x4e1ea0
cmp dword [eax + 0x20], ebx
je 0x4e1ea0
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4e1ebf
lea eax, [edi + 0x2250]
test eax, eax
je 0x4e1eb6
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4e1ebf
xor eax, eax
inc eax
jmp 0x4e1ec7
push esi
mov ecx, edi
call fcn.00472d6d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50e223
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x56da74
call fcn.0054dc4f
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x50e30a
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x50e30a
cmp esi, 0x43
je 0x50e265
cmp esi, 0x2d
jne 0x50e30a
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50e30a
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00409e60
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 0x59c6d8
push eax
call fcn.0040a910
mov esi, dword [ebp - 0x10]
add esp, 0x14
mov eax, dword [esi - 0xc]
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 0x50e2f8
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x50e2f8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x10]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00402e00
push ebx
mov ecx, edi
call fcn.004242f3
call fcn.0054dc1d
ret 4
Function at 0x514cdf
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x577eb3
call fcn.0054dc82
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 0x514e70
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x514e42
sub eax, 1
je 0x514d5e
sub eax, 1
je 0x514d36
sub eax, 1
je 0x514d5e
push 0x5afbec
mov ecx, edi
call fcn.00409db0
mov eax, edi
call fcn.0054dc31
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 0x514d20
lea eax, [ebp - 0x4e8]
push eax
jmp 0x514d25
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x514d20
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.004c3c33
test eax, eax
je 0x514d20
lea ecx, [ebp - 0x700]
call fcn.00409e60
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x514df8
test byte [ebp - 0x428], 0x18
jne 0x514e1a
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 [0x57c9a0]
mov ecx, ebx
call esi
jmp 0x514e1a
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 [0x57c9a0]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.0040a460
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402e00
jmp 0x514d2c
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 0x514d20
lea eax, [ebp - 0x6f0]
jmp 0x514d5b
call fcn.004218b9
int3

Function at 0x514fe8
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00548e33
call fcn.0042f1ba
cmp dword [eax + 0x14], 0
jne 0x515003
mov ecx, esi
pop esi
jmp fcn.005142f1
pop esi
ret
Function at 0x5150fe
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.0042b328
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 0x51513a
call fcn.0051531b
mov dword [esi + 0xc], 1
jmp 0x51513f
call fcn.0051531b
cmp dword [esi], 0
je 0x51518a
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 0x515165
push edi
call fcn.004103e0
lea ecx, [edi + 1]
push ecx
jmp 0x515174
push 0xff
call fcn.0040a280
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00409ed0
pop edi
jmp 0x5151ae
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 0x5151ae
push dword [esi]
push dword [ebp - 4]
call fcn.0049d39a
pop esi
leave
ret 0xc

Function at 0x515272
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.0051531b
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x5152ba
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004103e0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00409ed0
jmp 0x5152c5
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0049d39a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51583c
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.0055e614
pop ecx
test eax, eax
jne 0x51587e
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.0041f299
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x515844
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 0x523ba9
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x523cef
mov ecx, 0x5cfc48
call fcn.0043089a
mov esi, eax
test esi, esi
je 0x523ce4
xor eax, eax
cmp word [esi + 8], ax
jne 0x523cae
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x523c6a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x523c30
push 0x5a04d0
call fcn.00523d2d
pop ecx
test eax, eax
je 0x523c30
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 0x523c4b
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 0x523c6a
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 0x523c70
push ebx
push edi
push eax
call fcn.004a11eb
add esp, 0xc
jmp 0x523c70
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.0042cec3
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 0x523ce9
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.0042feba
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x523cb1
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x523cbf
push edi
call fcn.00552bee
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.0040a5a0
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.004218b9
call fcn.004218d3
int3

Function at 0x5463a7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5d0000]
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 0x546411
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 0x5463f6
lea eax, [ebp - 0x2ac]
push eax
jmp 0x5463fb
push 0x5a7e40
call fcn.00409db0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054d6d8
leave
ret 8
call fcn.004218b9
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.00402b10
call fcn.0042f1ba
cmp dword [eax + 0x14], 0
jne 0x546911
mov ecx, esi
pop esi
jmp fcn.00546151
pop esi
ret
Function at 0x54e522
Capabilities:
Parse pe header

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

Function at 0x561cdf
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ac7c8
push 0x5ac7c0
push str.FlsAlloc
push 0x1e
call fcn.00561b60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x561d13
push dword [ebp + 8]
mov ecx, esi
call dword [0x57c9a0]
call esi
jmp 0x561d19
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x561d5d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ac7d8
push 0x5ac7d0
push str.FlsGetValue
push 0x20
call fcn.00561b60
mov esi, eax
add esp, 0x10
test esi, esi
je 0x561d94
push dword [ebp + 8]
mov ecx, esi
call dword [0x57c9a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x5655ab
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5d0000]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x5655f6
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0056574a
test al, al
jne 0x5655f0
sub edx, 2
cmp edx, edi
jne 0x5655d6
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x565618
lea eax, [edi + 2]
cmp edx, eax
je 0x565618
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005654f7
add esp, 0x10
jmp 0x565712
push esi
lea ecx, [ebp - 0x255]
call fcn.0056574a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x56565b
push dword [ebp - 0x25c]
jmp 0x565608
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x565698
cmp word [ebp - 0x226], 0
je 0x5656b9
cmp word [ebp - 0x226], ax
jne 0x565698
cmp word [ebp - 0x224], 0
je 0x5656b9
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005654f7
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x565705
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x565672
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5656ed
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x565712
push 0x565327
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0056a5e0
add esp, 0x10
jmp 0x5656e2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0054d6d8
leave
ret

Function at 0x56601d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x56602e
pop esi
ret
push ebx
push edi
push esi
call fcn.00565fe6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00560237
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x566056
push ebx
push esi
push edi
call fcn.0054f9f0
add esp, 0xc
push 0
call fcn.005600e8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x56641a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0056606b
Function at 0x56b770
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56b79d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56b79d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret