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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e5178
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x488c79
inc eax
mov dword [esi + 0x10], eax
jmp 0x488d8c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x488c8d
mov eax, 0xffffffc7
jmp 0x488d8e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x488c9e
cmp dword [esi + 8], eax
jne 0x488c8d
cmp dword [esi + 8], eax
jne 0x488cb7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x488cb7
mov eax, 0xffffffc7
jmp 0x488d8e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x488ccb
push eax
mov ecx, ebx
call fcn.00488470
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004531f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x488cfc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00453210
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00487be0
test eax, eax
mov dword [esp + 0x38], eax
je 0x488d2f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5fd548
call fcn.004533f0
mov eax, dword [esp + 0x38]
jmp 0x488d8e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00488aa0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x488d73
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00488ac0
mov esi, eax
test esi, esi
jne 0x488da3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00488aa0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x488d45
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5fd548
call fcn.004533f0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x5fd548
call fcn.004533f0
mov eax, esi
jmp 0x488d8e
Function at 0x499580
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e5a68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [0x4e8530]
push 0
lea ecx, [esp + 0x20]
call fcn.004dbab1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00498ee0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004db9df
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004d81c9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004d81c9
push 1
push 0
push 0
mov ecx, esi
call fcn.004d8171
push 1
push 0
push 1
mov ecx, esi
call fcn.004d8171
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004dbb23
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x499700
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e5a88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004dbab1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00498ee0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004db9df
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [0x4e8530]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4997c4
cmp dword [esp + 0x40], 1
jne 0x4997c2
cmp ecx, eax
jge 0x4997c4
mov eax, ecx
cmp eax, 0xc8
jge 0x4997d0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00499580
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [0x4e852c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004dbb23
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x499fd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4e5b33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004d65e7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], 0x5fefe8
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], 0x5fef30
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [0x4e8044]
push eax
mov ecx, edi
call fcn.004dbd59
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004dd3ee
test eax, eax
je 0x49a0ec
mov ecx, dword [esp + 0x3c]
call fcn.004dbd86
mov ecx, dword [esi + 0x1c]
mov ebp, dword [0x4e8550]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x49a0b0
push edi
mov ecx, esi
call fcn.004d9347
mov ecx, esi
call fcn.0049a2a0
cmp dword [esp + 0x38], 1
jne 0x49a0e5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004d94b1
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28

Function at 0x49c2e0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x49c313
push esi
call fcn.004aa6a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x49c30c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x49c399
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x49c382
mov eax, dword [esi + 8]
test eax, eax
je 0x49c337
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49c37e
cmp eax, 2
je 0x49c382
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49c32a
cmp eax, 3
je 0x49c35d
cmp eax, 1
jne 0x49c32a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49c32a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49c32a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0049c3c0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49c3a8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0049c3c0
add esp, 4
pop esi
ret
Function at 0x404126
Capabilities:
Encode data using xor

Disassembly:
call 0xe8919afc
and ebp, 5
xchg dword [0xc6eb7434], ecx

Function at 0x405b1b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add byte [eax], al
dec dword [ecx + 0x3659047e]
call 0x834d10a7
mov eax, dword [esi]

Function at 0x4111fc
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [eax]
mov ecx, esi
mov esp, 0xe8f18b56
dec edi
out dx, eax
push 0x5c868b00
add al, 0x70
test byte [ecx - 0x3ed403bb], 0x8b
test dword [edi + 0x4f], ebx
add ecx, dword [edi]
push edi
jne 0x506954a1
invalid
push eax
mov dword [esp + ebp*8 + 0x24], ebx
mov eax, dword [0x64c627c]
cmc
clc
add byte [ebx + 0x56], dl
push edi
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov edi, ecx
inc ebx
push 0x4923dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00407f68
push ebx
lea eax, [ebp - 0x10]
mov ebx, 0xc8b77270
inc esp
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00408b3a
xor al, 0x4d
loopne 0x411245
sub cl, byte [eax - 1]
dec dword [ebx + 0x4c627035]
add byte [ecx*2 - 0x78271710], dh
invalid

Function at 0x430e1e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebx, dword [ebp + 0x57]
mov edi, dword [ebp + 8]
test edi, edi
jne 0x430e3e
call fcn.00428d8f
mov dword [eax], 0x680016
call 0x8442901d
jmp 0x430f39
mov eax, dword [edi + 0xc]
test al, 0x83
je 0x430f39
test al, 0x40
jne 0x430f39
test al, 2
je 0x430e60
or eax, 0x20
mov dword [edi + 0xc], eax
jmp 0x430f39
or eax, 1
mov dword [edi + 0xc], eax
test eax, 0x10c
jne 0x430e76
push edi
call fcn.0043625b
pop ecx
jmp 0x430e7b
mov eax, dword [edi + 8]
mov dword [edi], eax
push dword [edi + 0x18]
push dword [edi + 8]
push edi
call fcn.0042493d
pop ecx
push eax
call fcn.00430fbe
add esp, 0xc
mov dword [edi + 4], eax
test eax, eax
je 0x430f28
cmp eax, 0xffffffff
je 0x430f28
test byte [edi + 0xc], 0x82
jne 0x430efc
push edi
call fcn.0042493d
pop ecx
cmp eax, 0xffffffff
je 0x430ee7
push edi
call fcn.0042493d
pop ecx
cmp eax, 0xfffffffe
je 0x430ee7
push esi
push edi
call fcn.0042493d
mov esi, eax
push edi
sar esi, 5
call fcn.0042493d
and eax, 0x1f
pop ecx
shl eax, 6
add eax, dword [esi*4 + 0x4c49e0]
pop ecx
pop esi
jmp 0x430eec
mov eax, 0x4bfe90
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x430efc
or dword [edi + 0xc], 0x2000
cmp dword [edi + 0x18], 0x200
jne 0x430f1b
test byte [edi + 0xc], 8
je 0x430f1b
test dword [edi + 0xc], 0x400
jne 0x430f1b
mov dword [edi + 0x18], 0x1000
mov ecx, dword [edi]
dec dword [edi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [edi], ecx
jmp 0x430f3c
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [edi + 0xc], eax
and dword [edi + 4], 0
or eax, 0xffffffff
and al, 0x5d
ret
Function at 0x45777c
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, edx
xor ebx, ebx
xor edx, edx
mov dword [eax], ebx
mov dword [eax + 0xc], edx
lea edx, [ebp - 4]
mov eax, dword [ecx]
push edx
push 0x650800
push ebx
push ecx

Function at 0x468b28
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
dec dword [0x4c4190]
jne 0x468b3a
call 0xff468bca
mov eax, dword [0x4c7ef0]
mov ecx, dword [eax]
add eax, 4
mov dword [0x4c7ef0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0x8cffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
mov dword [ebp - 4], eax
fild dword [ebp - 4]
jns 0x468b7d
fadd qword [0x4bbac8]
fstp qword [ebp - 8]
fld qword [ebp - 8]
fmul qword [0x4bbaa0]
mov esp, ebp
pop ebp
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x387a65f7
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2f1f5577
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401120
Capabilities:
Delete registry key

Disassembly:
sub esp, 0x104
xor eax, eax
jmp 0x401130
mov cl, byte [eax + 0x4280b0]
mov byte [esp + eax], cl
inc eax
test cl, cl
jne 0x401130
push esi
push edi
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401145
mov ecx, 0xb
mov esi, str.CLSID44EC053A_400F_11D0_9DCD_00A0C90391D3
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 8]
push eax
push 0x80000001
movsw word es:[edi], word [esi]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
pop edi
pop esi
add esp, 0x104
ret

Function at 0x401fc0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41ea08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x40]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x40], 1
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00401920
mov edi, dword [esp + 0x58]
xor eax, eax
cmp edi, ebx
mov byte [esp + 0x34], 2
jbe 0x402062
lea esp, [esp]
cmp dword [esp + 0x5c], 0x10
mov ecx, dword [esp + 0x48]
jae 0x40202f
lea ecx, [esp + 0x48]
push edi
push eax
push ecx
lea ecx, [esp + 0x1c]
call fcn.004012e0
mov esi, eax
cmp esi, 0xffffffff
je 0x402062
mov edi, dword [esp + 0x58]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x68]
push ecx
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00401a10
mov edx, dword [esp + 0x74]
lea eax, [edx + esi]
jmp 0x402020
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x18]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push eax
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00401920
mov eax, dword [esp + 0x28]
mov edi, 0x10
cmp eax, edi
jb 0x40209c
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00417766
add esp, 4
cmp dword [esp + 0x5c], edi
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x4020bf
mov edx, dword [esp + 0x48]
push edx
call fcn.00417766
add esp, 4
cmp dword [esp + 0x78], edi
jb 0x4020d2
mov eax, dword [esp + 0x64]
push eax
call fcn.00417766
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x403ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404009
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40401d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40403e
cmp esi, eax
jae 0x404017
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404030
cmp esi, eax
jae 0x404017
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408384
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4083a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040998f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4083c7
test byte [esp + 8], 2
je 0x4083c7
call fcn.0040997d
mov dword [eax], 0xd
call fcn.00409986
mov dword [eax], 5
jmp 0x4083a0
xor eax, eax
ret

Function at 0x408712
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00408430
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4087ad
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42c7c0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4087ad
cmp eax, 1
je 0x4087ce
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4087ad
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40877a
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4087a9
xor eax, eax
inc eax
jmp 0x4087ed
cmp edi, eax
jae 0x4087b1
xor eax, eax
jmp 0x4087ed
cmp eax, esi
jae 0x4087b8
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42c7c0]
jmp 0x4087d1
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4091de
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x421d68
call fcn.0040a37c
mov edi, 0x94
mov eax, edi
call fcn.00408430
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 [0x42c7c0], ecx
mov eax, dword [esi + 4]
mov dword [0x42c7cc], eax
mov edx, dword [esi + 8]
mov dword [0x42c7d0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x42c7c4], esi
cmp ecx, 2
je 0x40923e
or esi, 0x8000
mov dword [0x42c7c4], esi
shl eax, 8
add eax, edx
mov dword [0x42c7c8], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x409277
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409277
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40928f
cmp eax, 0x20b
je 0x40927c
mov dword [ebp - 0x1c], edi
jmp 0x4092a3
cmp dword [ecx + 0x84], 0xe
jbe 0x409277
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x40929d
cmp dword [ecx + 0x74], 0xe
jbe 0x409277
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040ce06
pop ecx
test eax, eax
jne 0x4092b7
push 0x1c
call fcn.004091ba
pop ecx
call fcn.0040b75c
test eax, eax
jne 0x4092c8
push 0x10
call fcn.004091ba
pop ecx
call fcn.0040f11e
mov dword [ebp - 4], edi
call fcn.0040ef20
test eax, eax
jge 0x4092e1
push 0x1b
call fcn.00409195
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x42e1c0], eax
call fcn.0040edfe
mov dword [0x42c7a0], eax
call fcn.0040ed5c
test eax, eax
jge 0x409307
push 8
call fcn.00409195
pop ecx
call fcn.0040eb29
test eax, eax
jge 0x409318
push 9
call fcn.00409195
pop ecx
push 1
call fcn.0040b33a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x40932e
push eax
call fcn.00409195
pop ecx
mov eax, dword [0x42c7e0]
mov dword [0x42c7e4], eax
push eax
push dword [0x42c7d8]
push dword [0x42c7d4]
call fcn.004038a0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x40935d
push esi
call fcn.0040b467
call fcn.0040b489
jmp 0x40938f
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0040a3b7
ret
Function at 0x40b3a4
Capabilities:
Terminate process

Disassembly:
push 8
push 0x421e88
call fcn.0040a37c
push 8
call fcn.0040cdbb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42c800], esi
jne 0x40b3d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x42c7fc], esi
mov al, byte [ebp + 0x10]
mov byte [0x42c7f8], al
cmp dword [ebp + 0xc], edi
jne 0x40b422
cmp dword [0x42df70], edi
je 0x40b412
mov eax, dword [0x42df6c]
sub eax, 4
mov dword [0x42df6c], eax
cmp eax, dword [0x42df70]
jb 0x40b412
mov eax, dword [eax]
cmp eax, edi
je 0x40b3f3
call eax
jmp 0x40b3f3
push 0x42809c
mov eax, 0x428094
call fcn.0040b322
pop ecx
push 0x4280a8
mov eax, 0x4280a0
call fcn.0040b322
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40b453
cmp dword [ebp + 0x10], edi
jne 0x40b461
mov dword [0x42c800], esi
push dword [ebp + 8]
call fcn.0040b2e0
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40b460
push 8
call fcn.0040cd06
pop ecx
ret
call fcn.0040a3b7
ret