joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007f520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afd9d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100ca040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x1007f62c
nop
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x1007f5a3
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x1007f591
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1002a680
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x1007f5bd
cmp edi, 0xf
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x1007f5ca
sub ecx, edx
push 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.10038370
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmova eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
xor eax, eax
test edx, edx
je 0x1007f604
mov esi, dword [ebp - 0x34]
nop dword [eax]
movzx ecx, byte [eax + esi]
inc eax
xor ecx, edi
imul edi, ecx, 0x1000193
cmp eax, edx
jb 0x1007f5f0
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x1007f614
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1007f627
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x1007f62c
mov edi, dword [ebp - 0x14]
jmp 0x1007f580
mov esi, dword [esi + 0x18]
jmp 0x1007f62e
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x1007f666
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x1007f65c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1007f65c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100ace57
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ac9dc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10081110
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x1008113b
push 0
push 0
push 0
push 0x10034dd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1008113b
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x100a9bf0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor edx, eax
movzx eax, byte [esi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [esi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
lea eax, [ebp - 8]
imul ebx, ecx, 0x1000193
mov ecx, edi
push ebx
push esi
push eax
call fcn.10046a50
mov edx, dword [eax + 4]
test edx, edx
je 0x100a9c97
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0xc]
and ecx, ebx
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x100a9c6c
cmp eax, edx
jne 0x100a9c64
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x100a9c74
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x100a9c74
cmp eax, edx
jne 0x100a9c74
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [edi + 8]
mov eax, dword [edx + 4]
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.1002b8e0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100a9d90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x1c
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
cmp edx, edi
jne 0x100a9dae
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
mov esi, dword [ebx + 0xc]
mov dword [ebp - 0x1c], esi
xor ecx, eax
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [esi + eax*8]
mov dword [ebp - 0x10], ecx
lea eax, [esi + eax*8]
mov esi, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
call fcn.1002b8e0
dec dword [ebx + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
je 0x100a9e3e
nop dword [eax]
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x100a9e4d
mov edx, esi
mov esi, dword [esi]
call fcn.1002b8e0
dec dword [ebx + 8]
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x18], eax
jne 0x100a9e20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
cmp dword [ebp - 0x10], eax
jne 0x100a9e6d
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
jmp 0x100a9e70
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x100a9e5a
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov dword [ecx + 4], eax
cmp esi, edi
je 0x100a9e5a
nop word [eax + eax]
movzx eax, byte [esi + 8]
mov edx, esi
xor eax, 0x811c9dc5
mov edi, esi
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
mov esi, dword [esi]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebp - 0x1c]
and eax, dword [ebx + 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 0x10], eax
mov eax, dword [eax + 4]
mov dword [ebp + 8], eax
call fcn.1002b8e0
dec dword [ebx + 8]
cmp edi, dword [ebp + 8]
je 0x100a9ef2
mov eax, dword [ebp + 0xc]
mov edi, esi
cmp esi, eax
je 0x100a9f1b
mov edx, esi
mov esi, dword [esi]
call fcn.1002b8e0
dec dword [ebx + 8]
cmp edi, dword [ebp + 8]
jne 0x100a9ed8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp esi, edi
jne 0x100a9e80
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov dword [esi + 4], eax
mov eax, edi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100aa490
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ca040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.10046a50
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100aa51a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100aa660
cmp dword [ebx + 8], 0xfffffff
jne 0x100aa52e
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100ac9f8
mov ecx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [ecx]
mov dword [esi + 8], ecx
mov byte [esi + 0xc], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100bfd90]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100bfd90]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100aa613
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.100adc70
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100aa5f5
cmp eax, 0x200
jae 0x100aa5f3
shl eax, 3
cmp eax, ecx
jae 0x100aa5f5
mov eax, ecx
push eax
mov ecx, ebx
call fcn.100468e0
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10046a50
mov edx, dword [eax]
jmp 0x100aa616
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100aa641
mov dword [ecx + eax*8], esi
jmp 0x100aa653
cmp ebx, edx
jne 0x100aa64a
mov dword [ecx + eax*8], esi
jmp 0x100aa657
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100aa657
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x100aab20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b6bb5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ca040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.10046a50
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100aabaa
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x100aacf2
cmp dword [ebx + 8], 0xfffffff
jne 0x100aabbe
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.100ac9f8
mov edx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0x1c]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x100bfd90]
mov eax, ecx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x100bfd90]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x100aaca5
divss xmm2, xmm3
sub esp, 8
movss dword [ebp - 0x10], xmm2
fld dword [ebp - 0x10]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
add esp, 8
fstp dword [ebp - 0x10]
movss xmm0, dword [ebp - 0x10]
call fcn.100adc70
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x100aac87
cmp eax, 0x200
jae 0x100aac85
shl eax, 3
cmp eax, ecx
jae 0x100aac87
mov eax, ecx
push eax
mov ecx, ebx
call fcn.100468e0
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10046a50
mov edx, dword [eax]
jmp 0x100aaca8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x100aacd3
mov dword [ecx + eax*8], esi
jmp 0x100aace5
cmp ebx, edx
jne 0x100aacdc
mov dword [ecx + eax*8], esi
jmp 0x100aace9
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x100aace9
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x638108ba
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4924d47
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4018e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov edi, eax
push edi
call fcn.00462b0c
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
mov esi, eax
lea eax, [esp + 0xc]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401939
mov eax, dword [esp + 8]
cmp eax, edi
jne 0x401939
push 0
lea edx, [esp + 0x10]
push edx
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call fcn.004627b8
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret
push esi
xor edi, edi
call fcn.004627b8
add esp, 4
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x401fd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x40
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402038
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00462160
add esp, 8
test eax, eax
jne 0x402038
mov eax, dword [esp + 0x24]
push 0
lea ecx, [esp + 0xc]
push ecx
add eax, 0xfffffffc
push eax
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40203f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
add esp, 0x40
ret
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x402032
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
add esp, 0x40
ret
Function at 0x405840
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x47cee8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x536400]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.00403b60
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x405894
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00404620
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.00403b60
cmp dword [esp + 0x24], 8
jb 0x4058da
mov eax, dword [esp + 0x10]
push eax
call fcn.00462679
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x40a6d0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x47799c
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x536400]
xor eax, esp
push eax
lea eax, [esp + 0xdc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x10], 0xdb
je 0x40a70c
mov byte [0], 0x78
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x40a726
cmp byte [esi + 0x11], bl
jne 0x40a723
push eax
call fcn.00462679
add esp, 4
mov dword [esi + 0x14], ebx
lea ecx, [esp + 0x54]
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov byte [esi + 0x11], bl
call fcn.00406b00
mov eax, dword [esp + 0xec]
push eax
lea ecx, [esp + 0x58]
mov dword [esp + 0xe8], ebx
call fcn.00406e60
lea ecx, [esp + 0x1c]
call fcn.0042bd20
mov ebp, dword [esp + 0xf0]
push ebp
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x28]
push eax
mov byte [esp + 0xf4], 1
call fcn.0041c830
add esp, 0x10
test al, al
je 0x40a7da
mov ecx, dword [esp + 0x20]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a806
cmp ebp, ebx
je 0x40a7da
lea ecx, [esp + 0x2c]
call fcn.004089c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 2
call fcn.00409ae0
mov esi, dword [ebp]
lea ecx, [esp + 0x2c]
call fcn.0040a520
mov edx, dword [esi + 0x10]
push eax
mov ecx, ebp
call edx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 1
call fcn.00408bf0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0
call fcn.0042bd80
lea ecx, [esp + 0x54]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00406bc0
xor al, al
jmp 0x40a91d
cmp edi, ebx
jne 0x40a836
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0
call fcn.0042bd80
lea ecx, [esp + 0x54]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00406bc0
mov al, 1
jmp 0x40a91d
lea ebx, [edi + 4]
push ebx
call fcn.00462aa2
add esp, 4
test eax, eax
mov dword [esi + 0x14], eax
jne 0x40a871
test ebp, ebp
je 0x40a7da
mov eax, dword [ebp]
mov edx, dword [eax + 0x10]
push str.Out_of_memory_when_loading_Unicode_file_into_data_buffer.
mov ecx, ebp
call edx
mov eax, dword [ebp]
mov edx, dword [eax + 0x2c]
push edi
push str.fileSize
mov ecx, ebp
call edx
jmp 0x40a7da
push ebx
push 0
push eax
call fcn.00463870
mov edx, dword [esi + 0x14]
add esp, 0xc
push ebp
lea eax, [esp + 0x1b]
push eax
lea ecx, [esp + 0x20]
push ecx
push edi
push edx
lea ecx, [esp + 0x30]
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x2c], 0
call fcn.0042c260
test al, al
mov bl, 1
jne 0x40a8ee
test ebp, ebp
je 0x40a8ec
lea ecx, [esp + 0x2c]
call fcn.004089c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], 3
call fcn.00409ae0
mov esi, dword [ebp]
lea ecx, [esp + 0x2c]
call fcn.0040a520
push eax
mov eax, dword [esi + 0x10]
mov ecx, ebp
call eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xe4], bl
call fcn.00408bf0
xor bl, bl
cmp dword [esp + 0x18], edi
je 0x40a8f6
xor bl, bl
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe4], 0
call fcn.0042bd80
lea ecx, [esp + 0x54]
mov dword [esp + 0xe4], 0xffffffff
call fcn.00406bc0
mov al, bl
mov ecx, dword [esp + 0xdc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 8
Function at 0x40dc80
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477af0
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebp
push esi
push edi
mov eax, dword [0x536400]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, ecx
mov esi, dword [esp + 0x80]
cmp byte [esi], 0x78
mov byte [esp + 0x13], 1
jne 0x40dcbe
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
add esi, 1
call fcn.0041e380
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0
call fcn.0040a5a0
mov eax, esi
mov byte [esp + 0x78], 1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40dce5
lea ecx, [esp + 0x80]
push ecx
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x20]
call fcn.0041e970
test eax, eax
je 0x40ddfa
mov ecx, dword [esp + 0x80]
test ecx, ecx
je 0x40ddfa
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.0040ae00
lea ecx, [esp + 0x50]
call fcn.0040a5a0
cmp byte [esp + 0x13], 0
mov byte [esp + 0x78], 2
je 0x40dd6e
lea ecx, [esp + 0x20]
call fcn.00430280
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x80], 3
call fcn.004301c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], 2
call fcn.004302a0
jmp 0x40dd8b
lea ecx, [esp + 0x30]
call fcn.0041f240
push eax
lea ecx, [esp + 0x34]
call fcn.0040a520
push eax
lea ecx, [esp + 0x58]
call fcn.0040b1f0
lea ecx, [esp + 0x50]
call fcn.0040a520
mov esi, eax
test esi, esi
je 0x40ddec
cmp byte [esi], 0x61
mov edi, dword [esp + 0x84]
mov ecx, edi
jne 0x40ddac
push 1
jmp 0x40ddae
push 0
call fcn.0042fa60
add esi, 1
xor al, al
cmp byte [esi], 0x64
jne 0x40ddbf
mov al, 1
add esi, 1
test al, al
je 0x40dddb
cmp byte [esp + 0x88], 0
je 0x40ddec
push edi
push esi
mov ecx, ebp
call fcn.0040dbe0
jmp 0x40ddec
mov ecx, dword [esp + 0x88]
push ecx
push edi
push esi
mov ecx, ebp
call fcn.0040daf0
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 1
call fcn.0040ac60
lea ecx, [esp + 0x30]
mov byte [esp + 0x78], 0
call fcn.0040ac60
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.0041e3a0
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x6c
ret 0xc