joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63bc7920
Capabilities:
Query or enumerate registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x14]
mov edi, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x20], eax
test byte [0x63bcb034], 8
jne 0x63bc79a0
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 0
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.advapi32.dll_RegEnumValueW
sub esp, 0x20
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x1c
mov eax, edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
call fcn.63bc3570
mov ecx, dword [ebp - 0x24]
mov dword [esp + 0x28], ecx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], str._p___ld___s___p___p___p___p._n
mov dword [esp + 8], str.SHEnumValueW
mov dword [esp + 4], 0x63bcb034
mov dword [esp + 0x10], eax
mov dword [esp], 3
call fcn.63bc2700
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
jmp 0x63bc7957
Function at 0x63bc8630
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ecx + 0x14]
test byte [0x63bcb034], 8
jne 0x63bc8720
test ebx, ebx
je 0x63bc866f
cmp word [ebx], 0
jne 0x63bc86c0
mov dword [ebp - 0x1c], esi
mov eax, esi
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp - 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
cmp eax, esi
je 0x63bc86ae
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], esi
call sub.advapi32.dll_RegCreateKeyExW
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x63bc86ae
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
jmp 0x63bc8674
mov eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
call fcn.63bc3570
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.63bc3570
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p___s___s___ld___p___ld._n
mov dword [esp + 0x18], edx
mov dword [esp + 8], str.SHSetValueW
mov dword [esp + 4], 0x63bcb034
mov dword [esp], 3
call fcn.63bc2700
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
jmp 0x63bc8665
Function at 0x63bc8e50
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 0x10]
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ecx + 0x14]
test byte [0x63bcb034], 8
jne 0x63bc8f40
test ebx, ebx
je 0x63bc8e8e
cmp byte [ebx], 0
jne 0x63bc8ee0
mov dword [ebp - 0x1c], esi
mov eax, esi
mov dword [esp + 0x14], ecx
mov ebx, dword [ebp - 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
cmp eax, esi
je 0x63bc8ecd
mov dword [esp], eax
call sub.advapi32.dll_RegCloseKey
sub esp, 4
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x18
lea eax, [ebp - 0x20]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], esi
call sub.advapi32.dll_RegCreateKeyExA
sub esp, 0x24
mov ebx, eax
test eax, eax
jne 0x63bc8ecd
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
jmp 0x63bc8e93
mov eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
call fcn.63bc37a0
mov dword [ebp - 0x30], eax
mov eax, ebx
call fcn.63bc37a0
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x24], ecx
mov edx, dword [ebp - 0x2c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x30]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str._p___s___s___ld___p___ld._n
mov dword [esp + 0x18], edx
mov dword [esp + 8], str.SHSetValueA
mov dword [esp + 4], 0x63bcb034
mov dword [esp], 3
call fcn.63bc2700
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
jmp 0x63bc8e85
Function at 0x63bc9190
Capabilities:
Query or enumerate registry key

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x48
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov edi, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0x10]
test byte [0x63bcb034], 8
jne 0x63bc9220
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp], ebx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sub.advapi32.dll_RegQueryInfoKeyA
sub esp, 0x30
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
mov dword [esp + 0x20], ecx
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x1c], edx
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___p___p___p___p__n
mov dword [esp + 8], str.SHQueryInfoKeyA
mov dword [esp + 4], 0x63bcb034
mov dword [esp], 3
call fcn.63bc2700
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x63bc91bb
Function at 0x42cc30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x42cd3c
test eax, eax
je 0x42cd3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x447ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x42cd23
lea edi, [eax + 4]
jmp 0x42cc87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x42cc9c
mov dword [ebp - 4], 2
jmp 0x42ccbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x42ccb3
mov dword [ebp - 4], 1
jmp 0x42ccbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x42cd33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x42ccf6
mov byte [ecx], 0x3d
jmp 0x42cd02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x42cd0d
mov byte [ecx], 0x3d
jmp 0x42cd13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x42cc84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x6b7e37
Capabilities:
Execute anti-debugging instructions

Disassembly:
add edx, 0xe47661e
not edx
jmp 0x70810f
jmp ebp
push ebx
xchg ebx, ebx
setp bl
push edi
movzx edi, cx
mov bh, dh
push ebp
mov ebx, 0x39434c18
mov bl, dh
push edx
jmp 0x6f7d0c
push ecx
push esi
push eax
lahf
rdtsc
pushfd
not edx
rdtsc
mov eax, 0
xchg di, dx
cdq
push eax
cmovb ecx, eax
sets bh
mov esi, dword [esp + 0x28]
not bp
inc esi
sal edx, cl
bswap esi
cmp si, 0x79c4
neg esi
bswap edx
cdq
inc esi
mov edi, 0x7c567e78
ror dx, cl
rol esi, 2
add esi, eax
clc
bsr ecx, ebp
mov edi, esp
sub dh, 0x8a
shl ebx, 0xda
lea esp, [esp - 0xc0]
cmp dh, bh
shrd cx, sp, 0x9e
mov ebx, esi
mov ch, dl
and ecx, esi
mov ecx, 0
sub bp, sp
sar edx, cl
sub ebx, ecx
xor bp, 0x7757
shl dx, 0xd8
sub edx, 0x45934c2d
lea ebp, [0x6f7d86]
sub esi, 4
test esp, 0xddf62c2
ror dl, cl
xchg dh, dl
mov edx, dword [esi]
stc
xor edx, ebx
jmp 0x5f937d
sub edx, 0x2d2357a9
stc
cmc
rol edx, 2
clc
xor ebx, edx
cmp sp, bp
add ebp, edx
jmp 0x5f9574
Function at 0x40a750
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.qjEpyQEl
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40a772
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a779
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a768
mov eax, 1
add ebx, ebx
jne 0x40a78b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a780
jne 0x40a79c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a780
xor ecx, ecx
sub eax, 3
jb 0x40a7b0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a822
mov ebp, eax
add ebx, ebx
jne 0x40a7bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a7c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a7ec
inc ecx
add ebx, ebx
jne 0x40a7d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a7cd
jne 0x40a7e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a7cd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a80c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a7fd
jmp 0x40a76e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a80c
add edi, ecx
jmp 0x40a76e
pop esi
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a86b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa1b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa21c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a829
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa224]
or eax, eax
je 0x40a865
mov dword [ebx], eax
add ebx, 4
jmp 0x40a846
call dword [esi + 0xa220]
mov ebp, dword [esi + 0xa228]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x40a89f
sub esp, 0xffffff80
jmp section.JToItMIl
Function at 0x40193b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
xor esi, esi
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x26
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x78
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x4c
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0xe9
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x5f
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0xe4
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x43
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x24
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0xf2
pop ecx
call fcn.00407266
push eax
call fcn.00407429
xor byte [esi + 0x435a80], 0x64
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xee
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0xa1
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x31
pop ecx
call fcn.00407266
push eax
call fcn.00407429
add byte [esi + 0x435a80], 0x82
inc esi
pop ecx
cmp esi, 0x2b800
jb 0x401945
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401a61
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, 0x14d
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x14], 0x10
jb 0x401a84
mov esi, dword [esi]
shr edi, 2
push esi
push edi
push str._x_and__p
mov dword [esp + 0x20], edi
call fcn.004010d6
add esp, 0xc
test edi, edi
je 0x401ae1
mov ebp, esi
push 4
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.0040a920
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x401aa0
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x401b0a
sub eax, 1
je 0x401b00
sub eax, 1
jne 0x401b18
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret
Function at 0x401690
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x17c
mov eax, dword [0x4090f4]
mov dword [esp + 0x178], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x104
lea ecx, [esp + 0x74]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x70]
push 0x5c
push edx
call fcn.00401a67
add esp, 8
mov byte [eax + 1], 0
push 0x10
push str.javaw.exe__jar__
lea ecx, [esp + 0x5c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
call fcn.00401450
lea eax, [esp + 0x70]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401700
push esi
sub eax, edx
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x60]
call fcn.00401540
push 0x14
push str.KEmulator.jar___jar
lea ecx, [esp + 0x60]
call fcn.00401540
mov edx, dword [esp + 0x18c]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401735
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x60]
call fcn.00401540
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
pop esi
jae 0x401759
lea eax, [esp + 0x58]
lea ecx, [esp]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401786
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
cmp dword [esp + 0x6c], 0x10
jb 0x4017a2
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00401dfd
add esp, 4
mov ecx, dword [esp + 0x178]
xor eax, eax
call fcn.0040230d
add esp, 0x17c
ret 0x10
Function at 0x402340
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4071d0
call fcn.00403af8
mov edi, 0x94
mov eax, edi
call fcn.00404800
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 [0x4093d0], ecx
mov eax, dword [esi + 4]
mov dword [0x4093dc], eax
mov edx, dword [esi + 8]
mov dword [0x4093e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4093d4], esi
cmp ecx, 2
je 0x4023a0
or esi, 0x8000
mov dword [0x4093d4], esi
shl eax, 8
add eax, edx
mov dword [0x4093d8], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4023db
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4023db
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4023f3
cmp eax, 0x20b
je 0x4023e0
mov dword [ebp - 0x1c], esi
jmp 0x402407
cmp dword [ecx + 0x84], 0xe
jbe 0x4023db
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402401
cmp dword [ecx + 0x74], 0xe
jbe 0x4023db
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004047aa
pop ecx
test eax, eax
jne 0x402433
cmp dword [0x40939c], 1
jne 0x402420
call fcn.00403f5f
push 0x1c
call fcn.00403de8
push 0xff
call fcn.00403c4d
pop ecx
pop ecx
call fcn.00404708
mov dword [ebp - 4], esi
call fcn.0040455d
test eax, eax
jge 0x40244c
push 0x1b
call fcn.0040231b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x409940], eax
call fcn.0040443b
mov dword [0x409394], eax
call fcn.00404399
test eax, eax
jge 0x402472
push 8
call fcn.0040231b
pop ecx
call fcn.00404166
test eax, eax
jge 0x402483
push 9
call fcn.0040231b
pop ecx
push 1
call fcn.00403c7d
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402499
push eax
call fcn.0040231b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00404109
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4024ba
movzx eax, word [ebp - 0x40]
jmp 0x4024bd
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401690
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4024db
push edi
call fcn.00403da8
call fcn.00403dca
jmp 0x40250d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403b33
ret
Function at 0x403ce7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x409410], esi
push edi
jne 0x403d07
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 [0x40940c], esi
mov byte [0x409408], al
jne 0x403d6d
mov ecx, dword [0x409708]
test ecx, ecx
je 0x403d4e
mov eax, dword [0x409704]
sub eax, 4
cmp eax, ecx
jmp 0x403d47
mov eax, dword [eax]
test eax, eax
je 0x403d39
call eax
mov eax, dword [0x409704]
sub eax, 4
cmp eax, dword [0x409708]
mov dword [0x409704], eax
jae 0x403d31
mov eax, 0x409020
mov esi, 0x409024
cmp eax, esi
mov edi, eax
jae 0x403d6d
mov eax, dword [edi]
test eax, eax
je 0x403d66
call eax
add edi, 4
cmp edi, esi
jb 0x403d5e
mov eax, 0x409028
mov esi, 0x409030
cmp eax, esi
mov edi, eax
jae 0x403d8c
mov eax, dword [edi]
test eax, eax
je 0x403d85
call eax
add edi, 4
cmp edi, esi
jb 0x403d7d
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x403da6
push dword [ebp + 8]
mov dword [0x409410], 1
call fcn.00403c4d
pop ebp
ret

Function at 0x403de8
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4090f4]
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 + 0x409220]
je 0x403e1d
inc eax
cmp eax, 0x13
jb 0x403e0e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x409220]
jne 0x403f43
mov eax, dword [0x40939c]
cmp eax, 1
je 0x403f1b
cmp eax, edx
jne 0x403e4d
cmp dword [0x4090fc], 1
je 0x403f1b
cmp ecx, 0xfc
je 0x403f43
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 0x403e83
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004053f0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004025c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403eb7
mov eax, edi
push eax
call fcn.004025c0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4072ac
push edi
call fcn.00405d60
add esp, 0x10
push edi
call fcn.004025c0
push dword [esi + 0x409224]
mov ebx, eax
call fcn.004025c0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00404800
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004053f0
push edi
push ebx
call fcn.00405400
push 0x4072a8
push ebx
call fcn.00405400
push dword [esi + 0x409224]
push ebx
call fcn.00405400
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00405c60
add esp, 0x2c
jmp 0x403f43
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x409224]
push dword [esi]
call fcn.004025c0
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.0040230d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x405c60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409558], ebx
push esi
push edi
jne 0x405ce0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405d1b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x409558], eax
je 0x405d1b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40955c], eax
call esi
cmp dword [0x4093d0], 2
mov dword [0x409560], eax
jne 0x405ce0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409568], eax
je 0x405ce0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409564], eax
mov eax, dword [0x409564]
test eax, eax
je 0x405d25
call eax
test eax, eax
je 0x405d0c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409568]
test eax, eax
je 0x405d0c
test byte [ebp - 8], 1
jne 0x405d25
cmp dword [0x4093dc], 4
jb 0x405d1f
or byte [ebp + 0x12], 0x20
jmp 0x405d44
xor eax, eax
jmp 0x405d54
or byte [ebp + 0x12], 4
jmp 0x405d44
mov eax, dword [0x40955c]
test eax, eax
je 0x405d44
call eax
mov ebx, eax
test ebx, ebx
je 0x405d44
mov eax, dword [0x409560]
test eax, eax
je 0x405d44
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409558]
pop edi
pop esi
pop ebx
leave
ret