joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f2f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9e000]
push edi
jmp 0x4f2f4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4f2f51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2f40
mov eax, 1
add ebx, ebx
jne 0x4f2f63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4f2f74
jne 0x4f2f93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2f93
dec eax
add ebx, ebx
jne 0x4f2f80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4f2f58
add ebx, ebx
jne 0x4f2f8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4f2fe5
xor ecx, ecx
sub eax, 3
jb 0x4f2fab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4f301a
sar eax, 1
mov ebp, eax
jmp 0x4f2fb6
add ebx, ebx
jne 0x4f2fb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2f84
inc ecx
add ebx, ebx
jne 0x4f2fc4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4f2f84
add ebx, ebx
jne 0x4f2fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4f2fc6
jne 0x4f2fe2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4f2fc6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4f3004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4f2ff6
jmp 0x4f2f46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4f3004
add edi, ecx
jmp 0x4f2f46
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4f3022
cmp byte [edi], 0x11
jne 0x4f3022
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 0x4f3027
lea edi, [esi + 0xeb000]
mov eax, dword [edi]
or eax, eax
je 0x4f309f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10ce34]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10cfb0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4f3054
mov ecx, edi
jns 0x4f3083
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x10cfb4]
or eax, eax
je 0x4f3099
mov dword [ebx], eax
add ebx, 4
jmp 0x4f3071
call dword [esi + 0x10cfc4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4f30d0
cmp al, 0xef
ja 0x4f30c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4f30a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4f30b2
mov ebp, dword [esi + 0x10cfb8]
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 0x4f3104
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x29a01815
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x29a169b8]
jne 0x29a0181f
repz ret
jmp fcn.29a0e56f

Function at 0x29a0b79d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x29a0b7ac
pop dword [ebp - 0x18]
mov eax, 0x6e7521a1
sub eax, 0x44d469f5
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x3a94d065
add dword [ebp - 0x28], 0x13bd74e6
mov dword [ebp - 0x24], 0x12c3f441
add dword [ebp - 0x24], 0x1f6f5804
mov dword [ebp - 0x20], 0x5f01dc59
sub dword [ebp - 0x20], 0x12b5982b
mov dword [ebp - 0x1c], 0x58e1d842
add dword [ebp - 0x1c], 0xa71e27be
lea eax, [ebp - 0x28]
push eax
mov eax, 0xbbea27b5
add eax, 0x6db6d8ef
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x3b71eed8
add dword [ebp - 0x28], 0x39007a7e
mov dword [ebp - 0x24], 0xba940ca0
add dword [ebp - 0x24], 0x86d854d5
mov dword [ebp - 0x20], 0x8317a779
sub dword [ebp - 0x20], 0x1fa83b0d
mov dword [ebp - 0x1c], 0x1d2c552f
sub dword [ebp - 0x1c], 0x1d2c552f
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x3532e821
add eax, 0xf46e187b
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x379e5
push 0
call eax
mov ecx, 0xbc6f3f66
sub ecx, 0xbc6efe8d
mov esi, eax
mov edi, 0x29a1ee00
add edi, dword [ebp - 0x18]
mov ebx, 0xf0585950
add ebx, 0x21f47723
xor dword [ebp - 8], ebx
mov edx, dword [edi]
mov dword [ebp - 0xc], 0xba3e5e48
xor edx, ebx
mov dword [ebp - 0x14], 0x5070383b
mov dword [esi], edx
mov dword [ebp - 0xc], 0xcb47f0c
add esi, 0x1aeca8b5
sub esi, 0x1aeca8b1
add edi, 4
loop 0x29a0b8c8
add eax, 0x4214c187
add eax, 0xbdec34b0
xor ebx, ebx
add ebx, eax
add eax, 0x8578e674
add eax, 0x7a871991
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x42b224
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x438e80]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042b1b9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004162c0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x42b273
cmp dword [ebp - 0x1c], 5
jb 0x42b28b
jmp 0x42b287
cmp dword [ebp - 0x10], 1
jne 0x42b28b
cmp dword [ebp - 0x1c], 4
ja 0x42b287
jne 0x42b28b
cmp dword [ebp - 0x18], 0
jbe 0x42b28b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4327a4
call fcn.0042b08d
test eax, eax
jge 0x42b2ac
mov byte [0x43a368], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00416063
add ebp, 0x78
leave
ret

Function at 0x7c6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.007c61a8
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 0x7c607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c606a
add dl, dl
jne 0x7c6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c60dc
xor eax, eax
add dl, dl
jne 0x7c6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7c617d
add dl, dl
jne 0x7c60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7c60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7c6075
mov eax, 1
add dl, dl
jne 0x7c60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7c60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c60e1
sub eax, ebx
mov ebx, 1
jne 0x7c6128
mov ecx, 1
add dl, dl
jne 0x7c610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7c613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7c614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7c6136
cmp eax, 0x7d00
jae 0x7c616d
cmp eax, 0x500
jb 0x7c6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
cmp eax, 0x7f
ja 0x7c6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7c6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7c619e
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 0x7c6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x406709
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b478
cmp edx, dword [eax]
je 0x40672b
add eax, 8
inc ecx
cmp eax, 0x40b508
jl 0x40671c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b478]
jne 0x406859
mov eax, dword [0x40b924]
cmp eax, 1
je 0x406833
test eax, eax
jne 0x40675c
cmp dword [0x409074], 1
je 0x406833
cmp edx, 0xfc
je 0x406859
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406793
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004070e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405150
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4067d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405150
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408510
push edi
call fcn.00403400
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004070e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004070f0
lea eax, [ebp - 0xa0]
push 0x4084f0
push eax
call fcn.004070f0
push dword [esi + 0x40b47c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004070f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004071d0
add esp, 0x2c
pop edi
jmp 0x406859
lea eax, [ebp + 8]
lea esi, [esi + 0x40b47c]
push 0
push eax
push dword [esi]
call fcn.00405150
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]
pop esi
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d058], 1
mov dword [0x40d054], 1
mov dword [0x40d050], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d00c], eax
mov eax, dword [0x40d064]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d078]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d060]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409014], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401541
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x35], 0x63323239
mov dword [ebp - 0x31], 0x39343833
mov dword [ebp - 0x2d], 0x35646431
mov dword [ebp - 0x29], 0x31323263
mov dword [ebp - 0x25], 0x39346637
mov dword [ebp - 0x21], 0x34666666
mov dword [ebp - 0x1d], 0x39646234
mov dword [ebp - 0x19], 0x39633836
mov byte [ebp - 0x15], 0
mov dword [esp], 0
call sym._time
mov dword [esp], eax
call sym._srand
call sym._rand
mov ecx, eax
mov edx, 0x4ec4ec4f
mov eax, ecx
imul edx
mov eax, edx
sar eax, 3
mov edx, ecx
sar edx, 0x1f
sub eax, edx
imul edx, eax, 0x1a
mov eax, ecx
sub eax, edx
add eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x401604
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
mov edx, eax
mov eax, dword [ebp - 0x14]
add eax, edx
mov ecx, eax
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], cl
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
not eax
mov edx, eax
lea ecx, [ebp - 0x35]
mov eax, dword [ebp - 0xc]
add eax, ecx
mov byte [eax], dl
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x4015c9
mov dword [esp], str.Obfuscated_flag:
call sym._printf
mov dword [ebp - 0x10], 0
jmp 0x40164a
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov dword [esp + 4], eax
mov dword [esp], str._02X
call sym._printf
add dword [ebp - 0x10], 1
lea edx, [ebp - 0x35]
mov eax, dword [ebp - 0x10]
add eax, edx
movzx eax, byte [eax]
test al, al
jne 0x401628
mov dword [esp], 0x40a05b
call sym._printf
nop
leave
ret
Function at 0x4018e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401940
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d06c]
test esi, esi
jle 0x401a60
mov eax, dword [0x40d070]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401974
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019f7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401960
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a87
mov eax, dword [0x40d070]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d070]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a67
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019f0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a00
add dword [0x40d06c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d070]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40197e
mov eax, dword [0x40d070]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x401fa0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d088
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d080]
sub esp, 4
test ebx, ebx
je 0x401ff5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401fee
test esi, esi
je 0x401fee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401fd0
mov dword [esp], 0x40d088
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402330
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402355
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402360
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402355
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4023a8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40239e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4023aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402390
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401438
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4091b8
call fcn.004017f0
mov edi, 0x94
mov eax, edi
call fcn.00402650
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 [0x40bfa0], ecx
mov eax, dword [esi + 4]
mov dword [0x40bfac], eax
mov edx, dword [esi + 8]
mov dword [0x40bfb0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40bfa4], esi
cmp ecx, 2
je 0x401498
or esi, 0x8000
mov dword [0x40bfa4], esi
shl eax, 8
add eax, edx
mov dword [0x40bfa8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4014d3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4014d3
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4014eb
cmp eax, 0x20b
je 0x4014d8
mov dword [ebp - 0x1c], esi
jmp 0x4014ff
cmp dword [ecx + 0x84], 0xe
jbe 0x4014d3
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4014f9
cmp dword [ecx + 0x74], 0xe
jbe 0x4014d3
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00402577
pop ecx
test eax, eax
jne 0x40152b
cmp dword [0x40bf8c], 1
jne 0x401518
call fcn.00401cb7
push 0x1c
call fcn.00401b16
push 0xff
call fcn.00401945
pop ecx
pop ecx
call fcn.004024d5
mov dword [ebp - 4], esi
call fcn.00402307
test eax, eax
jge 0x401544
push 0x1b
call fcn.00401399
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40c5e0], eax
call fcn.004021e5
mov dword [0x40bf84], eax
call fcn.00402143
test eax, eax
jge 0x40156a
push 8
call fcn.00401399
pop ecx
call fcn.00401f10
test eax, eax
jge 0x40157b
push 9
call fcn.00401399
pop ecx
push 1
call fcn.004019ab
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401591
push eax
call fcn.00401399
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401eb3
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4015b2
movzx eax, word [ebp - 0x40]
jmp 0x4015b5
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040100a
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4015d3
push edi
call fcn.00401ad6
call fcn.00401af8
jmp 0x401605
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040182b
ret
Function at 0x401a15
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40bfe0], esi
push edi
jne 0x401a35
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 [0x40bfdc], esi
mov byte [0x40bfd8], al
jne 0x401a9b
mov ecx, dword [0x40c5d4]
test ecx, ecx
je 0x401a7c
mov eax, dword [0x40c5d0]
sub eax, 4
cmp eax, ecx
jmp 0x401a75
mov eax, dword [eax]
test eax, eax
je 0x401a67
call eax
mov eax, dword [0x40c5d0]
sub eax, 4
cmp eax, dword [0x40c5d4]
mov dword [0x40c5d0], eax
jae 0x401a5f
mov eax, 0x40b724
mov esi, 0x40b828
cmp eax, esi
mov edi, eax
jae 0x401a9b
mov eax, dword [edi]
test eax, eax
je 0x401a94
call eax
add edi, 4
cmp edi, esi
jb 0x401a8c
mov eax, 0x40b92c
mov esi, 0x40ba30
cmp eax, esi
mov edi, eax
jae 0x401aba
mov eax, dword [edi]
test eax, eax
je 0x401ab3
call eax
add edi, 4
cmp edi, esi
jb 0x401aab
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x401ad4
push dword [ebp + 8]
mov dword [0x40bfe0], 1
call fcn.00401945
pop ebp
ret

Function at 0x401b16
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40bb84]
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 + 0x40bb90]
je 0x401b4b
inc eax
cmp eax, 0x13
jb 0x401b3c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40bb90]
jne 0x401c71
mov eax, dword [0x40bf8c]
cmp eax, 1
je 0x401c49
cmp eax, edx
jne 0x401b7b
cmp dword [0x40bb8c], 1
je 0x401c49
cmp ecx, 0xfc
je 0x401c71
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 0x401bb1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00402790
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004029c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401be5
mov eax, edi
push eax
call fcn.004029c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4091fc
push edi
call fcn.00402890
add esp, 0x10
push edi
call fcn.004029c0
push dword [esi + 0x40bb94]
mov ebx, eax
call fcn.004029c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00402650
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00402790
push edi
push ebx
call fcn.004027a0
push 0x4091f8
push ebx
call fcn.004027a0
push dword [esi + 0x40bb94]
push ebx
call fcn.004027a0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040268d
add esp, 0x2c
jmp 0x401c71
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40bb94]
push dword [esi]
call fcn.004029c0
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.0040138b
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x431003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x35831842
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x30d6402e
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219