joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404510
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x40
push ebx
push esi
mov esi, eax
mov ecx, eax
sar eax, 8
push edi
mov edi, dword [esp + 0x50]
and esi, 0xff
mov ebx, dword [edi + esi*4 + 0x1a4]
and eax, 0xf
sar ecx, 0x10
cmp eax, 5
ja case.default.0x404541
jmp dword [eax*4 + 0x404664]
mov dword [0x41a7a4], ebx
mov dword [0x41a9a0], 0
jmp 0x404651
cmp ecx, 0x400
jne case.default.0x404541
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edx, dword [edi + 0x34]
push 0x40
lea ecx, [esp + 0x10]
push ecx
push eax
push edx
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
jne 0x404594
mov dword [ebx], eax
jmp 0x404651
lea eax, [esp + 0xc]
push eax
call fcn.0040ec28
add esp, 4
jmp 0x40464f
cmp ecx, 0x400
jne case.default.0x404541
mov ecx, dword [edi + esi*4 + 0xa4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 4
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [edi + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextA]
test eax, eax
je 0x404600
mov ecx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0xd5
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + esi*4 + 0xa4]
inc eax
push eax
push ebx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x404651
mov byte [ebx], 0
jmp 0x404651
mov eax, dword [edi + esi*4 + 0xa4]
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [edi + 0x34]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
jmp 0x40464f
cmp ecx, 9
jne case.default.0x404541
mov edx, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x147
push edx
jmp 0x404649
mov eax, dword [edi + esi*4 + 0xa4]
push 0
push 0
push 0x188
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx], eax
cmp dword [edi + 0x48], 0x20
jge case.default.0x404541
mov dword [0x41a7a8], esi
pop edi
pop esi
pop ebx
add esp, 0x40
ret
Function at 0x40bee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jl 0x40bfbd
push ebx
push ebp
mov ebp, dword [eax*4 + 0x41cf90]
mov eax, dword [ebp + 0x30c]
test eax, eax
push esi
push edi
je 0x40bfb9
push 0xffffffffffffffff
push ebp
call fcn.00401130
mov esi, eax
add esp, 8
test esi, esi
jl 0x40bf25
cmp byte [esi + ebp + 0x41c], 2
jge 0x40bfb9
push 0x10
mov dword [esp + 0x1c], 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, ah
jns 0x40bf41
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x10], 0
lea esp, [esp]
add esi, dword [esp + 0x18]
cmp esi, 0x40
jl 0x40bf5d
xor esi, esi
jmp 0x40bf66
test esi, esi
jge 0x40bf66
mov esi, 0x3f
mov edi, dword [ebp + esi*4 + 0xa4]
test edi, edi
je 0x40bf89
movsx ebx, byte [esi + ebp + 0x41c]
cmp ebx, 2
jge 0x40bf89
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x40bf9d
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x40bf50
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
cmp ebx, 1
jne 0x40bfb2
push 0xffffffffffffffff
push 0
push 0xb1
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40f2e1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x418430]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x40f35a
push ebx
call fcn.0040f2aa
test eax, eax
pop ecx
jne 0x40f32c
mov dword [0x41d1a4], 0xf
mov dword [0x41d1a0], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004120c9
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x40f36c
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40f31c
inc eax
cmp eax, 0x104
ja 0x40f31c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40f3a3
cmp eax, dword [ebp + 0x10]
jg 0x40f387
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040ed3f
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x40f3b7
mov dword [0x41d1a0], 0xc
jmp 0x40f31c
cmp eax, dword [ebp + 0x10]
jle 0x40f3b7
mov dword [0x41d1a0], 0x22
jmp 0x40f31c
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00411fa0
pop ecx
pop ecx
jmp 0x40f31e
Function at 0x40fc0b
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x415698
call fcn.00412ebc
mov edi, 0x94
mov eax, edi
call fcn.00412f10
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x41d1ac], ecx
mov eax, dword [esi + 4]
mov dword [0x41d1b8], eax
mov edx, dword [esi + 8]
mov dword [0x41d1bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x41d1b0], esi
cmp ecx, 2
je 0x40fc6b
or esi, 0x8000
mov dword [0x41d1b0], esi
shl eax, 8
add eax, edx
mov dword [0x41d1b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40fca6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fca6
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40fcbe
cmp eax, 0x20b
je 0x40fcab
mov dword [ebp - 0x1c], esi
jmp 0x40fcd2
cmp dword [ecx + 0x84], 0xe
jbe 0x40fca6
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40fccc
cmp dword [ecx + 0x74], 0xe
jbe 0x40fca6
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0040ff6f
pop ecx
test eax, eax
jne 0x40fcfe
cmp dword [0x41d194], 1
jne 0x40fceb
call fcn.00412829
push 0x1c
call fcn.004126b2
push 0xff
call fcn.00411465
pop ecx
pop ecx
call fcn.00412e33
mov dword [ebp - 4], esi
call fcn.00411df2
test eax, eax
jge 0x40fd17
push 0x1b
call fcn.0040fbe6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x41e938], eax
call fcn.00412d11
mov dword [0x41d18c], eax
call fcn.00412c6f
test eax, eax
jge 0x40fd3d
push 8
call fcn.0040fbe6
pop ecx
call fcn.00412a3c
test eax, eax
jge 0x40fd4e
push 9
call fcn.0040fbe6
pop ecx
call fcn.00411495
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x40fd61
push eax
call fcn.0040fbe6
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004129d3
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x40fd82
movzx eax, word [ebp - 0x34]
jmp 0x40fd85
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.0040d0c0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40fda3
push edi
call fcn.004115bc
call fcn.004115de
jmp 0x40fdd5
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00412ef7
ret
Function at 0x410e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x418430]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x41e7e0]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x410f90
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x41e800]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x410f90
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x410e5f
xor eax, eax
jmp 0x410fa4
test al, 0x20
je 0x410e70
push 2
push edi
push edi
push ecx
call fcn.0041344d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x410f2c
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x410f64
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x410ec6
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x410eb7
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x410e9c
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410f06
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x410f0f
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x410e90
jmp 0x410f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x410f8b
cmp dword [ebp + 8], edi
je 0x410f64
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x410f59
mov dword [0x41d1a4], eax
jmp 0x410f97
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410f4e
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x410f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x410f11
push dword [ebp + 8]
call fcn.004125db
pop ecx
jmp 0x410fa1
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x410f79
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x410e58
mov dword [0x41d1a0], 0x1c
mov dword [0x41d1a4], edi
jmp 0x410fa1
sub eax, dword [ebp - 0x14]
jmp 0x410fa4
and dword [0x41d1a4], 0
mov dword [0x41d1a0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004120c9
leave
ret
Function at 0x4114fa
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x41d1ec], esi
push edi
jne 0x41151a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x41d1e8], esi
mov byte [0x41d1e4], al
jne 0x411580
mov ecx, dword [0x41e908]
test ecx, ecx
je 0x411561
mov eax, dword [0x41e904]
sub eax, 4
cmp eax, ecx
jmp 0x41155a
mov eax, dword [eax]
test eax, eax
je 0x41154c
call eax
mov eax, dword [0x41e904]
sub eax, 4
cmp eax, dword [0x41e908]
mov dword [0x41e904], eax
jae 0x411544
mov eax, 0x418020
mov esi, 0x418028
cmp eax, esi
mov edi, eax
jae 0x411580
mov eax, dword [edi]
test eax, eax
je 0x411579
call eax
add edi, 4
cmp edi, esi
jb 0x411571
mov eax, 0x41802c
mov esi, 0x418030
cmp eax, esi
mov edi, eax
jae 0x41159f
mov eax, dword [edi]
test eax, eax
je 0x411598
call eax
add edi, 4
cmp edi, esi
jb 0x411590
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x4115ba
push dword [ebp + 8]
mov dword [0x41d1ec], 1
call fcn.00411465
pop ecx
pop ebp
ret
Function at 0x411c12
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x41e7e0]
push edi
jae 0x411dd9
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x41e800]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x411dd9
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x411cb8
test dl, 2
jne 0x411cb8
test dl, 0x48
je 0x411c82
mov al, byte [eax + 5]
cmp al, 0xa
je 0x411c82
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x411cb3
mov dword [0x41d1a4], ecx
jmp 0x411de0
cmp eax, 0x6d
jne 0x411cbf
xor eax, eax
jmp 0x411ded
push eax
call fcn.004125db
pop ecx
jmp 0x411dea
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x411dd4
test edx, edx
je 0x411cee
cmp byte [edi], 0xa
jne 0x411cee
or al, 4
jmp 0x411cf0
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x411dce
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x411dbe
cmp al, 0xd
je 0x411d24
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x411db0
dec ecx
cmp dword [ebp - 8], ecx
jae 0x411d3e
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x411d39
add dword [ebp - 8], 2
jmp 0x411d92
mov dword [ebp - 8], eax
jmp 0x411dac
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411d66
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x411dac
cmp dword [ebp - 0x10], 0
je 0x411dac
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x411d87
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x411d92
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x411daf
cmp edi, dword [ebp + 0xc]
jne 0x411d97
cmp byte [ebp - 1], 0xa
jne 0x411d97
mov byte [edi], 0xa
jmp 0x411daf
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041166e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x411db0
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x411d08
jmp 0x411dce
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x411dce
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x411ded
and dword [0x41d1a4], 0
mov dword [0x41d1a0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4126b2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x418430]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x418698]
je 0x4126df
inc eax
cmp eax, 0x12
jb 0x4126d0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x418698]
jne 0x412813
mov eax, dword [0x41d194]
cmp eax, 1
je 0x4127ee
cmp eax, edx
jne 0x41270f
cmp dword [0x4183f4], 1
je 0x4127ee
cmp ecx, 0xfc
je 0x412813
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x412748
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00411fa0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00412550
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41278a
lea eax, [ebp - 0x10c]
push eax
call fcn.00412550
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x415e50
push edi
call fcn.0040f960
add esp, 0x10
push edi
call fcn.00412550
push dword [esi + 0x41869c]
mov ebx, eax
call fcn.00412550
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00412f10
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00411fa0
push edi
push ebx
call fcn.00411fb0
push 0x415e30
push ebx
call fcn.00411fb0
push dword [esi + 0x41869c]
push ebx
call fcn.00411fb0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00413d69
add esp, 0x2c
jmp 0x412813
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x41869c]
push dword [esi]
call fcn.00412550
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004120c9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413af8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00412f10
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413b8d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x41d1ac]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x413b8d
cmp eax, 1
je 0x413ba5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413b8d
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x413b62
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x413b89
xor eax, eax
inc eax
jmp 0x413bc1
cmp esi, ebx
jae 0x413b91
xor eax, eax
jmp 0x413bc1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x41d1ac]
jmp 0x413ba7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413d69
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x41d33c], ebx
push esi
push edi
jne 0x413de9
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x413e24
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4160b4
push edi
call esi
test eax, eax
mov dword [0x41d33c], eax
je 0x413e24
push 0x4160a4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x41d340], eax
call esi
cmp dword [0x41d1ac], 2
mov dword [0x41d344], eax
jne 0x413de9
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x41d34c], eax
je 0x413de9
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x41d348], eax
mov eax, dword [0x41d348]
test eax, eax
je 0x413e2e
call eax
test eax, eax
je 0x413e15
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x41d34c]
test eax, eax
je 0x413e15
test byte [ebp - 8], 1
jne 0x413e2e
cmp dword [0x41d1b8], 4
jb 0x413e28
or byte [ebp + 0x12], 0x20
jmp 0x413e4d
xor eax, eax
jmp 0x413e5d
or byte [ebp + 0x12], 4
jmp 0x413e4d
mov eax, dword [0x41d340]
test eax, eax
je 0x413e4d
call eax
mov ebx, eax
test ebx, ebx
je 0x413e4d
mov eax, dword [0x41d344]
test eax, eax
je 0x413e4d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x41d33c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414057
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00412f10
mov eax, dword [0x418430]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x41e7e0]
mov dword [ebp - 4], eax
jae 0x414197
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x41e800]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x414197
push 1
push esi
push ebx
call fcn.0041166e
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4141a1
push 2
push esi
push ebx
call fcn.0041166e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4141a1
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x414144
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00413880
push 0x8000
push ebx
call fcn.004142da
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x414103
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.00410e00
add esp, 0xc
cmp eax, 0xffffffff
je 0x414121
sub edi, eax
test edi, edi
jg 0x4140f8
jmp 0x414137
cmp dword [0x41d1a4], 5
jne 0x414134
mov dword [0x41d1a0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004142da
pop ecx
pop ecx
jmp 0x414184
jge 0x414184
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0041166e
push ebx
call fcn.00413295
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x414184
mov dword [0x41d1a0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41d1a4], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0041166e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4141a4
mov dword [0x41d1a0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004120c9
leave
ret
Function at 0x404dd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push 0x38
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x3c
push 0
push eax
call fcn.004fb430
add esp, 0xc
mov dword [esp + 0x10], 0
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
mov dword [esp + 0xc], 0
cmovae eax, dword [esp + 0x44]
cmp dword [esp + 0x70], 8
mov dword [esp + 0x14], eax
lea eax, [esp + 0x5c]
cmovae eax, dword [esp + 0x5c]
mov dword [esp + 0x18], eax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x24], 0xa
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 0x58]
test eax, eax
setne bl
cmp ecx, 8
jb 0x404e71
mov edx, dword [esp + 0x44]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404e67
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ec7
push ecx
push edx
call fcn.004f92ad
add esp, 8
mov ecx, dword [esp + 0x70]
xor eax, eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 7
mov word [esp + 0x44], ax
cmp ecx, 8
jb 0x404ec0
mov edx, dword [esp + 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404eb6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ec7
push ecx
push edx
call fcn.004f92ad
add esp, 8
mov al, bl
pop ebx
add esp, 0x3c
ret
call fcn.004febef
int3

Function at 0x406e60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5240f0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x592830]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004f952f
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.004f814c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret