joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a714
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 0x45a8bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a8a0
mov dl, 1
mov eax, dword [0x418974]
call fcn.00403360
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404100
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a88f
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.00448678
test al, al
je 0x45a882
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, 0x45a8d0
lea eax, [ebp - 0x254]
call fcn.0040945c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a882
xor eax, eax
push ebp
push 0x45a87b
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 0x45a908
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a864
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404370
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 0x45a864
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404370
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a882
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a785
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041c450
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 0x45a8c6
lea eax, [ebp - 0x260]
call fcn.00404100
ret

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

Disassembly:
push ecx
mov eax, dword [0x470bb4]
cmp byte [eax + 0xa5], 0
jne 0x45b265
cmp dword [0x470bcc], 0
jne 0x45b226
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b1b0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x470bcc], eax
cmp dword [0x470bc8], 0
jne 0x45b241
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x470bc8], eax
cmp dword [0x470bd0], 0
jne 0x45b265
push esp
push 0
push 0
push 0x45b154
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x470bd0], eax
pop edx
ret
Function at 0x45b35c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45b373
add esp, 0xfffffff0
call fcn.004036b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004202f4
mov eax, dword [0x46f3ac]
cmp word [eax + 2], 0
jne 0x45b39b
mov eax, dword [0x46f3ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045cadc
mov eax, dword [0x46f474]
cmp word [eax + 2], 0
jne 0x45b3b5
mov eax, dword [0x46f474]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045ccd4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418558]
call fcn.00403360
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418558]
call fcn.00403360
mov dword [ebx + 0xa8], 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 + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4228c8]
call fcn.0042a250
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45b53c
mov eax, dword [0x46f294]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a620
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45d284
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46f294]
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.0040cdc8
test eax, eax
je 0x45b4aa
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e50
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cdf0
test eax, eax
je 0x45b4be
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404370
mov eax, dword [0x46f134]
cmp byte [eax], 0
jne 0x45b4f2
mov eax, ebx
call fcn.0045b664
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045d460
mov eax, ebx
call fcn.0045de24
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45b532
call fcn.0040370c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b8e4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x470bb4]
cmp dword [eax + 0x30], 0
je 0x45b98e
cmp dword [ebx + 0x94], 0
jne 0x45b988
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b874
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b988
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 0x45b94e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b988
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.0041a8c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b95d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c4f0
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 0x45c525
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.004041f0
jmp 0x45c532
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404154
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d63c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d67d
mov eax, esi
call fcn.00443c60
test al, al
je 0x45d67d
mov eax, dword [ebx + 0x84]
call fcn.0044395c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d67d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044395c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45e33c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417b08]
call fcn.00404b30
xor eax, eax
push ebp
push 0x45e480
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46ef30], 0
jne 0x45e38f
mov ecx, dword [0x46f148]
mov dl, 1
mov eax, dword [0x4075b0]
call fcn.0040bff4
call fcn.00403b1c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402da4
mov eax, ebx
call fcn.00404968
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x45e490
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405bc8
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404978
test eax, eax
jle 0x45e427
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x45e420
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404388
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404370
mov eax, dword [ebp - 0x48]
pop edx
call fcn.0040845c
test eax, eax
jne 0x45e420
mov ebx, 0x15
jmp 0x45e42c
mov ebx, 0x10
jmp 0x45e42c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x46ef30]
call fcn.0045e294
mov eax, dword [ebp - 8]
call fcn.0045e294
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e487
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404124
lea eax, [ebp - 0x10]
mov edx, dword [0x417b08]
call fcn.00404c00
ret

