joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46db60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db6d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
mov bl, byte [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [esi + 0x33c]
cmp byte [eax + 0x38], bl
je 0x46dca8
mov byte [esi + 0x5cc], 1
mov byte [eax + 0x38], bl
mov al, byte [ebp + 0xc]
test al, al
je 0x46dca8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xa0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x34]
mov ecx, dword [esi + 0x318]
xor eax, eax
mov al, byte [esi + 0x30e]
push eax
push ecx
mov ecx, dword [esi + 0x33c]
call fcn.0045ddf0
test bl, bl
je 0x46dbfd
test eax, eax
je 0x46dc89
mov edx, dword [ebp + 0xc]
push edx
push 0
mov ecx, esi
call fcn.0046db60
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x46dc89
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0044d3a0
push eax
lea ecx, [ebp - 0x60]
push str.Failed_to_initialize_DirectDraw:
push ecx
mov dword [ebp - 4], 0
call fcn.00411879
push 0x4e3a90
push eax
lea edx, [ebp - 0x44]
push edx
mov byte [ebp - 4], 1
call fcn.0040a10e
mov ecx, dword [esi + 0x33c]
add ecx, 0xcd4
push ecx
push eax
lea edx, [ebp - 0x28]
push edx
mov byte [ebp - 4], 2
call fcn.00410392
add esp, 0x2c
mov edx, dword [esi]
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call dword [edx + 0x5c]
lea ecx, [ebp - 0x28]
call fcn.0040207a
lea ecx, [ebp - 0x44]
call fcn.0040207a
lea ecx, [ebp - 0x60]
call fcn.0040207a
lea ecx, [ebp - 0x7c]
call fcn.0040207a
push 1
call fcn.004c6589
mov ecx, dword [esi + 0x33c]
call fcn.004375f0
mov ecx, dword [esi + 0x2ec]
mov dword [ecx + 0x10], eax
mov ecx, dword [esi + 0x2ec]
call fcn.00416890
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x474280
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbc98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push esi
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x188]
push eax
push 0x4ea81c
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4742ca
xor eax, eax
jmp 0x474402
mov cl, byte [ebp - 0x21]
push ebx
mov byte [ebp - 0x20], cl
push edi
lea ecx, [ebp - 0x20]
call fcn.00449bd0
mov dword [ebp - 0x1c], eax
mov byte [eax + 0x11], 1
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], eax
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [ebp - 0x18], ebx
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 4], ebx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x15c]
push str.popcap_d.dmo
push eax
mov dword [ebp - 0x14], ebx
call fcn.004c5758
add esp, 0xc
cmp eax, 1
jne 0x474330
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x20]
call fcn.0046dd80
lea eax, [ebp - 0x188]
push eax
push esi
call edi
test eax, eax
jne 0x474300
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
dec ecx
cmp edx, ecx
jle 0x47439e
cmp byte [ebp + 0xc], bl
je 0x47439e
mov edx, dword [eax + 0xc]
push edx
lea eax, [ebp - 0x48]
push str.popcap_d.dmo
push eax
call fcn.004283b0
mov ecx, dword [eax + 0x18]
mov esi, 0x10
add esp, 0xc
cmp ecx, esi
jb 0x474380
mov eax, dword [eax + 4]
jmp 0x474383
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp - 0x30], esi
jb 0x47439b
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004c2b1b
add esp, 4
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x18], ebx
jne 0x4743ca
mov eax, dword [esi]
push esi
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0046e330
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004c2b1b
add esp, 4
xor eax, eax
jmp 0x474400
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.004425e0
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi]
mov edi, dword [ecx + 0xc]
push esi
push eax
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
call fcn.0046e330
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004c2b1b
add esp, 4
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop esi
call fcn.004c478a
mov esp, ebp
pop ebp
ret
Function at 0x478dd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x478e20
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_bass.dll
push ecx
call fcn.004c3391
add esp, 0xc
push 0x10
push 0x4ead88
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004c6589
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004c478a
mov esp, ebp
pop ebp
ret
Function at 0x4790c0
Capabilities:
Terminate process

Disassembly:
push 0x54d8b4
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x54d8b0]
test eax, eax
jne 0x479119
push 0x64
call fcn.004b18e0
add esp, 4
test eax, eax
je 0x4790f0
push str.bass.dll
mov ecx, eax
call fcn.00478e30
jmp 0x4790f2
xor eax, eax
mov dword [0x54d8b0], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x479119
push 0x10
push 0x4ead88
push str.Cant_find_bass.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004c6589
ret

Function at 0x4791d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x479220
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x404]
push str._s_function_not_found_in_fmod.dll
push ecx
call fcn.004c3391
add esp, 0xc
push 0x10
push 0x4ead88
lea edx, [ebp - 0x404]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004c6589
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004c478a
mov esp, ebp
pop ebp
ret
Function at 0x4795d0
Capabilities:
Terminate process

Disassembly:
push 0x54d8bc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x54d8b8]
test eax, eax
jne 0x47962c
push 0x80
call fcn.004b18e0
add esp, 4
test eax, eax
je 0x479603
push str.fmod.dll
mov ecx, eax
call fcn.00479230
jmp 0x479605
xor eax, eax
mov dword [0x54d8b8], eax
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x47962c
push 0x10
push 0x4ead88
push str.Cant_find_fmod.dll.
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call fcn.004c6589
ret

Function at 0x479ab0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
mov edx, 0x3ff00000
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Sexy::DSoundInstance.0
mov dword [esi + 4], ecx
mov byte [esi + 0x12], bl
mov byte [esi + 0x10], bl
mov byte [esi + 0x11], bl
mov dword [esi + 8], eax
mov dword [edi], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x30], 0xac44
je 0x479bab
mov ecx, dword [ecx + 0x1494]
mov edx, dword [ecx]
push edi
push eax
push ecx
call dword [edx + 0x14]
cmp eax, ebx
je 0x479b9f
cmp eax, 0x8878000a
jg 0x479b6c
je 0x479b5f
cmp eax, 0x8007000e
je 0x479b52
cmp eax, 0x80070057
jne 0x479b99
push ebx
push 0x4eb64c
push str.DSERR_INVALIDPARAM
jmp 0x479b92
push ebx
push 0x4eb64c
push str.DSERR_OUTOFMEMORY
jmp 0x479b92
push ebx
push 0x4eb64c
push str.DSERR_ALLOCATED
jmp 0x479b92
cmp eax, 0x88780032
je 0x479b87
cmp eax, 0x887800aa
jne 0x479b99
push ebx
push 0x4eb64c
push str.DSERR_UNINITIALIZED
jmp 0x479b92
push ebx
push 0x4eb64c
push str.DSERR_INVALIDCALL
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call fcn.004c6589
mov edi, dword [edi]
mov ecx, dword [edi]
lea eax, [esi + 0x30]
push eax
push edi
call dword [ecx + 0x20]
mov ecx, esi
call fcn.00478b70
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x47dd00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
pop ebp
ret
Function at 0x489750
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x489783
push esi
call fcn.00496a90
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x48977c
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x489804
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4897f3
lea ebx, [ebx]
mov eax, dword [esi + 8]
test eax, eax
je 0x4897ad
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4897ee
cmp eax, 2
je 0x4897f3
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4897a0
cmp eax, 3
je 0x4897d3
cmp eax, 1
jne 0x4897a0
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x4897a0
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4897a0
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.004895e0
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x489824
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
call fcn.004895e0
pop esi
pop ebp
ret

Function at 0x48e870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x48e87e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
cmp esi, 8
not eax
jb 0x48e971
push ebx
push edi
mov edi, esi
shr edi, 3
xor edx, edx
mov dl, byte [ecx]
mov ebx, eax
shr ebx, 8
sub esi, 8
xor edx, eax
and edx, 0xff
mov eax, dword [edx*4 + 0x4ee078]
xor eax, ebx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4ee078]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ee078]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4ee078]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ee078]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4ee078]
shr eax, 8
xor edx, eax
xor eax, eax
mov al, byte [ecx + 1]
inc ecx
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x4ee078]
shr edx, 8
xor eax, edx
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4ee078]
shr eax, 8
xor eax, edx
inc ecx
dec edi
jne 0x48e897
pop edi
pop ebx
test esi, esi
je 0x48e991
xor edx, edx
mov dl, byte [ecx]
xor edx, eax
and edx, 0xff
mov edx, dword [edx*4 + 0x4ee078]
shr eax, 8
xor eax, edx
inc ecx
dec esi
jne 0x48e975
not eax
pop esi
pop ebp
ret
Function at 0x493760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebx + 0x24]
push esi
push edi
mov dword [ebp - 4], eax
jmp 0x493773
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub ecx, edx
sub ecx, esi
mov dword [ebp - 8], ecx
jne 0x493794
test edx, edx
jne 0x4937a3
test esi, esi
jne 0x4937a3
mov ecx, eax
jmp 0x49382c
cmp ecx, 0xffffffff
jne 0x4937a3
mov ecx, 0xfffffffe
jmp 0x49382c
mov esi, dword [ebx + 0x24]
lea esi, [eax + esi - 0x106]
cmp edx, esi
jb 0x49382c
mov edi, dword [ebx + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
lea esi, [edi + eax]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 0x68]
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x54]
sub esi, eax
sub edx, eax
sub ecx, eax
mov dword [ebx + 0x68], esi
mov esi, dword [ebx + 0x44]
mov dword [ebx + 0x54], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [ebx + 0x64], edx
lea edx, [ecx + esi*2]
jmp 0x4937f0
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x4937ff
sub ecx, eax
jmp 0x493801
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x4937f0
mov edx, dword [ebx + 0x38]
mov esi, eax
lea edx, [edx + eax*2]
nop
movzx ecx, word [edx - 2]
sub edx, 2
cmp ecx, eax
jb 0x49381f
sub ecx, eax
jmp 0x493821
xor ecx, ecx
dec esi
mov word [edx], cx
jne 0x493810
mov ecx, dword [ebp - 8]
add ecx, eax
mov eax, dword [ebx]
mov edx, dword [eax + 4]
test edx, edx
je 0x493890
mov edx, dword [ebx + 0x6c]
mov edi, dword [ebx + 0x64]
mov esi, dword [ebx + 0x30]
add edx, edi
add edx, esi
push edx
push eax
call fcn.00493500
mov ecx, dword [ebx + 0x6c]
add ecx, eax
mov edx, ecx
add esp, 8
cmp edx, 3
mov dword [ebx + 0x6c], ecx
jb 0x49387b
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edx, 0x106
jae 0x493890
mov edx, dword [ebx]
mov eax, dword [edx + 4]
test eax, eax
jne 0x493770
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x497360
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
test edx, edx
push edi
mov edi, dword [ebp + 8]
je 0x4973c0
push ebx
push esi
mov ecx, dword [edx]
mov ebx, dword [ecx]
mov esi, dword [edx + 4]
mov ecx, dword [edx + 8]
add esi, ebx
cmp edi, ecx
mov ebx, edi
jl 0x497384
mov ebx, ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 4], ebx
jle 0x4973b2
lea ecx, [ecx]
movzx edi, byte [ecx + esi]
mov ebx, eax
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x512c90]
shl eax, 8
xor eax, edi
mov edi, dword [ebp - 4]
inc ecx
cmp ecx, edi
jl 0x497390
mov edi, dword [ebp + 8]
mov edx, dword [edx + 0xc]
sub edi, ecx
test edx, edx
mov dword [ebp + 8], edi
jne 0x497370
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4c0647
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.004c752b
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x4c0679
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x4c0682
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x4c3fe1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4c405c
push ebx
call fcn.004c3faa
test eax, eax
pop ecx
jne 0x4c402e
call fcn.004c5ed6
mov dword [eax], 0xf
call fcn.004c5ecd
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004c478a
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4c406e
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4c401e
inc eax
cmp eax, 0x104
ja 0x4c401e
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4c40a6
cmp eax, dword [ebp + 0x10]
jg 0x4c4089
mov eax, dword [ebp + 0x10]
push eax
call fcn.004c6dc6
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4c40bb
call fcn.004c5ecd
mov dword [eax], 0xc
jmp 0x4c401e
cmp eax, dword [ebp + 0x10]
jle 0x4c40bb
call fcn.004c5ecd
mov dword [eax], 0x22
jmp 0x4c401e
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004c33f0
pop ecx
pop ecx
jmp 0x4c4020
Function at 0x4c41ef
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4fb050
call fcn.004caca4
mov edi, 0x94
mov eax, edi
call fcn.004c3900
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 [0x54df94], ecx
mov eax, dword [esi + 4]
mov dword [0x54dfa0], eax
mov edx, dword [esi + 8]
mov dword [0x54dfa4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x54df98], esi
cmp ecx, 2
je 0x4c424f
or esi, 0x8000
mov dword [0x54df98], esi
shl eax, 8
add eax, edx
mov dword [0x54df9c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4c428a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c428a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4c42a2
cmp eax, 0x20b
je 0x4c428f
mov dword [ebp - 0x1c], esi
jmp 0x4c42b6
cmp dword [ecx + 0x84], 0xe
jbe 0x4c428a
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4c42b0
cmp dword [ecx + 0x74], 0xe
jbe 0x4c428a
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.004ce549
pop ecx
test eax, eax
jne 0x4c42ca
push 0x1c
call fcn.004c41cb
pop ecx
call fcn.004cb677
test eax, eax
jne 0x4c42db
push 0x10
call fcn.004c41cb
pop ecx
call fcn.004ce4a7
mov dword [ebp - 4], esi
call fcn.004ca213
test eax, eax
jge 0x4c42f4
push 0x1b
call fcn.004c41a6
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x54f7d4], eax
call fcn.004ce385
mov dword [0x54df80], eax
call fcn.004ce2e3
test eax, eax
jge 0x4c431a
push 8
call fcn.004c41a6
pop ecx
call fcn.004ce0b0
test eax, eax
jge 0x4c432b
push 9
call fcn.004c41a6
pop ecx
call fcn.004c6451
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x4c433e
push eax
call fcn.004c41a6
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004ce047
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x4c435f
movzx eax, word [ebp - 0x34]
jmp 0x4c4362
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00410b8c
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4c4380
push edi
call fcn.004c6589
call fcn.004c65ab
jmp 0x4c43b2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004cacdf
ret
Function at 0x4c56c7
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4c56e3
call fcn.004c5ecd
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4c5755
push esi
push 0x88
push 1
call fcn.004c6dd8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4c573b
push esi
call fcn.004cb488
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4c5627
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4c5733
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4c5752
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004c479d
test ebx, ebx
pop ecx
je 0x4c574d
push ebx
call fcn.004c5edf
pop ecx
or eax, 0xffffffff
jmp 0x4c5754
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4c64b6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004c7676
xor esi, esi
inc esi
cmp dword [0x54dfd4], esi
pop ecx
jne 0x4c64de
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 [0x54dfd0], esi
mov byte [0x54dfcc], al
jne 0x4c6544
mov ecx, dword [0x54f7cc]
test ecx, ecx
je 0x4c6525
mov eax, dword [0x54f7c8]
sub eax, 4
cmp eax, ecx
jmp 0x4c651e
mov eax, dword [eax]
test eax, eax
je 0x4c6510
call eax
mov eax, dword [0x54f7c8]
sub eax, 4
cmp eax, dword [0x54f7cc]
mov dword [0x54f7c8], eax
jae 0x4c6508
mov eax, 0x510094
mov esi, 0x51009c
cmp eax, esi
mov edi, eax
jae 0x4c6544
mov eax, dword [edi]
test eax, eax
je 0x4c653d
call eax
add edi, 4
cmp edi, esi
jb 0x4c6535
mov eax, 0x5100a0
mov esi, 0x5100a8
cmp eax, esi
mov edi, eax
jae 0x4c6563
mov eax, dword [edi]
test eax, eax
je 0x4c655c
call eax
add edi, 4
cmp edi, esi
jb 0x4c6554
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4c6574
push 8
call fcn.004c75e2
jmp 0x4c6586
push dword [ebp + 8]
mov dword [0x54dfd4], 1
call fcn.004c640f
pop ecx
pop ebp
ret
Function at 0x4ca411
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x514eb8]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4ca43a
xor eax, eax
jmp 0x4ca5a8
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x54e6a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4ca46d
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004d285c
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4ca53f
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4ca57a
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4ca4c8
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4ca4b9
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4ca49c
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ca508
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4ca511
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4ca48d
jmp 0x4ca513
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4ca5a3
cmp dword [ebp - 8], edi
je 0x4ca57a
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4ca56c
call fcn.004c5ecd
mov dword [eax], 9
call fcn.004c5ed6
mov dword [eax], esi
jmp 0x4ca575
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4ca561
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4ca513
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4ca513
push dword [ebp - 8]
call fcn.004c5edf
pop ecx
or eax, 0xffffffff
jmp 0x4ca5a6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4ca58f
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4ca58f
xor eax, eax
jmp 0x4ca5a6
call fcn.004c5ecd
mov dword [eax], 0x1c
call fcn.004c5ed6
mov dword [eax], edi
jmp 0x4ca575
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004c478a
leave
ret