joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b8c0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f508
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x43b909
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x43ba5b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x43ba26
test eax, eax
je 0x43ba26
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x43ba29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x43b9ab
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43b99f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43b9ab
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x43b9b9
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004035d0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x43ba26
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x43b964
jmp 0x43ba29
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x43ba52
test edx, edx
je 0x43ba4e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x43b920
mov al, 1
jmp 0x43ba5d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x43ba5b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043bff8
mov esp, ebp
pop ebp
ret 0x10

Function at 0x44ff55
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044fc15
Function at 0x10084960
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10084b44
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x1008498a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10084991
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10084980
mov eax, 1
add ebx, ebx
jne 0x100849a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100849b4
jne 0x100849d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100849d3
dec eax
add ebx, ebx
jne 0x100849c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10084998
add ebx, ebx
jne 0x100849cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10084a25
xor ecx, ecx
sub eax, 3
jb 0x100849eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10084a5a
sar eax, 1
mov ebp, eax
jmp 0x100849f6
add ebx, ebx
jne 0x100849f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100849c4
inc ecx
add ebx, ebx
jne 0x10084a04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100849c4
add ebx, ebx
jne 0x10084a11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10084a06
jne 0x10084a22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10084a06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10084a44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10084a36
jmp 0x10084986
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10084a44
add edi, ecx
jmp 0x10084986
pop esi
mov edi, esi
mov ecx, 0x288
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10084a62
cmp byte [edi], 1
jne 0x10084a62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10084a67
lea edi, [esi + 0x82000]
mov eax, dword [edi]
or eax, eax
je 0x10084ad6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x85804]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x85898]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10084a94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8589c]
or eax, eax
je 0x10084ad0
mov dword [ebx], eax
add ebx, 4
jmp 0x10084ab1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10084b07
cmp al, 0xef
ja 0x10084afa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10084adc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10084ae9
mov ebp, dword [esi + 0x858a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10084b3b
sub esp, 0xffffff80
jmp 0x10005f60
Function at 0x405f73
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x43f41b
call fcn.004207b3
push 0x44ca18
lea ecx, [ebp - 0x10]
call fcn.00402b0d
xor ebx, ebx
lea ecx, [ebp - 0x14]
push ebx
mov edx, str.ZWpvZnA
mov dword [ebp - 4], ebx
call fcn.0041b686
pop ecx
push dword [eax]
push 0x82
push ebx
call dword [0x4410c8]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.00401745
test esi, esi
je 0x4060bf
push esi
push ebx
call dword [0x44111c]
test eax, eax
je 0x4060bf
push eax
call dword [0x441124]
mov ebx, eax
test ebx, ebx
je 0x4060bf
push esi
push 0
call dword [0x44112c]
mov esi, eax
test esi, esi
je 0x4060bf
push 0
mov edx, str.BlB2TUpNUFdCT08NRltG
lea ecx, [ebp - 0x14]
call fcn.0041b686
pop ecx
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push eax
call fcn.00402eae
mov byte [ebp - 4], 0
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401745
push dword [ebp - 0x10]
call dword [0x4410b0]
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call dword [0x4410ac]
push 0
push dword [ebp + 0xc]
call dword [0x4410bc]
push 0
mov edx, str.VEEI
lea ecx, [ebp + 0xc]
call fcn.0041b686
pop ecx
push 0x40
push dword [eax]
push dword [ebp - 0x10]
call fcn.00427009
mov ecx, dword [ebp + 0xc]
add esp, 0xc
add ecx, 0xfffffff0
mov edi, eax
call fcn.00401745
test edi, edi
jne 0x406099
push 0x44ca18
mov ecx, dword [ebp + 8]
call fcn.00402b0d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401745
mov eax, dword [ebp + 8]
jmp 0x4060df
push edi
push esi
push 1
push ebx
call fcn.0042752f
add esp, 0x10
push edi
cmp eax, esi
je 0x4060b9
call fcn.00427277
mov dword [esp], 0x44ca18
jmp 0x406081
call fcn.00427277
pop ecx
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00406893
mov esi, dword [ebp + 8]
add eax, 0x10
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov dword [esi], eax
call fcn.00401745
mov eax, esi
call fcn.0042077c
ret 8
Function at 0x41b774
Capabilities:
Encode data using xor

Disassembly:
push 0x30
mov eax, 0x440824
call fcn.004207e7
mov esi, ecx
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0041bb3d
push ecx
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
mov ecx, esp
push eax
call fcn.0041bb94
lea ecx, [ebp - 0x38]
call fcn.0041b9ce
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
sub eax, ecx
je 0x41b7e5
mov al, byte [ecx + ebx]
lea ecx, [ebp - 0x28]
xor al, 0x23
movzx eax, al
push eax
call fcn.0040edd0
mov eax, dword [ebp - 0x34]
inc ebx
mov ecx, dword [ebp - 0x38]
sub eax, ecx
cmp ebx, eax
jb 0x41b7c7
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041bb3d
lea ecx, [ebp - 0x38]
call fcn.0041bc02
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.00401745
lea ecx, [ebp - 0x28]
call fcn.00406532
mov eax, esi
call fcn.00420791
ret

Function at 0x42068c
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x455008
call fcn.00420cc0
push 1
call fcn.0041ff1d
pop ecx
test al, al
jne 0x420543
push 7
call fcn.00420968
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.0041fee8
mov byte [ebp - 0x24], al
mov eax, dword [0x458fd0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x42053c
test eax, eax
jne 0x4205ad
mov dword [0x458fd0], ecx
push 0x441468
push 0x441444
call fcn.0042edb4
pop ecx
pop ecx
test eax, eax
je 0x420590
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x420686
push 0x441440
push 0x441408
call fcn.0042ed58
pop ecx
pop ecx
mov dword [0x458fd0], 2
jmp 0x4205b2
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0042008a
pop ecx
call fcn.00420e69
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4205e2
push esi
call fcn.00420000
pop ecx
test al, al
je 0x4205e2
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00420776
call esi
call fcn.00420e6f
mov esi, eax
cmp dword [esi], edi
je 0x420600
push esi
call fcn.00420000
pop ecx
test al, al
je 0x420600
push dword [esi]
call fcn.0042e0f7
pop ecx
call fcn.00420a84
movzx eax, ax
push eax
call fcn.0042ed12
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0042e006
test al, al
jne 0x42062b
push esi
call fcn.0042e12f
test bl, bl
jne 0x420634
call fcn.0042e0d2
push edi
push 1
call fcn.004200a7
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x420686
call fcn.00420d06
ret
call fcn.00420dba
jmp 0x420524
Function at 0x402f60
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
mov edx, dword [str.uFAIm3EZIv1iChOCV1naPrYrvORwkHI3XXErj]
push ebx
push ebp
mov ebp, dword [0x435fb4]
push edi
movsx edi, byte [edx]
mov eax, edi
test eax, eax
mov dword [esp + 0xc], ebp
mov ecx, edx
je 0x402f96
mov ebx, dword [esp + 0xc]
imul ebx, ebx, 0x21
inc ecx
add ebx, eax
movsx eax, byte [ecx]
test eax, eax
mov dword [esp + 0xc], ebx
jne 0x402f81
mov eax, edi
test eax, eax
mov ecx, ebp
mov ebx, edx
je 0x402fad
imul ecx, ecx, 0x21
inc ebx
add ecx, eax
movsx eax, byte [ebx]
test eax, eax
jne 0x402fa0
add ecx, 0x7e5c0eb8
mov eax, edi
test eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ebp
mov ecx, edx
je 0x402fd8
mov ebx, dword [esp + 0x10]
imul ebx, ebx, 0x21
inc ecx
add ebx, eax
movsx eax, byte [ecx]
test eax, eax
mov dword [esp + 0x10], ebx
jne 0x402fc3
mov eax, edi
test eax, eax
mov dword [esp + 0x14], ebp
mov ecx, edx
je 0x402ff9
mov ebx, dword [esp + 0x14]
imul ebx, ebx, 0x21
inc ecx
add ebx, eax
movsx eax, byte [ecx]
test eax, eax
mov dword [esp + 0x14], ebx
jne 0x402fe4
mov eax, edi
test eax, eax
mov ebx, ebp
mov ecx, edx
je 0x403010
imul ebx, ebx, 0x21
inc ecx
add ebx, eax
movsx eax, byte [ecx]
test eax, eax
jne 0x403003
mov eax, edi
test eax, eax
mov ecx, ebp
je 0x403025
imul ecx, ecx, 0x21
inc edx
add ecx, eax
movsx eax, byte [edx]
test eax, eax
jne 0x403018
mov eax, dword [esp + 0xc]
mov edx, dword [eax + esi + 0x7e5c0e7c]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
add edx, eax
mov eax, dword [edx + esi]
mov edx, dword [esp + 0x10]
add eax, esi
mov ebp, dword [eax + edi + 0x7e5c0e5c]
mov edx, dword [eax + edx + 0x7e5c0e58]
mov edi, dword [eax + ebx + 0x7e5c0e60]
mov eax, dword [ecx + eax + 0x7e5c0e64]
add eax, esi
add ebp, esi
add edi, esi
xor ebx, ebx
test edx, edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
jbe 0x4030a6
mov eax, dword [edi + ebx*4]
movsx ecx, byte [eax + esi]
mov edx, dword [0x435fb4]
add eax, esi
test ecx, ecx
je 0x403093
imul edx, edx, 0x21
inc eax
add edx, ecx
movsx ecx, byte [eax]
test ecx, ecx
jne 0x403086
cmp edx, dword [esp + 0x20]
je 0x4030a2
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jb 0x403073
mov edx, dword [esp + 0x10]
cmp ebx, edx
jne 0x4030b3
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push 0
push 0
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + ebx*2]
mov eax, dword [ebp + ecx*4]
pop edi
pop ebp
add eax, esi
pop ebx
add esp, 0x10
ret
Function at 0x4046b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4046c9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4046dd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4046fe
cmp esi, eax
jae 0x4046d7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4046f0
cmp esi, eax
jae 0x4046d7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405923
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x405976
call fcn.004245e2
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x405976
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40596c
xor eax, eax
jmp 0x405a8f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x4059a6
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x4059a6
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x405a8c
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x4059d3
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00406729
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x405a8c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x405a1c
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x405a1c
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x405a16
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00406729
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x405a7c
and dword [ebp + 0xc], 0
jmp 0x405a7c
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x405a7c
push 0xc
call fcn.0041add8
mov esi, eax
test esi, esi
pop ecx
je 0x405a5e
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x405a60
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x405a77
push dword [ebp - 8]
call fcn.0041a8ab
jmp 0x405a7c
call fcn.0041a882
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4059e1
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40e49f
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.0040fb20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e53a
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 [0x437fac]
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 0x40e53a
cmp eax, 1
je 0x40e55b
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 0x40e53a
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40e507
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40e536
xor eax, eax
inc eax
jmp 0x40e57a
cmp edi, eax
jae 0x40e53e
xor eax, eax
jmp 0x40e57a
cmp eax, esi
jae 0x40e545
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 [0x437fac]
jmp 0x40e55e
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 0x40e5e7
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42bff8
call fcn.0040fb60
mov edi, 0x94
mov eax, edi
call fcn.0040fb20
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 [0x437fac], ecx
mov eax, dword [esi + 4]
mov dword [0x437fb8], eax
mov edx, dword [esi + 8]
mov dword [0x437fbc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x437fb0], esi
cmp ecx, 2
je 0x40e647
or esi, 0x8000
mov dword [0x437fb0], esi
shl eax, 8
add eax, edx
mov dword [0x437fb4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40e682
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e682
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40e69a
cmp eax, 0x20b
je 0x40e687
mov dword [ebp - 0x1c], esi
jmp 0x40e6ae
cmp dword [ecx + 0x84], 0xe
jbe 0x40e682
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40e6a8
cmp dword [ecx + 0x74], 0xe
jbe 0x40e682
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00411755
pop ecx
test eax, eax
jne 0x40e6c2
push 0x1c
call fcn.0040e5c3
pop ecx
call fcn.004114c8
test eax, eax
jne 0x40e6d3
push 0x10
call fcn.0040e5c3
pop ecx
call fcn.004135eb
mov dword [ebp - 4], esi
call fcn.004133ed
test eax, eax
jge 0x40e6ec
push 0x1b
call fcn.0040e59e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x439930], eax
call fcn.004132cb
mov dword [0x437f98], eax
call fcn.00413229
test eax, eax
jge 0x40e712
push 8
call fcn.0040e59e
pop ecx
call fcn.00412ff6
test eax, eax
jge 0x40e723
push 9
call fcn.0040e59e
pop ecx
push 1
call fcn.0040f73d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40e739
push eax
call fcn.0040e59e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00412f99
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40e75a
movzx eax, word [ebp - 0x40]
jmp 0x40e75d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041a438
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40e77b
push edi
call fcn.0040f86a
call fcn.0040f88c
jmp 0x40e7ad
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040fb9b
ret
Function at 0x40f7a7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42c068
call fcn.0040fb60
push 8
call fcn.0041170a
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x437fec], esi
jne 0x40f7db
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x437fe8], esi
mov al, byte [ebp + 0x10]
mov byte [0x437fe4], al
cmp dword [ebp + 0xc], edi
jne 0x40f825
cmp dword [0x439928], edi
je 0x40f815
mov eax, dword [0x439924]
sub eax, 4
mov dword [0x439924], eax
cmp eax, dword [0x439928]
jb 0x40f815
mov eax, dword [eax]
cmp eax, edi
je 0x40f7f6
call eax
jmp 0x40f7f6
push 0x434090
mov eax, 0x434088
call fcn.0040f725
pop ecx
push 0x43409c
mov eax, 0x434094
call fcn.0040f725
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40f856
cmp dword [ebp + 0x10], edi
jne 0x40f864
mov dword [0x437fec], esi
push dword [ebp + 8]
call fcn.0040f6e3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40f863
push 8
call fcn.00411655
pop ecx
ret
call fcn.0040fb9b
ret

Function at 0x412c85
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x435130]
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 + 0x435680]
je 0x412cba
inc eax
cmp eax, 0x13
jb 0x412cab
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x435680]
jne 0x412de0
mov eax, dword [0x437fa0]
cmp eax, 1
je 0x412db8
cmp eax, edx
jne 0x412cea
cmp dword [0x4350f4], 1
je 0x412db8
cmp ecx, 0xfc
je 0x412de0
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 0x412d20
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00415020
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040f1d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x412d54
mov eax, edi
push eax
call fcn.0040f1d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c738
push edi
call fcn.00416a70
add esp, 0x10
push edi
call fcn.0040f1d0
push dword [esi + 0x435684]
mov ebx, eax
call fcn.0040f1d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040fb20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00415020
push edi
push ebx
call fcn.00415030
push 0x42c718
push ebx
call fcn.00415030
push dword [esi + 0x435684]
push ebx
call fcn.00415030
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004176f1
add esp, 0x2c
jmp 0x412de0
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x435684]
push dword [esi]
call fcn.0040f1d0
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.0040edec
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret