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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], edx
xor eax, eax
mov dword [ebp - 0x14], eax
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
cmp dword [0x44a75c], 0
sete dl
or al, dl
jne 0x423438
mov eax, dword [0x44a760]
mov bx, 0xffff
call fcn.00402ea4
mov eax, dword [0x44a75c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x423407
inc esi
xor edi, edi
mov edx, edi
mov eax, dword [0x44a75c]
call fcn.0040d058
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
je 0x4233ff
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x16c], 0
je 0x4233ff
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4233ff
mov eax, dword [ebp - 0x10]
call fcn.0042b188
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4233ff
push ebp
call fcn.004232b0
pop ecx
test al, al
jne 0x4233ff
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x8c]
cmp eax, dword [ebp - 0x10]
jne 0x4233bb
mov eax, dword [ebp - 0x10]
call fcn.00429acc
dec eax
jle 0x4233ff
mov byte [ebp - 0x15], 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x15]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov bx, 0xffc2
call fcn.00402ea4
cmp byte [ebp - 0x15], 0
je 0x4233ff
push dword [ebp - 4]
push dword [ebp - 8]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4233ff
mov edx, dword [ebp - 0x10]
mov eax, dword [0x44a760]
call fcn.00422b60
inc edi
dec esi
jne 0x42334e
mov eax, dword [0x44a760]
cmp dword [eax + 8], 0
jle 0x42341f
mov eax, dword [0x44a760]
call fcn.00422bf0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x423438
push ebp
mov eax, dword [ebp - 0x14]
call fcn.00423168
pop ecx
test al, al
jne 0x423438
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428c58
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x428c89
je 0x428ce3
sub eax, 7
je 0x428caa
dec eax
je 0x428cd4
sub eax, 0x17
je 0x428d64
jmp 0x428da2
add eax, 0xffffff00
sub eax, 9
jb 0x428d50
add eax, 0xffffff09
sub eax, 0xb
jb 0x428d3a
jmp 0x428da2
mov eax, ebx
call fcn.0043932c
mov edi, eax
test edi, edi
je 0x428e02
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xc8]
test al, al
je 0x428e0b
jmp 0x428e02
test byte [ebx + 0x44], 0x20
jne 0x428e0b
jmp 0x428e02
mov edx, esi
mov eax, ebx
call fcn.00426544
cmp dword [esi + 0xc], 0xffffffff
jne 0x428e0b
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004066c4
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00424fec
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.00428b08
test eax, eax
je 0x428e0b
mov dword [esi + 0xc], 1
jmp 0x428e0b
mov edx, esi
mov eax, ebx
call fcn.00428bcc
test al, al
jne 0x428e0b
jmp 0x428e02
mov eax, ebx
call fcn.00425bbc
test al, al
jne 0x428e0b
jmp 0x428e02
mov eax, ebx
call fcn.0042b188
mov edi, eax
call sub.user32.dll_GetCapture
cmp edi, eax
jne 0x428e02
cmp dword [0x4496f8], 0
je 0x428e02
mov eax, dword [0x4496f8]
cmp ebx, dword [eax + 0x24]
jne 0x428e02
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x4496f8]
call fcn.00426460
jmp 0x428e02
mov eax, dword [0x44a724]
cmp byte [eax + 0x20], 0
je 0x428e02
mov eax, dword [0x44a724]
cmp dword [eax + 0x1c], 0
je 0x428e02
mov eax, dword [esi]
mov edx, dword [0x44a724]
cmp eax, dword [edx + 0x1c]
jne 0x428e02
lea eax, [ebp - 0x110]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.00439240
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb9
call fcn.00402ea4
jmp 0x428e0b
mov edx, esi
mov eax, ebx
call fcn.00426544
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42929c
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 + 0x1e8], 0
je 0x4292b8
cmp dword [esi + 4], 0
je 0x4292e5
test byte [ebx + 0x45], 1
jne 0x4292d7
mov eax, ebx
call fcn.0042830c
test eax, eax
jne 0x4292d7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4293f5
mov edx, esi
mov eax, ebx
call fcn.00428f14
jmp 0x4293f5
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 0x4293ee
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042b188
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.00426460
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0042929c
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.0042b188
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4293f5
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 0x432d14
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.00403868
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x432d75
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x432d75
cmp byte [ebp - 0x102], 0
je 0x432d75
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00403a94
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x439010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x44a7d8
cmp dword [edi], 0
jne 0x43908c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x44a7d4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x449884
mov ecx, 2
call fcn.004027f8
mov edx, 0x438fe8
lea eax, [esi + 5]
call fcn.00439008
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00439008
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x439061
mov dword [0x44a7d4], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4391b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x439200]
test si, 4
je 0x4391c4
or bl, 1
test si, 8
je 0x4391ce
or bl, 4
test si, 1
je 0x4391d8
or bl, 8
test si, 2
je 0x4391e2
or bl, 0x10
test si, 0x10
je 0x4391ec
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4391fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x439204
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43923c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43921d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43922c
or bl, 4
test esi, 0x20000000
je 0x439237
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x43f8e0
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 0x43fa85
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40bd34]
call fcn.00402c98
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403868
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43fa5b
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.0042f82c
test al, al
je 0x43fa4e
lea eax, [ebp - 0xc]
push eax
push 0xf003f
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, 0x43fa94
lea eax, [ebp - 0x254]
call fcn.004083f0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x43fa4e
xor eax, eax
push ebp
push 0x43fa47
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 0x43facc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x43fa30
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403a94
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x43fa30
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403a94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fa4e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x43f951
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040ebdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43fa8c
lea eax, [ebp - 0x260]
call fcn.00403868
ret

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

Disassembly:
push ecx
mov eax, dword [0x44a7a8]
cmp byte [eax + 0x8d], 0
jne 0x440299
cmp dword [0x44a7e4], 0
jne 0x44025a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4401e4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x44a7e4], eax
cmp dword [0x44a7e0], 0
jne 0x440275
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x44a7e0], eax
cmp dword [0x44a7e8], 0
jne 0x440299
push esp
push 0
push 0
push 0x440188
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x44a7e8], eax
pop edx
ret
Function at 0x440860
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x44a7a8]
cmp dword [eax + 0x24], 0
je 0x4408f0
cmp dword [ebx + 0x7c], 0
jne 0x4408ed
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4407f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x4408ed
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 0x4408bc
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4408ed
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040d058
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4408c8
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x441240
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x441275
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040394c
jmp 0x44127f
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403900
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44215c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x442194
mov eax, esi
call fcn.0042b5b0
test al, al
je 0x442194
mov eax, dword [ebx + 0x6c]
call fcn.0042b188
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x442194
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042b188
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x44671c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x204], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4468fe
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x446766
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044623c
mov eax, dword [ebp - 0x204]
mov edx, ebx
call fcn.00409518
cmp al, 1
jne 0x446766
dec ebx
mov edi, ebx
mov eax, esi
call fcn.00446500
test al, al
je 0x44689e
test edi, edi
jge 0x44677d
xor edi, edi
lea ebx, [edi + 1]
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044623c
mov eax, dword [ebp - 0x204]
call fcn.00403ae4
cmp ebx, eax
jge 0x4467c4
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044623c
mov eax, dword [ebp - 0x204]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x449e20]
and eax, 0xff
bt dword [edx], eax
jae 0x4467c4
inc ebx
mov eax, dword [esi + 0x20c]
cmp edi, eax
jl 0x4467d2
mov edi, eax
mov ebx, edi
mov ecx, ebx
mov edx, ebx
mov eax, esi
call fcn.004466f8
cmp ebx, edi
je 0x446896
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x200]
mov byte [eax], 0
inc eax
dec edx
jne 0x4467fc
mov byte [ebp - 0x1f0], 0x81
mov eax, esi
mov bx, 0xffcf
call fcn.00402ea4
and eax, 0x7f
movzx eax, word [eax*2 + 0x449aa8]
mov byte [ebp + eax - 0x200], 0x81
lea eax, [ebp - 0x200]
push eax
call sub.user32.dll_SetKeyboardState
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00402ea4
and eax, 0x7f
movzx eax, word [eax*2 + 0x449aa8]
push eax
push pe_nt_image_headers32
mov eax, esi
call fcn.0042b188
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, esi
mov bx, 0xffcf
call fcn.00402ea4
and eax, 0x7f
movzx eax, word [eax*2 + 0x449aa8]
push eax
push 0x101
mov eax, esi
call fcn.0042b188
push eax
call sub.user32.dll_SendMessageA
lea eax, [ebp - 0x100]
push eax
call sub.user32.dll_SetKeyboardState
mov dword [esi + 0x214], edi
jmp 0x4468e5
test edi, edi
jge 0x4468a4
xor edi, edi
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044623c
mov eax, dword [ebp - 0x204]
call fcn.00403ae4
cmp edi, eax
jl 0x4468da
lea edx, [ebp - 0x204]
mov eax, esi
call fcn.0044623c
mov eax, dword [ebp - 0x204]
call fcn.00403ae4
mov edi, eax
mov ecx, edi
mov edx, edi
mov eax, esi
call fcn.004466f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446905
lea eax, [ebp - 0x204]
call fcn.00403868
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x411288]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
push 0x11c
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00407a20
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0x11c
call esi
test eax, eax
jne 0x401055
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x114
call esi
test eax, eax
je 0x401059
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x18]
sub ecx, 0
pop esi
je 0x401184
sub ecx, 1
je 0x40111e
sub ecx, 1
jne 0x401186
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40109a
lea eax, [ecx + 5]
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
cmp eax, 5
jne 0x4010da
cmp dword [esp + 0xc], 0
jne 0x4010c0
mov eax, 4
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
mov eax, 3
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
cmp eax, 6
jne 0x401184
cmp dword [esp + 0xc], 0
jne 0x401104
mov eax, 2
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
mov eax, 1
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40116a
jne 0x401136
mov eax, dword [esp + 0xc]
cmp eax, 0xa
ja 0x40116a
test eax, eax
ja 0x401150
mov eax, 8
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
mov eax, 7
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
mov eax, 6
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret
xor eax, eax
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.00401d08
add esp, 0x124
ret

Function at 0x4011a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x411288]
xor eax, esp
mov dword [esp + 0x40c], eax
push 0x400
lea eax, [esp + 0xe]
push 0
push eax
mov word [esp + 0x14], 0
call fcn.00407a20
add esp, 0xc
push 0x200
lea ecx, [esp + 0xc]
push ecx
push 0
mov dword [esp + 0x10], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x401239
push 0
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x401239
mov edx, dword [esp]
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.00401d08
add esp, 0x410
ret
Function at 0x401250
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x58
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00407a20
add esp, 0xc
xor eax, eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x7c]
push eax
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], 0
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4012e9
mov ecx, dword [esp + 4]
push esi
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop esi
mov eax, dword [esp]
add esp, 0x58
ret

Function at 0x4012f0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x210
mov eax, dword [0x411288]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00407a20
add esp, 0xc
push 0x208
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
xor ebx, ebx
xor edx, edx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401340
sub eax, esi
sar eax, 1
je 0x401381
cmp word [esp + edx*2 + 0xc], 0x5c
jne 0x40135b
mov ebx, edx
lea eax, [esp + 0xc]
add edx, 1
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401365
sub eax, esi
sar eax, 1
cmp edx, eax
jb 0x401351
test ebx, ebx
je 0x401381
mov word [esp + ebx*2 + 0xe], cx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
xor ecx, esp
call fcn.00401d08
add esp, 0x210
ret

Function at 0x401d08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411288]
jne 0x401d12
repz ret
jmp fcn.00405b5e
Function at 0x405fc9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x411a28]
je 0x405fe4
inc edi
cmp edi, 0x17
jb 0x405fd5
cmp edi, 0x17
jae 0x406164
push ebp
push 3
call fcn.0040bb00
cmp eax, 1
pop ecx
je 0x406130
push 3
call fcn.0040bb00
test eax, eax
pop ecx
jne 0x406018
cmp dword [section..data], 1
je 0x406130
cmp ebx, 0xfc
je 0x406163
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x412440
push ebp
call fcn.00409709
add esp, 0xc
test eax, eax
je 0x40604e
push esi
push esi
push esi
push esi
push esi
call fcn.004024a8
add esp, 0x14
push 0x104
mov esi, 0x412459
push esi
push 0
mov byte [0x41255d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406092
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00409709
add esp, 0xc
test eax, eax
je 0x406092
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004024a8
add esp, 0x14
push esi
call fcn.00409b70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4060d7
push esi
call fcn.00409b70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x412754
push 0x40e88c
sub ecx, eax
push ecx
push eax
call fcn.00409656
add esp, 0x14
test eax, eax
je 0x4060d7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004024a8
add esp, 0x14
jmp 0x4060d9
xor esi, esi
push 0x40e888
push ebx
push ebp
call fcn.00409598
add esp, 0xc
test eax, eax
je 0x4060f9
push esi
push esi
push esi
push esi
push esi
call fcn.004024a8
add esp, 0x14
push dword [edi*8 + 0x411a2c]
push ebx
push ebp
call fcn.00409598
add esp, 0xc
test eax, eax
je 0x40611b
push esi
push esi
push esi
push esi
push esi
call fcn.004024a8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b943
add esp, 0xc
jmp 0x406163
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x406163
cmp ebp, 0xffffffff
je 0x406163
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x411a2c]
push dword [esi]
call fcn.00409b70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret