joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d389d
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 0x4d38ca
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x4d38df
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4d38df
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.0041bef5
jmp 0x4d39b0
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0041bef5
cmp eax, edi
jne 0x4d39ba
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 0x4d394c
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 0x4d3990
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x4d39ba
cmp eax, 0x205
je 0x4d39ba
cmp eax, 0x201
je 0x4d39ba
cmp eax, 0x204
je 0x4d39ba
cmp eax, 0x100
jne 0x4d3978
cmp dword [ebp - 0x18], 0x1b
je 0x4d39ba
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 0x4d39b0
ja 0x4d39a9
cmp eax, dword [0x5d6354]
jbe 0x4d39b0
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x4d3901
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d49b6
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [ecx + 0x14]
cmp dword [esi - 0xc], 0
je 0x4d49ec
push ebx
mov ebx, dword [ecx + 8]
push edi
mov edi, dword [ecx + 0xc]
call fcn.004042f3
test eax, eax
je 0x4d49d4
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 0x4dbf07
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5cd818], 0
push esi
push edi
je 0x4dbf8f
cmp dword [0x5cd940], 0xfffffffe
jne 0x4dbf7b
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x4dbf8f
mov edi, 0x5d6384
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x5d639c], 0
jne 0x4dbf93
push 0
push 0
push 0x4dbf99
call fcn.00556093
add esp, 0xc
mov dword [0x5d639c], eax
test eax, eax
je 0x4dbf6b
cmp eax, 0xffffffff
je 0x4dbf6b
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [0x5cd940], esi
jmp 0x4dbf72
and dword [0x5d639c], 0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4dbf8f
mov eax, dword [ebp + 8]
mov dword [0x5cd940], eax
cmp eax, 0xffffffff
jne 0x4dbf8f
and dword [0x5d639c], 0
pop edi
pop esi
pop ebp
ret
call fcn.00414d65
int3
Function at 0x4e3a54
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 0x4e3bdb
je 0x4e3c02
sub eax, 0xa1
je 0x4e3c02
sub eax, 1
je 0x4e3c02
dec eax
sub eax, 1
je 0x4e3c02
sub eax, 1
je 0x4e3c02
dec eax
sub eax, 1
je 0x4e3c02
sub eax, 1
je 0x4e3c02
sub eax, 0x58
jne 0x4e3c40
cmp dword [edi + 0xc0], 0xffffffff
je 0x4e3c02
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x4e3c02
mov eax, dword [esi + 8]
sub eax, 0x21
je 0x4e3b30
sub eax, 1
jne 0x4e3c02
mov eax, dword [edi + 0xc0]
lea ebx, [eax + 1]
jmp 0x4e3b1f
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 [0x57b9a4]
mov ecx, edi
call esi
test eax, eax
jne 0x4e3b7c
mov eax, dword [edi + 0xc0]
inc ebx
mov ecx, dword [edi + 0xbc]
add eax, ecx
cmp ebx, eax
jl 0x4e3af5
jmp 0x4e3c5a
mov ecx, dword [edi + 0xc0]
lea ebx, [ecx - 1]
add ebx, dword [edi + 0xbc]
cmp ebx, ecx
jle 0x4e3c5a
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 [0x57b9a4]
mov ecx, edi
call esi
test eax, eax
jne 0x4e3b7c
dec ebx
cmp ebx, dword [edi + 0xc0]
jg 0x4e3b47
jmp 0x4e3c5a
mov eax, dword [edi]
push dword [ebp - 4]
mov dword [edi + 0x24c], 1
mov esi, dword [eax + 0x214]
mov ecx, esi
call dword [0x57b9a4]
mov ecx, edi
call esi
mov eax, dword [edi]
mov esi, dword [eax + 0x210]
mov ecx, esi
call dword [0x57b9a4]
mov ecx, edi
call esi
mov ecx, eax
call fcn.00421776
mov eax, dword [edi]
push dword [edi + 0xc0]
mov esi, dword [eax + 0x270]
mov ecx, esi
call dword [0x57b9a4]
mov ecx, edi
call esi
and dword [edi + 0x24c], 0
jmp 0x4e3c5a
sub eax, 0x200
je 0x4e3c02
sub eax, 1
je 0x4e3c02
sub eax, 1
je 0x4e3c02
dec eax
sub eax, 1
je 0x4e3c02
sub eax, 1
je 0x4e3c02
dec eax
sub eax, 1
je 0x4e3c02
sub eax, 1
jne 0x4e3c40
mov eax, dword [edi + 0xfc]
test eax, eax
je 0x4e3c21
cmp dword [eax + 0x20], ebx
je 0x4e3c21
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 0x4e3c40
cmp dword [eax + 0x20], ebx
je 0x4e3c40
push esi
push ebx
push 0x407
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esi + 4], 0x203
jne 0x4e3c5f
lea eax, [edi + 0x2250]
test eax, eax
je 0x4e3c56
mov ebx, dword [eax + 0x20]
cmp dword [esi], ebx
jne 0x4e3c5f
xor eax, eax
inc eax
jmp 0x4e3c67
push esi
mov ecx, edi
call fcn.00474539
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x50ed15
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x56b95e
call fcn.0054d64b
mov edi, ecx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x50edfc
mov esi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x50edfc
cmp esi, 0x43
je 0x50ed57
cmp esi, 0x2d
jne 0x50edfc
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x50edfc
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00402000
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 0x59be90
push eax
call fcn.00403050
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 0x50edea
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x50edea
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.00402b40
push ebx
mov ecx, edi
call fcn.00418e5c
call fcn.0054d619
ret 4
Function at 0x512a5c
Capabilities:
Get file system object information

