joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c8c4
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x43c8e0
cmp dword [esi + 4], 0
je 0x43c90d
test byte [ebx + 0x55], 1
jne 0x43c8ff
mov eax, ebx
call fcn.0043acac
test eax, eax
jne 0x43c8ff
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43ca1d
mov edx, esi
mov eax, ebx
call fcn.0043c2cc
jmp 0x43ca1d
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43ca16
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e91c
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00438114
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c8c4
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e91c
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ca1d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x443b58
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x469b08]
cmp byte [eax + 0xc], 0
je 0x443cc5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443cbe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46d544], 0
jne 0x443bac
push 0x443ccc
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443cd4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d544], eax
cmp dword [0x4605ac], 0
jne 0x443ca7
push 0x443ce4
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4605ac], eax
cmp dword [0x4605ac], 0
je 0x443ca7
push 0x443cf0
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d548], eax
push 0x443d00
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d54c], eax
push 0x443d14
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d550], eax
push 0x443d2c
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d554], eax
push 0x443d44
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d558], eax
push 0x443d58
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d55c], eax
push 0x443d70
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d560], eax
push 0x443d88
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d564], eax
push 0x443da4
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d568], eax
push 0x443db0
mov eax, dword [0x4605ac]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46d56c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443cc5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449334
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x449388]
test si, 4
je 0x449349
or bl, 1
test si, 8
je 0x449353
or bl, 4
test si, 1
je 0x44935d
or bl, 8
test si, 2
je 0x449367
or bl, 0x10
test si, 0x10
je 0x449371
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449380
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44938c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4493c8]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4493a6
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4493b5
or bl, 4
test esi, 0x20000000
je 0x4493c0
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450a7c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450a8e
add esp, 0xfffffff0
call fcn.00403b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a274
mov eax, dword [0x4697ac]
mov dword [eax + 4], ebx
mov dword [eax], 0x450e20
mov eax, dword [0x4697b8]
mov dword [eax + 4], ebx
mov dword [eax], 0x450e2c
mov eax, ebx
call fcn.00450e38
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44c8d0
push eax
push 0
push 0
mov eax, dword [0x469914]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ddf0]
call fcn.0041f310
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ddf0]
call fcn.0041f310
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ddf0]
call fcn.0041f310
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451268
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451138
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451138
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x451138
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450bcb
call fcn.00403b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x450f1c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4510c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4510a8
mov dl, 1
mov eax, dword [0x412210]
call fcn.00403804
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404648
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x451097
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00443eb4
test al, al
je 0x45108a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4510d8
lea eax, [ebp - 0x254]
call fcn.00409298
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45108a
xor eax, eax
push ebp
push 0x451083
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x451110
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45106c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45106c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45108a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450f8d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00415f78
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4510ce
lea eax, [ebp - 0x260]
call fcn.00404648
ret