Function at 0x46aecc
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
lea eax, [ebx + 0x2fc]
push eax
push 0
push 0x30
call sub.user32.dll_SystemParametersInfoA
mov eax, dword [ebx + 0x2f8]
mov edx, dword [ebx + 0x304]
sub edx, dword [eax + 0x48]
sub edx, 0xa
mov eax, ebx
call fcn.0043c8b8
mov eax, dword [ebx + 0x2f8]
mov edx, dword [ebx + 0x308]
sub edx, dword [eax + 0x4c]
sub edx, 0xa
mov eax, ebx
call fcn.0043c8dc
push 0
mov eax, dword [0x46f454]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
push 9
mov eax, ebx
call fcn.0044395c
push eax
call sub.user32.dll_ShowWindow
mov eax, ebx
call fcn.0044395c
push eax
call sub.user32.dll_BringWindowToTop
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x80]
pop ebx
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0xbff058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xbff1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbff07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbff06a
add dl, dl
jne 0xbff089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbff0dc
xor eax, eax
add dl, dl
jne 0xbff096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbff17d
add dl, dl
jne 0xbff0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbff0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbff0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbff0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbff0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbff075
mov eax, 1
add dl, dl
jne 0xbff0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbff0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbff0e1
sub eax, ebx
mov ebx, 1
jne 0xbff128
mov ecx, 1
add dl, dl
jne 0xbff10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbff119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbff105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbff075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbff13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbff14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbff136
cmp eax, 0x7d00
jae 0xbff16d
cmp eax, 0x500
jb 0xbff168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbff075
cmp eax, 0x7f
ja 0xbff170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbff075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbff19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbff075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401276
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x421ed2
call fcn.00415058
sub esp, 0x90
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebp - 4], eax
lea edi, [ebx + 0x14]
mov byte [ebx + 0x10], al
mov byte [ebx + 0x11], al
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], eax
mov word [edi + 4], ax
push eax
sub esp, 0x1c
mov byte [ebp - 4], 1
mov eax, esp
mov dword [ebp - 0x18], esp
push 0x425948
call fcn.00401a5c
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov eax, ecx
call fcn.00401a5c
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
call fcn.0040fac8
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x60]
jmp 0x401360
push str._zglaxservice
call fcn.004026fd
test eax, eax
jne 0x401325
add esi, 0x1c
cmp esi, dword [ebp - 0x5c]
je 0x40135d
push 0xffffffffffffffff
push edi
xor ebx, ebx
mov eax, esi
call fcn.00401ddc
mov eax, dword [ebp + 8]
mov byte [eax + 0x10], 1
mov ebx, eax
jmp 0x40135d
push 0x425924
call fcn.004026fd
test eax, eax
jne 0x401355
push esi
mov eax, ebx
call fcn.004019f0
add esi, 0x1c
cmp esi, dword [ebp - 0x5c]
je 0x401365
push str.console
call fcn.004026fd
test eax, eax
jne 0x401355
mov byte [ebx + 0x11], 1
push esi
mov eax, ebx
call fcn.004019f0
add esi, 0x1c
cmp esi, dword [ebp - 0x5c]
jne 0x4012f8
push ebx
call fcn.0040173f
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
je 0x4013e9
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.00401a33
lea eax, [ebp - 0x80]
push eax
call fcn.00406839
call fcn.00406b08
push 1
xor ebx, ebx
lea esi, [ebp - 0x80]
mov byte [ebp - 0xd], al
call fcn.00401e7c
cmp byte [ebp - 0xd], bl
je 0x4013dc
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.00401a33
lea eax, [ebp - 0x9c]
push eax
call fcn.00406749
push 0xffffffffffffffff
push edi
mov byte [ebp - 4], 4
call fcn.00401ddc
push 1
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 3
call fcn.00401e7c
mov eax, dword [ebp + 8]
add edi, 0x1c
cmp edi, dword [eax + 8]
jne 0x401373
mov ebx, eax
lea edi, [ebp - 0x64]
call fcn.00401404
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x406c60
Capabilities:
Get file size

Disassembly:
cmp dword [eax + 0x18], 8
jb 0x406c6b
mov eax, dword [eax + 4]
jmp 0x406c6e
add eax, 4
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push eax
call dword [0x42b330]
mov esi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40c637
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x4222bb
call fcn.00415058
sub esp, 0x5c
push ebx
xor ebx, ebx
push esi
inc ebx
test byte [0x42bdf8], bl
push edi
mov edi, ecx
jne 0x40c67c
or dword [0x42bdf8], ebx
and dword [ebp - 4], 0
push str.console
mov eax, 0x42bddc
call fcn.00401a5c
push 0x422da6
call fcn.00413271
or dword [ebp - 4], 0xffffffff
pop ecx
push 0x11
mov byte [edi + 0x44], 0
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
setl byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
jne 0x40c69b
cmp byte [edi + 0x21], 0
je 0x40c69e
mov byte [edi + 0x44], bl
cmp byte [edi + 0x44], 0
jne 0x40c771
lea eax, [ebp - 0x4c]
push eax
lea esi, [edi + 4]
push esi
call fcn.0040d34d
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 4], ebx
call fcn.0040d3c1
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
mov ecx, dword [ebp - 0x48]
mov edx, ecx
jae 0x40c829
lea edx, [ebp - 0x48]
mov eax, edx
cmp dword [ebp - 0x34], 8
mov esi, dword [ebp - 0x38]
lea eax, [eax + esi*2]
jae 0x40c6e9
lea ecx, [ebp - 0x48]
mov esi, fcn.00413adc
push esi
push edx
push eax
push ecx
lea ebx, [ebp - 0x14]
call fcn.00403acf
cmp dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x2c]
mov edx, ecx
jae 0x40c830
lea edx, [ebp - 0x2c]
mov eax, edx
cmp dword [ebp - 0x18], 8
mov ebx, dword [ebp - 0x1c]
lea eax, [eax + ebx*2]
jae 0x40c71d
lea ecx, [ebp - 0x2c]
push esi
push edx
push eax
push ecx
lea ebx, [ebp - 0x14]
call fcn.00403acf
mov esi, 0x42bddc
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.0040285b
test eax, eax
je 0x40c74a
mov eax, esi
lea ecx, [ebp - 0x4c]
call fcn.0040285b
test eax, eax
jne 0x40c74e
mov byte [edi + 0x44], 1
push 1
xor ebx, ebx
lea esi, [ebp - 0x30]
call fcn.00401e7c
or dword [ebp - 4], 0xffffffff
push 1
lea esi, [ebp - 0x4c]
call fcn.00401e7c
cmp byte [edi + 0x44], bl
je 0x40c81a
call fcn.00402932
push eax
call fcn.00402954
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
add edi, 4
push edi
call fcn.0040d2d9
or dword [ebp - 4], 0xffffffff
call fcn.00402932
call fcn.004029f3
cmp byte [ebp - 0xd], 0
je 0x40c81a
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4259fc
call fcn.00402432
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 4], 4
call fcn.00410cca
push eax
call fcn.00410da7
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.00406d91
or dword [ebp - 4], 0xffffffff
push 1
xor ebx, ebx
lea esi, [ebp - 0x68]
mov edi, eax
call fcn.00401e7c
push 2
push ebx
push edi
call fcn.00413c78
push str.lax.control_keytrue_n
push edi
call fcn.004139b6
push str.lax.stderr.redirectconsole_n
push edi
call fcn.004139b6
push str.lax.stdout.redirectconsole_n
push edi
call fcn.004139b6
add esp, 0x24
push edi
call fcn.00406e75
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov eax, ecx
jmp 0x40c6da
mov eax, ecx
jmp 0x40c70e
Function at 0x40dade
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x422d0f
call fcn.00415058
sub esp, 0x2f4
push ebx
push esi
push edi
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x10], esp
push eax
call fcn.00401276
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
sub esp, 0x30
mov byte [ebp - 4], 1
cmp byte [ebp - 0x5c], 0
mov eax, esp
mov dword [ebp - 0x18], esp
lea edi, [ebp - 0x6c]
push eax
je 0x40db48
call fcn.00401432
call fcn.0040f061
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
lea edi, [ebp - 0x6c]
call fcn.0040bce6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
call fcn.00401432
lea eax, [ebp - 0x300]
push eax
call fcn.0040bb99
push 1
lea ecx, [ebp - 0x300]
mov byte [ebp - 4], 2
call fcn.0040bd03
call fcn.00402932
cmp byte [eax], 0
je 0x40dba8
lea eax, [ebp - 0x2fc]
push eax
call fcn.0040d933
test al, al
jne 0x40db91
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x40dba8
push str._press_enter_to_close_this_window__n
call fcn.0041431b
mov dword [esp], 0x42a258
call fcn.00414381
pop ecx
mov eax, dword [ebp - 0x298]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x300]
push eax
mov byte [ebp - 4], 1
call fcn.0040dc9e
jmp 0x40db2c

Function at 0x40eb3a
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
mov eax, 0x421fae
call fcn.00415058
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push 7
xor ebx, ebx
pop eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
mov dword [ebp - 4], ebx
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov word [esi + 0x20], bx
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov word [esi + 0x3c], bx
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov word [esi + 0x58], bx
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x10], esp
push 0x425b94
mov byte [ebp - 4], 3
call fcn.00401a5c
lea eax, [esi + 0x70]
push eax
call fcn.00406839
lea eax, [esi + 0x8c]
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax], 0x42694c
lea eax, [esi + 0xa0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xb0]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov byte [esi + 0xcc], bl
mov byte [esi + 0xcd], bl
mov byte [esi + 0xce], bl
mov byte [esi + 0xcf], bl
mov byte [esi + 0xd0], bl
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x40ec0e
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
mov eax, 0x421f54
call fcn.00415058
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 7
xor edi, edi
pop ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
mov word [esi + 4], di
mov dword [ebp - 4], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], edi
mov word [esi + 0x20], di
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], edi
mov word [esi + 0x3c], di
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x68], edi
mov word [esi + 0x58], di
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x10], esp
push 0x425b94
mov byte [ebp - 4], 3
call fcn.00401a5c
lea eax, [esi + 0x70]
push eax
call fcn.00406839
lea eax, [esi + 0x8c]
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
mov dword [eax], 0x42694c
lea eax, [esi + 0xa0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
lea eax, [esi + 0xb0]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov edi, dword [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.0040ecbf
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x40f185
Capabilities:
Terminate process

Disassembly:
mov eax, 0x42173b
call fcn.00415058
sub esp, 0x2c
push ebx
push esi
push 1
push 0x40f3a9
call dword [sym.imp.KERNEL32.DLL_SetConsoleCtrlHandler]
xor esi, esi
push esi
mov dword [edi + 0x278], 0x10
mov dword [edi + 0x280], esi
mov dword [edi + 0x284], esi
mov dword [edi + 0x28c], esi
mov dword [edi + 0x290], 0x1388
call dword [sym.imp.KERNEL32.DLL_SetLastError]
lea eax, [ebp - 0x38]
push eax
lea eax, [edi + 0x10]
call fcn.00401724
mov dword [ebp - 4], esi
cmp dword [eax + 0x18], 8
jb 0x40f1ea
mov eax, dword [eax + 4]
jmp 0x40f1ed
add eax, 4
push 0x40f35e
push eax
call section..text
call fcn.00401093
or dword [ebp - 4], 0xffffffff
push 1
xor ebx, ebx
lea esi, [ebp - 0x38]
mov dword [edi + 0x294], eax
call fcn.00401e7c
mov eax, edi
mov dword [edi + 0x27c], 2
mov dword [edi + 0x280], ebx
call fcn.0040f346
push edi
lea esi, [ebp - 0x1c]
call fcn.0040f278
mov eax, esi
push eax
call fcn.00410e97
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [edi + 0x64]
cmp eax, ebx
mov dword [ebp - 0x10], ebx
je 0x40f270
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0x10], ebx
jne 0x40f267
mov esi, edi
call fcn.0040f2dc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push ebx
call dword [sym.imp.KERNEL32.DLL_ExitThread]