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

Disassembly:
sub esp, 0x110
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, dword [esp + 0x120]
push edi
lea eax, [esp + 0x10]
mov ebx, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
call ebp
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [esp + 0x128]
jl 0x40f4bd
mov ecx, dword [ebx + 0x130]
push eax
call fcn.004101e0
mov ecx, dword [esp + 0x12c]
dec ecx
je 0x40f48f
dec ecx
je 0x40f485
movsx ecx, word [esi + 0x14]
movsx edx, word [esi + 0x16]
jmp 0x40f497
movsx ecx, word [esi + 0x18]
movsx edx, word [esi + 0x1a]
jmp 0x40f497
movsx ecx, word [esi + 0x1c]
movsx edx, word [esi + 0x1e]
push 0xcc0020
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
test byte [esi + 3], 2
je 0x40f4e9
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
push ecx
call ebp
mov eax, dword [esi + 8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
lea edx, [esp + 0x20]
push edx
push 0xff
push 0xd
push eax
call ebx
mov ecx, dword [esi + 8]
push 0
push 0
push 0x31
push ecx
call ebx
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
call esi
push 1
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push ebx
push edi
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 0xc

Function at 0x411ff0
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push ebx
mov edi, ecx
call fcn.00410130
mov eax, dword [edi + 0x320]
mov ecx, dword [eax + ebx*4]
xor ebp, ebp
test ecx, ecx
je 0x412041
mov ecx, eax
mov esi, dword [ecx + ebx*4]
test esi, esi
mov ebp, dword [esi + 0x34]
je 0x41202b
mov ecx, esi
call fcn.00411bd0
push esi
call fcn.00413d3c
add esp, 4
mov edx, dword [edi + 0x320]
push 0
push ebp
mov dword [edx + ebx*4], 0
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x158
call fcn.00413d41
add esp, 4
test eax, eax
je 0x41205c
mov dword [eax], 0
mov esi, eax
jmp 0x41205e
xor esi, esi
mov eax, dword [edi + 0x320]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
and ecx, 1
push ecx
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x1c]
push edx
push eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x130], edi
mov dword [esi + 0x44], 1
mov ecx, dword [edi + 0x31c]
push ebp
push ecx
mov ecx, esi
call fcn.00411e10
xor eax, eax
pop edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x413240
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
jmp 0x4150a1
push 0x128
push 0x41f698
call fcn.0041a72c
mov eax, dword [0x42221c]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4151ae
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x41515f
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00414ef0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x41514c
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x4151ae
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x4151ae
mov al, byte [edi]
cmp al, 0x5c
je 0x41516d
cmp al, 0x2f
jne 0x415172
cmp al, byte [edi + 1]
je 0x4151a8
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.0041a5cf
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4151ae
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a570
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x4151ca
push edi
call fcn.00413a4c
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0041a0f9
call fcn.0041a767
ret

Function at 0x413260
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
xor edi, edi
test bl, 1
je 0x41327c
mov edi, 0x10
test bl, 2
je 0x413284
or edi, 6
mov ecx, dword [esp + 0x154]
lea eax, [esp + 0x10]
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4132ae
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
push esi
mov esi, dword [esp + 0x15c]
and ebx, 4
lea esp, [esp]
mov edx, dword [esp + 0x14]
xor eax, eax
and edx, edi
cmp eax, edx
sbb eax, eax
neg eax
test ebx, ebx
jne 0x4132db
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x413319
mov al, byte [esp + 0x40]
test al, al
je 0x413319
cmp al, 0x2e
jne 0x4132ff
mov al, byte [esp + 0x41]
test al, al
je 0x413319
cmp al, 0x2e
jne 0x4132ff
mov al, byte [esp + 0x42]
test al, al
je 0x413319
lea edx, [esp + 0x40]
push edx
push esi
inc ebp
call fcn.004094f0
push 0x41f398
push esi
call fcn.004094f0
add esp, 0x10
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4132c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop edi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x144
ret
Function at 0x414dbf
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x414ded
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x414df2
cmp eax, 1
je 0x414df2
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x414df6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42221c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x414e6c
push ebx
call fcn.00414dbf
test eax, eax
pop ecx
jne 0x414e3b
mov dword [0x423958], 0xf
mov dword [0x423954], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0041a0f9
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
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
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x414e7e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x414e2e
inc eax
cmp eax, 0x104
ja 0x414e2e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x414eb5
cmp eax, dword [ebp + 0x10]
jg 0x414e99
mov eax, dword [ebp + 0x10]
push eax
call fcn.00413a3a
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x414ec9
mov dword [0x423954], 0xc
jmp 0x414e2e
cmp eax, dword [ebp + 0x10]
jle 0x414ec9
mov dword [0x423954], 0x22
jmp 0x414e2e
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00419fd0
pop ecx
pop ecx
jmp 0x414e30
Function at 0x415209
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41f6a8
call fcn.0041a72c
mov edi, 0x94
mov eax, edi
call fcn.00414ef0
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 [0x423960], ecx
mov eax, dword [esi + 4]
mov dword [0x42396c], eax
mov edx, dword [esi + 8]
mov dword [0x423970], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x423964], esi
cmp ecx, 2
je 0x415269
or esi, 0x8000
mov dword [0x423964], esi
shl eax, 8
add eax, edx
mov dword [0x423968], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4152a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4152a4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4152bc
cmp eax, 0x20b
je 0x4152a9
mov dword [ebp - 0x1c], esi
jmp 0x4152d0
cmp dword [ecx + 0x84], 0xe
jbe 0x4152a4
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4152ca
cmp dword [ecx + 0x74], 0xe
jbe 0x4152a4
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00416437
pop ecx
test eax, eax
jne 0x4152fc
cmp dword [0x423950], 1
jne 0x4152e9
call fcn.0041a9f8
push 0x1c
call fcn.0041a881
push 0xff
call fcn.004153e5
pop ecx
pop ecx
call fcn.0041aff6
mov dword [ebp - 4], esi
call fcn.00417964
test eax, eax
jge 0x415315
push 0x1b
call fcn.004151e4
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x424f94], eax
call fcn.0041aed4
mov dword [0x423948], eax
call fcn.0041ae32
test eax, eax
jge 0x41533b
push 8
call fcn.004151e4
pop ecx
call fcn.0041abff
test eax, eax
jge 0x41534c
push 9
call fcn.004151e4
pop ecx
push 1
call fcn.00415415
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x415362
push eax
call fcn.004151e4
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041aba2
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x415383
movzx eax, word [ebp - 0x40]
jmp 0x415386
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00412680
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4153a4
push edi
call fcn.00415540
call fcn.00415562
jmp 0x4153d6
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041a767
ret
Function at 0x41547f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x4239a0], esi
push edi
jne 0x41549f
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 [0x42399c], esi
mov byte [0x423998], al
jne 0x415505
mov ecx, dword [0x424f8c]
test ecx, ecx
je 0x4154e6
mov eax, dword [0x424f88]
sub eax, 4
cmp eax, ecx
jmp 0x4154df
mov eax, dword [eax]
test eax, eax
je 0x4154d1
call eax
mov eax, dword [0x424f88]
sub eax, 4
cmp eax, dword [0x424f8c]
mov dword [0x424f88], eax
jae 0x4154c9
mov eax, 0x422028
mov esi, 0x422030
cmp eax, esi
mov edi, eax
jae 0x415505
mov eax, dword [edi]
test eax, eax
je 0x4154fe
call eax
add edi, 4
cmp edi, esi
jb 0x4154f6
mov eax, 0x422034
mov esi, 0x42203c
cmp eax, esi
mov edi, eax
jae 0x415524
mov eax, dword [edi]
test eax, eax
je 0x41551d
call eax
add edi, 4
cmp edi, esi
jb 0x415515
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x41553e
push dword [ebp + 8]
mov dword [0x4239a0], 1
call fcn.004153e5
pop ebp
ret
Function at 0x415eea
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 [0x424e40]
push edi
jae 0x4160bf
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x424e60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4160bf
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x415f95
test dl, 2
jne 0x415f95
test dl, 0x48
je 0x415f5f
cmp byte [eax + 5], 0xa
je 0x415f5f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 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 [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x415fa8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x415f90
mov dword [0x423958], ecx
jmp 0x4160c6
cmp eax, 0x6d
jne 0x415f9c
xor eax, eax
jmp 0x4160d3
push eax
call fcn.0041a570
pop ecx
jmp 0x4160d0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4160ba
test eax, eax
je 0x415fcf
cmp byte [ebx], 0xa
jne 0x415fcf
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x415fd8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x4160b4
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4160a4
cmp al, 0xd
je 0x41600a
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x416096
dec ecx
cmp dword [ebp - 8], ecx
jae 0x416024
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x41601f
add dword [ebp - 8], 2
jmp 0x416078
mov dword [ebp - 8], eax
jmp 0x416092
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41604c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416092
cmp dword [ebp - 0x10], 0
je 0x416092
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41606d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x416078
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x416095
cmp ebx, dword [ebp + 0xc]
jne 0x41607d
cmp byte [ebp - 1], 0xa
jne 0x41607d
mov byte [ebx], 0xa
jmp 0x416095
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00415580
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x416096
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x415fee
jmp 0x4160b4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4160b4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4160d3
and dword [0x423958], 0
mov dword [0x423954], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417b0f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x424e40]
mov eax, dword [0x42221c]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x417cd5
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x424e60]
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 - 0x80], ebx
je 0x417cd5
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x417b79
xor eax, eax
jmp 0x417ce9
test al, 0x20
je 0x417b8a
push 2
push edi
push edi
push ecx
call fcn.0041bb55
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x417c5f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x417ca6
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x417bec
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x417bdd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x417bbf
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417c2c
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x417c38
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x417bb3
jmp 0x417c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x417cd0
cmp dword [ebp + 0x3a4], edi
je 0x417ca6
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x417c98
mov dword [0x423958], eax
jmp 0x417cdc
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417c8a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x417c3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x417c3a
push dword [ebp + 0x3a4]
call fcn.0041a570
pop ecx
jmp 0x417ce6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x417cbe
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x417b72
mov dword [0x423954], 0x1c
mov dword [0x423958], edi
jmp 0x417ce6
sub eax, dword [ebp - 0x7c]
jmp 0x417ce9
and dword [0x423958], 0
mov dword [0x423954], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0041a0f9
add ebp, 0x39c
leave
ret
Function at 0x41a647
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414ef0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a6e2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x423960]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41a6e2
cmp eax, 1
je 0x41a703
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a6e2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41a6af
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41a6de
xor eax, eax
inc eax
jmp 0x41a722
cmp edi, eax
jae 0x41a6e6
xor eax, eax
jmp 0x41a722
cmp eax, esi
jae 0x41a6ed
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x423960]
jmp 0x41a706
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a881
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42221c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x422630]
je 0x41a8b6
inc eax
cmp eax, 0x13
jb 0x41a8a7
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x422630]
jne 0x41a9dc
mov eax, dword [0x423950]
cmp eax, 1
je 0x41a9b4
cmp eax, edx
jne 0x41a8e6
cmp dword [0x4221c4], 1
je 0x41a9b4
cmp ecx, 0xfc
je 0x41a9dc
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41a91c
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00419fd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00418c40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41a950
mov eax, edi
push eax
call fcn.00418c40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x420158
push edi
call fcn.00413e90
add esp, 0x10
push edi
call fcn.00418c40
push dword [esi + 0x422634]
mov ebx, eax
call fcn.00418c40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414ef0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00419fd0
push edi
push ebx
call fcn.00419fe0
push 0x420138
push ebx
call fcn.00419fe0
push dword [esi + 0x422634]
push ebx
call fcn.00419fe0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041cc66
add esp, 0x2c
jmp 0x41a9dc
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x422634]
push dword [esi]
call fcn.00418c40
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 - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0041a0f9
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x41ca3d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41ca6b
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41ca72
cmp ebx, dword [eax + 4]
jae 0x41ca72
xor eax, eax
jmp 0x41cc62
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41ca83
xor eax, eax
inc eax
jmp 0x41cc61
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41ca99
cmp ecx, edx
jae 0x41cbde
cmp dword [eax + 4], 0
je 0x41caa2
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41ca8a
cmp dword [ebp + 8], 0
je 0x41cac4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41cbde
cmp eax, esi
jae 0x41cbde
mov eax, dword [0x423b70]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41cae9
cmp dword [esi*4 + 0x423b78], edi
je 0x41cbe2
inc esi
cmp esi, eax
jl 0x41cad7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41cc5e
cmp dword [ebp - 8], 0x1000000
jne 0x41cc5e
test byte [ebp - 0xc], 0xcc
je 0x41cb67
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41cc5e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41cc5e
cmp word [eax + 0x18], 0x10b
jne 0x41cc5e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41cc5e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41cb67
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41cb67
test byte [ecx + 0x27], 0x80
jne 0x41cbde
push 1
push 0x423bb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41ca7b
mov ecx, dword [0x423b70]
test ecx, ecx
mov edx, ecx
jle 0x41cb9b
lea eax, [ecx*4 + 0x423b74]
cmp dword [eax], edi
je 0x41cb9b
dec edx
sub eax, 4
test edx, edx
jg 0x41cb8f
test edx, edx
jne 0x41cbcc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41cba8
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41cbc0
lea eax, [edx*4 + 0x423b78]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41cbae
cmp ecx, 0x10
jge 0x41cbcc
inc ecx
mov dword [0x423b70], ecx
push 0
push 0x423bb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41ca7b
xor eax, eax
jmp 0x41cc61
test esi, esi
jle 0x41ca7b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x423bb8
call ebx
test eax, eax
jne 0x41ca7b
cmp dword [esi*4 + 0x423b78], edi
je 0x41cc38
mov eax, dword [0x423b70]
lea esi, [eax - 1]
test esi, esi
jl 0x41cc26
cmp dword [esi*4 + 0x423b78], edi
je 0x41cc22
dec esi
jns 0x41cc16
test esi, esi
jge 0x41cc36
cmp eax, 0x10
jge 0x41cc31
inc eax
mov dword [0x423b70], eax
lea esi, [eax - 1]
jmp 0x41cc38
je 0x41cc50
xor ecx, ecx
test esi, esi
jl 0x41cc50
lea eax, [ecx*4 + 0x423b78]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41cc3e
push 0
push 0x423bb8
call ebx
jmp 0x41ca7b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret