joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435440
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43548c
mov eax, esi
call fcn.0044ac94
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43548c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43548c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x4355cb
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x4354cc
cmp eax, 0x108
ja 0x4354cc
mov eax, esi
call fcn.0044ac94
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4355c2
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x4355cb
jmp 0x4355c2
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x4355ab
cmp eax, 0x20a
ja 0x4355ab
test byte [esi + 0x50], 0x80
jne 0x4354fe
sub eax, 0x203
je 0x4354fb
sub eax, 3
je 0x4354fb
sub eax, 3
jne 0x4354fe
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x435512
dec eax
je 0x435527
dec eax
je 0x435544
dec eax
je 0x435527
jmp 0x43554b
mov ecx, ebx
mov eax, dword [0x457054]
mov eax, dword [eax]
mov edx, esi
call fcn.0045455c
jmp 0x4355c2
cmp byte [esi + 0x5d], 1
jne 0x43553d
mov eax, esi
mov si, 0xffed
call fcn.004036c8
jmp 0x4355cb
or word [esi + 0x54], 1
jmp 0x4355c2
and word [esi + 0x54], 0xfffe
jmp 0x4355c2
mov eax, dword [0x458b18]
cmp byte [eax + 0x20], 0
je 0x4355c2
mov eax, dword [0x458b18]
cmp dword [eax + 0x1c], 0
je 0x4355c2
mov eax, dword [ebx]
mov edx, dword [0x458b18]
cmp eax, dword [edx + 0x1c]
jne 0x4355c2
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.0044abd8
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004036c8
jmp 0x4355cb
cmp eax, 0xb00b
jne 0x4355c2
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00433d60
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438c4c
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 + 0x1f8], 0
je 0x438c68
cmp dword [esi + 4], 0
je 0x438c95
test byte [ebx + 0x55], 1
jne 0x438c87
mov eax, ebx
call fcn.004377ec
test eax, eax
jne 0x438c87
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x438da5
mov edx, esi
mov eax, ebx
call fcn.00438770
jmp 0x438da5
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 0x438d9e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043aabc
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.00435374
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00438c4c
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.0043aabc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438da5
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 0x43f330
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4571bc]
cmp byte [eax + 0xc], 0
je 0x43f49d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43f496
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x458b6c], 0
jne 0x43f384
push 0x43f4a4
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43f4ac
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b6c], eax
cmp dword [0x456b94], 0
jne 0x43f47f
push 0x43f4bc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x456b94], eax
cmp dword [0x456b94], 0
je 0x43f47f
push 0x43f4c8
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b70], eax
push 0x43f4d8
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b74], eax
push 0x43f4ec
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b78], eax
push 0x43f504
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b7c], eax
push 0x43f51c
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b80], eax
push 0x43f530
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b84], eax
push 0x43f548
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b88], eax
push 0x43f560
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b8c], eax
push 0x43f57c
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b90], eax
push 0x43f588
mov eax, dword [0x456b94]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x458b94], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f49d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x443328
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404234
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x443377
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004044a4
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44ab48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44ab98]
test si, 4
je 0x44ab5c
or bl, 1
test si, 8
je 0x44ab66
or bl, 4
test si, 1
je 0x44ab70
or bl, 8
test si, 2
je 0x44ab7a
or bl, 0x10
test si, 0x10
je 0x44ab84
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44ab93
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44ab9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44abd4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44abb5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44abc4
or bl, 4
test esi, 0x20000000
je 0x44abcf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x451298
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4512aa
add esp, 0xfffffff0
call fcn.004037e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a144
mov eax, dword [0x456e88]
mov dword [eax + 4], ebx
mov dword [eax], 0x45163c
mov eax, dword [0x456e94]
mov dword [eax + 4], ebx
mov dword [eax], 0x451648
mov eax, ebx
call fcn.00451654
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411b08]
call fcn.00403490
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411b08]
call fcn.00403490
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411b08]
call fcn.00403490
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411b08]
call fcn.00403490
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411b08]
call fcn.00403490
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, 0x44da6c
push eax
push 0
push 0
mov eax, dword [0x456fd8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41bb78]
call fcn.0041cfe0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41bb78]
call fcn.0041cfe0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41bb78]
call fcn.0041cfe0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00451aa4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45196c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45196c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45196c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4513e7
call fcn.00403838
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x451750
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 0x4518fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4518dc
mov dl, 1
mov eax, dword [0x4120b0]
call fcn.00403490
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404234
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4518cb
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.0043f690
test al, al
je 0x4518be
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, 0x45190c
lea eax, [ebp - 0x254]
call fcn.00408ea0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4518be
xor eax, eax
push ebp
push 0x4518b7
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 0x451944
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4518a0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a4
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 0x4518a0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4518be
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4517c1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00416334
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 0x451902
lea eax, [ebp - 0x260]
call fcn.00404234
ret

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

Disassembly:
push ecx
mov eax, dword [0x458bb8]
cmp byte [eax + 0xa5], 0
jne 0x4522b5
cmp dword [0x458bd0], 0
jne 0x452276
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x452200
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x458bd0], eax
cmp dword [0x458bcc], 0
jne 0x452291
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x458bcc], eax
cmp dword [0x458bd4], 0
jne 0x4522b5
push esp
push 0
push 0
push 0x4521a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x458bd4], eax
pop edx
ret
Function at 0x452948
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x458bb8]
cmp dword [eax + 0x30], 0
je 0x4529f2
cmp dword [ebx + 0x94], 0
jne 0x4529ec
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4528d8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4529ec
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 0x4529b2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4529ec
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.00413ffc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4529c1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x453550
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x453585
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.00404324
jmp 0x453592
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404288
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4546a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4546e5
mov eax, esi
call fcn.0043adc0
test al, al
je 0x4546e5
mov eax, dword [ebx + 0x84]
call fcn.0043aabc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4546e5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043aabc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x406371
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x238
mov eax, 0x40e86a
call fcn.0040d30f
mov dword [ebp - 0x21c], ecx
movzx eax, word [ebp + 8]
xor edi, edi
mov esi, dword [0x4166e8]
inc edi
push 0xf0
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceW]
test eax, eax
je 0x4064e2
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x4064e2
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064e2
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x4064e2
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x220], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x40645b
push 3
lea eax, [ebp - 0x110]
push esi
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], eax
call main
push dword [ebp - 0x114]
mov eax, dword [ebp - 0x21c]
and dword [ebp - 4], 0
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
lea eax, [ebp - 0x110]
cmove edi, ecx
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], eax
je 0x4064d4
push dword [ebp - 0x114]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
jmp 0x4064d4
mov ecx, 0x1234
cmp cx, ax
jne 0x4064d4
or dword [ebp - 0x240], 0xffffffff
lea eax, [ebp - 0x214]
push 3
push esi
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x244], 1
mov dword [ebp - 0x218], eax
call main
mov eax, dword [ebp - 0x218]
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x23c], eax
cmp eax, ecx
je 0x4064ae
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
lea eax, [ebp - 0x244]
push eax
mov eax, dword [ebp - 0x21c]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 0x220]
test edi, edi
jne 0x4063c9
mov eax, edi
call fcn.0040d2ca
ret 4

Function at 0x4072d4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
mov dword [ebp - 4], ecx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call main
add esi, esi
mov ebx, eax
push esi
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
push esi
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
add eax, 0x25c
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
push str.labels
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
push ebx
call fcn.0040d060
mov eax, dword [ebp + 0xc]
pop ecx
pop esi
pop ebx
leave
ret 0xc

Function at 0x401a09
Capabilities:
Hide graphical window