Function at 0x451a40
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x46d57c]
cmp byte [eax + 0xad], 0
jne 0x451ab1
cmp dword [0x46d594], 0
jne 0x451a72
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4519fc
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x46d594], eax
cmp dword [0x46d590], 0
jne 0x451a8d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x46d590], eax
cmp dword [0x46d598], 0
jne 0x451ab1
push esp
push 0
push 0
push 0x4519a0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x46d598], eax
pop edx
ret
Function at 0x451c84
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x451c9b
add esp, 0xfffffff0
call fcn.00403b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a274
mov eax, dword [0x4698f8]
cmp word [eax + 2], 0
jne 0x451cc3
mov eax, dword [0x4698f8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453734
mov eax, dword [0x4699a8]
cmp word [eax + 2], 0
jne 0x451cdd
mov eax, dword [0x4699a8]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00453940
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411dec]
call fcn.00403804
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e5cc]
call fcn.0042447c
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x451e94
mov eax, dword [0x469814]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424850
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x454000
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x469814]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c9a8
test eax, eax
je 0x451de4
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c3c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c9dc
test eax, eax
je 0x451df8
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004048b8
mov byte [ebx + 0xd4], 0
push ebx
push 0x453294
call fcn.0041b3f0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46970c]
cmp byte [eax], 0
jne 0x451e49
mov eax, ebx
call fcn.00451fd8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004541dc
mov eax, ebx
call fcn.00454d3c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x451e89
call fcn.00403b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x452258
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46d57c]
cmp dword [eax + 0x30], 0
je 0x452302
cmp dword [ebx + 0x94], 0
jne 0x4522fc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4521e8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4522fc
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4522c2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4522fc
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414220
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4522d1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45301c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x453051
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404738
jmp 0x45305e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040469c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4543c0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45442e
mov eax, esi
call fcn.0043ecbc
test al, al
je 0x45442e
mov eax, dword [ebx + 0x84]
call fcn.0043e91c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45442e
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x454422
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e91c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00436d88
jmp 0x45442e
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004541fc
pop esi
pop ebx
ret
Function at 0x45ba60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404afc
xor eax, eax
push ebp
push 0x45bb5a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
push 0x20
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x412410]
call fcn.00416550
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45bb3d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xe]
mov ecx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebp - 0xe], 0x5a4d
je 0x45bac8
call fcn.0040413c
jmp 0x45bb44
xor ecx, ecx
mov edx, 0x3c
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0xe]
mov ecx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
movzx edx, word [ebp - 0xe]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0x14]
lea edx, [ebp - 0xe]
mov ecx, 2
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 0xc]
cmp word [ebp - 0xe], 0x4550
je 0x45bb19
cmp word [ebp - 0xe], 0x454e
je 0x45bb19
xor eax, eax
jmp 0x45bb1b
mov al, 1
mov byte [ebp - 5], al
cmp word [ebp - 0xe], 0x4550
sete byte [ebx]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb44
mov eax, dword [ebp - 0xc]
call fcn.00403834
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bb61
lea eax, [ebp - 4]
call fcn.00404648
ret
Function at 0x4083d0
Capabilities:
Create directory

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x200c
call fcn.0040fb48
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x43e0a0]
test eax, eax
je 0x408490
xor ebx, ebx
test eax, eax
jg 0x40840b
jmp 0x408438
add ebx, 1
cmp ebx, dword [0x43e0a0]
jge 0x408438
mov eax, dword [ebx*4 + 0x43d0a0]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x408400
mov eax, 1
add esp, 0x2010
pop ebx
pop esi
pop edi
ret
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x40844c
cmp word [esi + 2], 0x3a
je 0x408422
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x4084d0
mov ebx, dword [0x43e0a0]
cmp ebx, 0x3ff
jg 0x408422
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x43e0a0], 1
mov dword [ebx*4 + 0x43d0a0], eax
jmp 0x408422
lea ebx, [esp + 0x10]
mov ecx, 0x1000
mov edx, str.HOME
mov eax, ebx
call fcn.00407c40
test al, al
je 0x4084e4
mov dword [esp], ebx
mov edi, dword [0x43e0a0]
call sub.msvcrt.dll__wcsdup
mov dword [edi*4 + 0x43d0a0], eax
mov eax, dword [0x43e0a0]
add eax, 1
mov dword [0x43e0a0], eax
jmp 0x4083f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408464
xor eax, eax
jmp 0x408427
mov eax, str.HOME
call fcn.00408300
nop

Function at 0x4085b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x438060]
test eax, eax
je 0x4085e9
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x408600
mov eax, dword [0x438060]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x43b080], 0
jne 0x408620
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x438060]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x4085d8
mov edx, 0x414
lea esi, [esp + 0x10]
mov dword [esp + 0x10], 0
mov ebx, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x14], 3
mov ebp, 0x14
mov dword [esp + 0x18], 0x43b0a0
mov dword [esp + 0x1c], 0x41713c
mov word [esp + 0x20], dx
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0x41713c
mov dword [esp], esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
mov dword [esp], 0x43b0a0
call edi
sub esp, 4
cmp eax, 0xffffffff
je 0x4085f2
test al, 0x10
je 0x4085f2
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x18], 0x43b0a0
mov dword [esp + 0x1c], 0x41713c
mov word [esp + 0x20], ax
mov dword [esp + 0x22], 0
mov dword [esp + 0x26], 0
mov dword [esp + 0x2a], 0x41713c
mov dword [esp], esi
call ebx
sub esp, 4
sub ebp, 1
jne 0x40867f
jmp 0x4085f2
Function at 0x40eb98
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.00414f88
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.00414f88
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x40f76c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40f78b
mov eax, 0
jmp 0x40f7cf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40f7ae
mov eax, 0
jmp 0x40f7cf
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40f7ca
mov eax, 0
jmp 0x40f7cf
mov eax, 1
leave
ret

Function at 0x40f7d1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40f830
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40f828
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40f828
mov eax, dword [ebp - 4]
jmp 0x40f844
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40f805
mov eax, 0
leave
ret
Function at 0x407712
Capabilities:
Parse pe header

Disassembly:
push 0
push ebp
call fcn.004a39c4
test eax, eax
je 0x407752
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x407752
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x407752
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x407752
cmp dword [ecx + 0x74], 0xe
jbe 0x407752
cmp dword [ecx + 0xe8], 0
je 0x407752
mov al, 1
ret
xor al, al
ret

Function at 0x417250
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004170c6

Function at 0x423000
Capabilities:
Access peb ldr_data
Get number of processors
Hash data using fnv
Resolve function by fnv-1a hash
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x433024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x4243a8
mov dword [ebp - 0x28], ebx
jmp fcn.004ed5a8