joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a8f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039f6a
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100442bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.10026bb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx], vtable.mkvparser::AudioTrack.0
mov eax, dword [ebp - 0x3c]
fldz
fstp qword [eax + 0x58]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0x68], 0xffffffff
mov dword [edx + 0x6c], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x30
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 8]
mov edx, dword [ebp - 0x20]
adc edx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jg 0x1002aa96
jl 0x1002a9b0
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x1c]
jae 0x1002aa96
mov edx, dword [ebp - 0x3c]
add edx, 0x58
push edx
push 0x35
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10029c20
add esp, 0x10
movzx edx, al
test edx, edx
je 0x1002a9d5
jmp 0x1002aa91
mov eax, dword [ebp - 0x3c]
add eax, 0x60
push eax
push 0x1f
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10029f90
add esp, 0x10
movzx eax, al
test eax, eax
je 0x1002a9fa
jmp 0x1002aa91
mov ecx, dword [ebp - 0x3c]
add ecx, 0x68
push ecx
push 0x2264
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10029f90
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x1002aa1f
jmp 0x1002aa91
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10027b20
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
cdq
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
adc ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10027b20
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x38]
cdq
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
adc ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
adc eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x1002a996
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002aac0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039f8d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x100442bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.10026bb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x3c]
mov dword [edx], vtable.mkvparser::VideoTrack.0
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0x58], 0xffffffff
mov dword [eax + 0x5c], 0xffffffff
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x60], 0xffffffff
mov dword [ecx + 0x64], 0xffffffff
mov edx, dword [ebp - 0x3c]
fld qword [0x1003f4e0]
fstp qword [edx + 0x68]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
add edx, 0x30
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x24]
add ecx, dword [eax + 8]
mov edx, dword [ebp - 0x20]
adc edx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x18]
jg 0x1002ac6a
jl 0x1002ab84
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x1c]
jae 0x1002ac6a
mov edx, dword [ebp - 0x3c]
add edx, 0x58
push edx
push 0x30
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.10029f90
add esp, 0x10
movzx edx, al
test edx, edx
je 0x1002aba9
jmp 0x1002ac65
mov eax, dword [ebp - 0x3c]
add eax, 0x60
push eax
push 0x3a
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10029f90
add esp, 0x10
movzx eax, al
test eax, eax
je 0x1002abce
jmp 0x1002ac65
mov ecx, dword [ebp - 0x3c]
add ecx, 0x68
push ecx
push 0x383e3
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.10029c20
add esp, 0x10
movzx ecx, al
test ecx, ecx
je 0x1002abf3
jmp 0x1002ac65
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10027b20
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x38]
cdq
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
adc ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10027b20
add esp, 0x10
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x38]
cdq
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
adc ecx, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x20]
adc eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x1002ab6a
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002fa50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 8], eax
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x1002fa30
push 0
push 0
call fcn.1001508b
add esp, 0x18
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov dword [edx + 0x6c], eax
mov esp, ebp
pop ebp
ret

Function at 0x100323f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 0x190
call fcn.100333e0
movzx eax, al
test eax, eax
jne 0x10032410
jmp 0x1003245c
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x244]
call fcn.10026e30
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jg 0x10032434
jl 0x10032432
cmp dword [ebp - 0x10], 0
ja 0x10032434
jmp 0x1003245c
push 0
push 0
mov edx, dword [ebp - 8]
push edx
push 0x100323d0
push 0
push 0
call fcn.1001508b
add esp, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x240], ecx
mov esp, ebp
pop ebp
ret

Function at 0x10033b30
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov dword [ebp - 0x48], ecx
cmp dword [ebp + 8], 0
jne 0x10033b6b
mov ecx, dword [ebp - 0x48]
call fcn.10033560
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x1c
call fcn.100116c0
push 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x18
call fcn.100116c0
xor eax, eax
jmp 0x10033c19
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
xor edx, edx
div dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 2
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x48]
add ecx, 0x18
call fcn.1000b7d0
push eax
lea edx, [ebp - 0x44]
push edx
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ecx + 0xc]
call eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x10033bd7
mov eax, dword [ebp - 0x10]
jmp 0x10033c19
mov ecx, dword [ebp - 0x48]
add ecx, 0x18
call fcn.1000b7a0
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
call edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x1c
call fcn.10010a10
mov ecx, dword [ebp - 0x48]
call fcn.100339d0
mov dword [ebp - 0x10], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10035530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039fbe
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100442bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CMemAllocator.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], vtable.CMemAllocator.1.0
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 0xc]
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
call eax
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.10003a40
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.10037090
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x100355d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039fe4
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x100442bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.10010b30
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.10036f00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [eax], vtable.CMemAllocator.0
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 4], vtable.CMemAllocator.1.0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], 1
mov edx, dword [ebp - 0x14]
mov byte [edx + 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x2c], 0xffffffff
mov ecx, dword [ebp - 0x14]
add ecx, 0x30
call fcn.100039c0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 4
call fcn.10037030
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x408937
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edi
add edx, 0xa0fc806a
dec edx
call fcn.00408968
push 0x9aeb72d4
pop edx
add eax, 0xeffd542a
xor dword [ebx], edi
mov eax, edx
inc ebx
and eax, edx
mov eax, 0xe2c33014
cmp ebx, ecx
jne fcn.00408937
ret
Function at 0x406004
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x422a1c], esi
push edi
jne 0x40603e
mov ecx, 0x422a18
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x40601a
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422e18
jl 0x406015
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406073
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a18]
xor eax, esi
inc ecx
dec edx
jne 0x406056
pop edi
pop esi
not eax
ret 0xc

Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a
Function at 0x401000
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x409040]
xor eax, dword [ebp + 4]
push edi
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x8c]
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x40103c
push str._nerror
call fcn.00401640
pop ecx
or eax, 0xffffffff
jmp 0x40107d
push esi
push 0x1000
lea eax, [ebp - 0x114]
push eax
push dword [ebp + 0xc]
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
test esi, esi
jge 0x401067
push str._nerror
call fcn.00401640
pop ecx
or eax, 0xffffffff
jmp 0x40107c
push esi
push edi
call sub.LZ32.dll_LZCopy
push edi
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004016a2
leave
ret
Function at 0x4018d2
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4071e0
call fcn.004025d8
mov edi, 0x94
mov eax, edi
call fcn.004016b0
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 [0x4096e8], ecx
mov eax, dword [esi + 4]
mov dword [0x4096f4], eax
mov edx, dword [esi + 8]
mov dword [0x4096f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4096ec], esi
cmp ecx, 2
je 0x401932
or esi, 0x8000
mov dword [0x4096ec], esi
shl eax, 8
add eax, edx
mov dword [0x4096f0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40196b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40196b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x401983
cmp eax, 0x20b
je 0x401970
mov dword [ebp - 0x1c], edi
jmp 0x401997
cmp dword [ecx + 0x84], 0xe
jbe 0x40196b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x401991
cmp dword [ecx + 0x74], 0xe
jbe 0x40196b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00403120
pop ecx
test eax, eax
jne 0x4019c3
cmp dword [0x4096c8], 2
je 0x4019b0
call fcn.00402932
push 0x1c
call fcn.004027bb
push 0xff
call fcn.00402624
pop ecx
pop ecx
call fcn.0040307e
mov dword [ebp - 4], edi
call fcn.00402ed3
test eax, eax
jge 0x4019dc
push 0x1b
call fcn.004018ad
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ac24], eax
call fcn.00402db1
mov dword [0x4096c0], eax
call fcn.00402d0f
test eax, eax
jge 0x401a02
push 8
call fcn.004018ad
pop ecx
call fcn.00402adc
test eax, eax
jge 0x401a13
push 9
call fcn.004018ad
pop ecx
call fcn.00402654
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x401a26
push eax
call fcn.004018ad
pop ecx
mov eax, dword [0x409708]
mov dword [0x40970c], eax
push eax
push dword [0x409700]
push dword [0x4096fc]
call fcn.004012a7
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x401a55
push esi
call fcn.0040277b
call fcn.0040279d
jmp 0x401a87
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00402613
ret
Function at 0x4026b9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x409728], esi
push edi
jne 0x4026d9
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 [0x409724], esi
mov byte [0x409720], al
jne 0x40273f
mov ecx, dword [0x409c08]
test ecx, ecx
je 0x402720
mov eax, dword [0x409c04]
sub eax, 4
cmp eax, ecx
jmp 0x402719
mov eax, dword [eax]
test eax, eax
je 0x40270b
call eax
mov eax, dword [0x409c04]
sub eax, 4
cmp eax, dword [0x409c08]
mov dword [0x409c04], eax
jae 0x402703
mov eax, 0x409020
mov esi, 0x409028
cmp eax, esi
mov edi, eax
jae 0x40273f
mov eax, dword [edi]
test eax, eax
je 0x402738
call eax
add edi, 4
cmp edi, esi
jb 0x402730
mov eax, 0x40902c
mov esi, 0x409030
cmp eax, esi
mov edi, eax
jae 0x40275e
mov eax, dword [edi]
test eax, eax
je 0x402757
call eax
add edi, 4
cmp edi, esi
jb 0x40274f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402779
push dword [ebp + 8]
mov dword [0x409728], 1
call fcn.00402624
pop ecx
pop ebp
ret

Function at 0x4027bb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x409040]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4092e0]
je 0x4027e8
inc eax
cmp eax, 0x12
jb 0x4027d9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4092e0]
jne 0x40291c
mov eax, dword [0x4096c8]
cmp eax, 1
je 0x4028f7
cmp eax, edx
jne 0x402818
cmp dword [0x409054], 1
je 0x4028f7
cmp ecx, 0xfc
je 0x40291c
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402851
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004016f0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004017f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402893
lea eax, [ebp - 0x10c]
push eax
call fcn.004017f0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x40729c
push edi
call fcn.00403750
add esp, 0x10
push edi
call fcn.004017f0
push dword [esi + 0x4092e4]
mov ebx, eax
call fcn.004017f0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004016b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004016f0
push edi
push ebx
call fcn.00401700
push 0x407298
push ebx
call fcn.00401700
push dword [esi + 0x4092e4]
push ebx
call fcn.00401700
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00403648
add esp, 0x2c
jmp 0x40291c
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4092e4]
push dword [esi]
call fcn.004017f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004016a2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403648
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x409844], ebx
push esi
push edi
jne 0x4036c8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x403703
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x409844], eax
je 0x403703
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x409848], eax
call esi
cmp dword [0x4096e8], 2
mov dword [0x40984c], eax
jne 0x4036c8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x409854], eax
je 0x4036c8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x409850], eax
mov eax, dword [0x409850]
test eax, eax
je 0x40370d
call eax
test eax, eax
je 0x4036f4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x409854]
test eax, eax
je 0x4036f4
test byte [ebp - 8], 1
jne 0x40370d
cmp dword [0x4096f4], 4
jb 0x403707
or byte [ebp + 0x12], 0x20
jmp 0x40372c
xor eax, eax
jmp 0x40373c
or byte [ebp + 0x12], 4
jmp 0x40372c
mov eax, dword [0x409848]
test eax, eax
je 0x40372c
call eax
mov ebx, eax
test ebx, ebx
je 0x40372c
mov eax, dword [0x40984c]
test eax, eax
je 0x40372c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x409844]
pop edi
pop esi
pop ebx
leave
ret