Disassembly:
mov ecx, 0xfffffffe
jmp fcn.00401641
Function at 0x4019f9
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x228
lea ebp, [esp - 4]
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x228], eax
push 0x90
mov eax, 0x41b649
call fcn.0040b33b
mov esi, dword [ebp + 0x234]
xor ebx, ebx
push ebx
push 0x41c30c
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.00401381
cmp eax, 0xffffffff
jne 0x401b85
push ebx
push 0x41c308
mov ecx, esi
call fcn.00401381
cmp eax, 0xffffffff
jne 0x401b85
mov esi, 0x103
push esi
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp + 0x104], bl
call fcn.0040c420
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0040c420
add esp, 0x18
lea eax, [ebp + 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401a9e
xor al, al
jmp 0x401b87
mov esi, 0x41c304
lea edi, [ebp + 0x208]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x10]
push 7
xor eax, eax
cmp dword [esi + 0x18], 0x10
pop ecx
lea edi, [ebp + 0x20b]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jb 0x401ac8
mov eax, dword [esi + 4]
jmp 0x401acb
lea eax, [esi + 4]
push ebx
push eax
lea eax, [ebp + 0x208]
push eax
lea eax, [ebp]
push eax
call fcn.0040b445
add esp, 0x10
push str..log
lea ecx, [ebp - 0x80]
call fcn.0040198c
mov edi, eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 4
call fcn.0040198c
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.0040198c
push dword [ebp - 0x10]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004019ae
push edi
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 7
call fcn.004019ae
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
mov byte [ebp - 4], 8
call fcn.00401829
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x9c]
call fcn.004013a2
push ebx
push esi
lea ecx, [ebp - 0x48]
call fcn.004013a2
push ebx
push esi
lea ecx, [ebp - 0x64]
call fcn.004013a2
push ebx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004013a2
push ebx
push esi
lea ecx, [ebp - 0x80]
call fcn.004013a2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x228]
xor ecx, ebp
call fcn.0040af65
add ebp, 0x22c
leave
ret
Function at 0x403294
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x264
lea ebp, [esp - 4]
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp + 0x264], eax
push 0x28
mov eax, 0x41b83b
call fcn.0040b33b
mov eax, dword [ebp + 0x278]
mov esi, dword [ebp + 0x270]
mov edi, dword [ebp + 0x274]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x27c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x280]
xor ebx, ebx
push 0x13c
mov dword [ebp - 0x10], eax
lea eax, [ebp + 4]
push ebx
push eax
mov dword [ebp], ebx
call fcn.0040c420
push 0x104
lea eax, [ebp + 0x15e]
push ebx
push eax
mov word [ebp + 0x15c], bx
call fcn.0040c420
add esp, 0x18
push ebx
lea ecx, [ebp + 0x140]
mov dword [ebp + 0x158], 0xf
call fcn.004010b3
push dword [ebp - 0x18]
lea eax, [ebp + 0x15c]
push dword [ebp - 0x14]
mov dword [ebp - 4], ebx
push edi
push esi
push eax
call fcn.0040d2a0
add esp, 0x14
lea eax, [ebp]
push eax
lea eax, [ebp + 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403397
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040198c
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 1
call fcn.0040323f
push ebx
push 1
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004013a2
lea eax, [ebp]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403357
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp + 0x140]
call fcn.004013a2
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x264]
xor ecx, ebp
call fcn.0040af65
add ebp, 0x268
leave
ret
Function at 0x4037d9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x422608]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
call fcn.0040369c
test eax, eax
je 0x4037fb
inc esi
jmp 0x403837
call fcn.00403684
test eax, eax
jne 0x403837
mov esi, 0x94
push esi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0040c420
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
sbb esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040af65
leave
ret

Function at 0x403b95
Capabilities:
Set registry value

Disassembly:
push 0x18
mov eax, 0x41b9ab
call fcn.0040b33b
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.00401ebb
push dword [ebp + 0xc]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401ebb
mov byte [ebp - 4], 1
call fcn.004037d9
test eax, eax
je 0x403bf9
push dword [ebp + 0x10]
lea ecx, [ebp - 0x24]
call fcn.00401ebb
push dword [eax + 4]
mov byte [ebp - 4], 2
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403846
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401ef4
jmp 0x403c8c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.004039fa
push dword [ebp - 0x18]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00403a9d
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x403c41
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], al
call fcn.00401ef4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401ef4
xor eax, eax
call fcn.0040b413
ret
push dword [ebp + 0x10]
call main
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
push esi
je 0x403c86
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00401ef4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00401ef4
mov eax, esi
jmp 0x403c3b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
inc esi
jmp 0x403c6a