Disassembly:
push 0x6f8
mov eax, 0x576edb
call fcn.0054d67e
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 0x512bed
mov eax, dword [ebp + 0x10]
sub eax, esi
je 0x512bbf
sub eax, 1
je 0x512adb
sub eax, 1
je 0x512ab3
sub eax, 1
je 0x512adb
push 0x57bdf8
mov ecx, edi
call fcn.00403db0
mov eax, edi
call fcn.0054d62d
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 0x512a9d
lea eax, [ebp - 0x4e8]
push eax
jmp 0x512aa2
lea eax, [ebp - 0x218]
push eax
push dword [ecx + 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x512a9d
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.004ade68
test eax, eax
je 0x512a9d
lea ecx, [ebp - 0x700]
call fcn.00402000
cmp dword [ebp + 0x10], 1
mov dword [ebp - 4], esi
jne 0x512b75
test byte [ebp - 0x428], 0x18
jne 0x512b97
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 [0x57b9a4]
mov ecx, ebx
call esi
jmp 0x512b97
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 [0x57b9a4]
mov ecx, ebx
call esi
mov eax, dword [ebp - 0x700]
add eax, 0xfffffff0
push eax
call fcn.00404bd8
pop ecx
mov ecx, dword [ebp - 0x700]
add eax, 0x10
mov dword [edi], eax
lea ecx, [ecx - 0x10]
call fcn.00402b40
jmp 0x512aa9
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 0x512a9d
lea eax, [ebp - 0x6f0]
jmp 0x512ad8
call fcn.00414d65
int3

Function at 0x512d65
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00548916
call fcn.0041929e
cmp dword [eax + 0x14], 0
jne 0x512d80
mov ecx, esi
pop esi
jmp fcn.0051206e
pop esi
ret
Function at 0x512e7b
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.00420e7a
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 0x512eb7
call fcn.00513098
mov dword [esi + 0xc], 1
jmp 0x512ebc
call fcn.00513098
cmp dword [esi], 0
je 0x512f07
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 0x512ee2
push edi
call fcn.00415480
lea ecx, [edi + 1]
push ecx
jmp 0x512ef1
push 0xff
call fcn.00402dc0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00413099
pop edi
jmp 0x512f2b
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 0x512f2b
push dword [esi]
push dword [ebp - 4]
call fcn.00423caf
pop esi
leave
ret 0xc

Function at 0x512fef
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.00513098
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x513037
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00415480
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413099
jmp 0x513042
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00423caf
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x51673c
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x516882
mov ecx, 0x5cdbd0
call fcn.00422696
mov esi, eax
test esi, esi
je 0x516877
xor eax, eax
cmp word [esi + 8], ax
jne 0x516841
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x5167fd
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x5167c3
push 0x59d9a0
call fcn.005168c0
pop ecx
test eax, eax
je 0x5167c3
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 0x5167de
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 0x5167fd
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 0x516803
push ebx
push edi
push eax
call fcn.0049e14d
add esp, 0xc
jmp 0x516803
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.004150ca
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 0x51687c
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.00422fb9
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x516844
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x516852
push edi
call fcn.00555029
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402740
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.00414d65
call fcn.00414d7f
int3

Function at 0x517fa1
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.0055dac4
pop ecx
test eax, eax
jne 0x517fe3
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.0041335d
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x517fa9
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 0x545e89
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c0
mov eax, dword [0x5ce000]
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 0x545ef3
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 0x545ed8
lea eax, [ebp - 0x2ac]
push eax
jmp 0x545edd
push 0x5a75b0
call fcn.00403db0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0054d2d4
leave
ret 8
call fcn.00414d65
int3

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

Disassembly:
push esi
mov esi, ecx
call fcn.0040f6c6
call fcn.0041929e
cmp dword [eax + 0x14], 0
jne 0x5463f3
mov ecx, esi
pop esi
jmp fcn.00545c33
pop esi
ret

Function at 0x54e122
Capabilities:
Parse pe header

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

Function at 0x561577
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ac9b8
push 0x5ac9b0
push str.FlsAlloc
push 0x1e
call fcn.005613f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5615ab
push dword [ebp + 8]
mov ecx, esi
call dword [0x57b9a4]
call esi
jmp 0x5615b1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5615f5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5ac9c8
push 0x5ac9c0
push str.FlsGetValue
push 0x20
call fcn.005613f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56162c
push dword [ebp + 8]
mov ecx, esi
call dword [0x57b9a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x564cef
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5ce000]
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 0x564d3a
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00564e8e
test al, al
jne 0x564d34
sub edx, 2
cmp edx, edi
jne 0x564d1a
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x564d5c
lea eax, [edi + 2]
cmp edx, eax
je 0x564d5c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00564c3b
add esp, 0x10
jmp 0x564e56
push esi
lea ecx, [ebp - 0x255]
call fcn.00564e8e
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 0x564d9f
push dword [ebp - 0x25c]
jmp 0x564d4c
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 0x564ddc
cmp word [ebp - 0x226], 0
je 0x564dfd
cmp word [ebp - 0x226], ax
jne 0x564ddc
cmp word [ebp - 0x224], 0
je 0x564dfd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00564c3b
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x564e49
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x564db6
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x564e31
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x564e56
push 0x564a6b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00569f00
add esp, 0x10
jmp 0x564e26
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.0054d2d4
leave
ret

Function at 0x565894
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5658a5
pop esi
ret
push ebx
push edi
push esi
call fcn.0056585d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0055f8c2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5658cd
push ebx
push esi
push edi
call fcn.0054ec50
add esp, 0xc
push 0
call fcn.0055f888
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x565c91
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005658e2
Function at 0x56b090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x56b0bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x56b0bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401100
lea ebx, [ebx]
cmp esi, eax
jae 0x401104
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x40110a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406210
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40627e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40624f
cmp eax, 2
jne 0x40626a
mov eax, dword [esp]
test esi, esi
je 0x406278
test eax, eax
je 0x406273
test al, 1
jne 0x40626a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x406278
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x406750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x46c868
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x488900]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x406794
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402660
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0045294d
add esp, 8
test eax, eax
jl 0x40680b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x40680b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4067f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.00401090
int3
Function at 0x406820
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46dac8
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x488900]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0xc], 0
call fcn.00435e1b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406866
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x20]
lea ecx, [esp + 8]
push ecx
push edx
mov dword [esp + 0x20], 0
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x406933
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4068c6
push 0x104
lea ecx, [esp + 0x10]
call fcn.00402250
mov esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0045294d
add esp, 8
test eax, eax
jl 0x406929
cmp eax, dword [esi - 8]
jg 0x406929
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esi, 0xfffffff0
push esi
call fcn.004022a0
add eax, 0x10
mov dword [ebx], eax
add esp, 4
mov dword [esp + 0x18], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x406963
mov ecx, dword [esi]
push esi
jmp 0x40695c
push 0x80070057
call fcn.00401090
push 0x476644
mov ecx, ebx
call fcn.00401b80
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406963
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x14
ret