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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4339bd
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x441040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cmp esi, edi
je 0x40c356
nop dword [eax + eax]
cmp dword [esi + 0x1c], 7
lea eax, [esi + 8]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
jbe 0x40c1da
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 0x10]
add ecx, ecx
mov ebx, 0x811c9dc5
mov dword [ebp - 0x18], ecx
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
jbe 0x40c20b
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp ecx, edi
jb 0x40c1f1
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
mov edx, dword [ebp - 0x10]
push ebx
push eax
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
call fcn.0040c0d0
cmp dword [ebp - 0x20], 0
jne 0x40c345
mov edi, dword [ebp - 0x10]
cmp dword [edi + 8], 0x5555555
je 0x40c36a
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x30
mov dword [ebp - 0x28], 0
call fcn.00413d8a
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push dword [ebp - 0x1c]
lea eax, [esi + 8]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.00406840
mov eax, dword [ebp - 0x1c]
lea ecx, [esi + 0x20]
add eax, 0x18
mov byte [ebp - 4], 1
push eax
mov dword [ecx], 0
call fcn.004097d0
mov dword [ebp - 4], 2
mov eax, dword [edi + 8]
inc eax
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x43d7a0]
mov eax, dword [edi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x43d7a0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [edi]
seta al
test al, al
je 0x40c2ee
mov ecx, edi
call fcn.0040baa0
push ebx
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0040c0d0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], eax
jmp 0x40c2f1
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
inc dword [edi + 8]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x18]
and eax, ebx
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ecx + eax*8]
cmp edi, dword [ebx]
jne 0x40c322
mov dword [ecx + eax*8], esi
jmp 0x40c334
cmp edi, edx
jne 0x40c32b
mov dword [ecx + eax*8], esi
jmp 0x40c338
mov edx, dword [ebp - 0x1c]
cmp dword [ecx + eax*8 + 4], edx
jne 0x40c338
mov dword [ecx + eax*8 + 4], esi
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov dword [ebp + 8], esi
cmp esi, edi
je 0x40c356
mov edx, dword [ebp - 0x10]
jmp 0x40c1c0
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
push str.unordered_map_set_too_long
call fcn.00411aca
int3
Function at 0x40d090
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
mov eax, dword [0x441040]
xor eax, esp
mov dword [esp + 0x44], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 8], ecx
mov ecx, edx
push esi
push edi
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x30], 0
lea esi, [ecx + 2]
mov dword [esp + 0x34], 0
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d0d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x28]
call fcn.004074e0
cmp dword [esp + 0x34], 7
lea esi, [esp + 0x20]
mov edi, dword [esp + 0x20]
mov edx, 0x811c9dc5
mov eax, dword [esp + 0x30]
cmova esi, edi
xor ecx, ecx
add eax, eax
je 0x40d125
mov edi, eax
nop dword [eax + eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40d110
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [ecx + 0x24]
call fcn.0040c0d0
mov esi, dword [eax + 4]
test esi, esi
jne 0x40d14a
mov esi, dword [esp + 0x10]
mov esi, dword [esi + 0x28]
mov eax, dword [esp + 0x34]
cmp eax, 7
jbe 0x40d17e
lea ecx, [eax*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x40d174
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d19d
push ecx
push edi
call fcn.00413ed4
add esp, 8
mov eax, dword [esp + 0x10]
cmp esi, dword [eax + 0x28]
je 0x40d1a2
mov ecx, dword [esp + 0x4c]
lea eax, [esi + 0x20]
pop edi
pop esi
xor ecx, esp
call fcn.00413d77
mov esp, ebp
pop ebp
ret 8
call fcn.00418ada
push str.RxCmd::Parser::GetValue:_Not_Cmd_Find_
lea ecx, [esp + 0x18]
call fcn.00401250
push 0x440674
lea eax, [esp + 0x18]
push eax
call fcn.00415440
int3
Function at 0x40d8e0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433b1d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x441040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
mov dword [esi + 4], 1
call fcn.0040d7d0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x40d9ac
test bl, 1
je 0x40d9e8
xor edi, edi
mov dword [ebp + 0xc], 0
push edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 4]
sub eax, 1
je 0x40d988
sub eax, 1
jne 0x40d99d
cmp word [ebp + 0xc], 0xfeff
jne 0x40d99d
push eax
push eax
mov edi, 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40d9e8
mov eax, dword [ebp + 0xc]
mov ecx, 3
and eax, 0xffffff
cmp eax, 0xbfbbef
cmove edi, ecx
push 0
push 0
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x40d9e8
test bl, 2
je 0x40d9e8
mov eax, dword [esi + 4]
sub eax, 1
je 0x40d9cc
sub eax, 1
jne 0x40d9e8
push eax
lea eax, [ebp + 0xc]
push eax
push 2
push 0x43d680
jmp 0x40d9d9
push 0
lea eax, [ebp + 0xc]
push eax
push 3
push 0x43d67c
push dword [esi]
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40da00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433b4d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x441040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
mov eax, ecx
sub eax, 0
je 0x40da73
sub eax, 1
je 0x40da73
sub eax, 1
je 0x40da46
xor eax, eax
jmp 0x40db0f
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push 0
push ecx
add eax, eax
mov dword [ebp - 0x2c], 0
push eax
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ecx, ecx
test eax, eax
cmovne ecx, dword [ebp - 0x2c]
mov eax, ecx
jmp 0x40db0f
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
xor eax, eax
push dword [ebp + 0xc]
cmp ecx, 1
mov edx, 0xfde9
push dword [ebp + 8]
cmovne edx, eax
lea ecx, [ebp - 0x28]
call fcn.0040df20
add esp, 8
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push 0
push ecx
push dword [ebp - 0x18]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x14]
xor esi, esi
test eax, eax
cmovne esi, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40db0d
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40db03
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40db2b
push ecx
push edx
call fcn.00413ed4
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413d77
mov esp, ebp
pop ebp
ret 8
call fcn.00418ada
int3
Function at 0x40db40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ebp, ecx
push 1
push 0
push 0
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push dword [ebp]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 4]
mov ebx, eax
sub ebx, esi
sub ecx, 0
je 0x40dbd5
sub ecx, 1
je 0x40dbd5
sub ecx, 1
jne 0x40dc29
mov ecx, dword [edi + 0x10]
mov eax, ebx
shr eax, 1
cmp eax, ecx
ja 0x40dba0
cmp dword [edi + 0x14], 7
mov ecx, edi
jbe 0x40db95
mov ecx, dword [edi]
xor edx, edx
mov dword [edi + 0x10], eax
mov word [ecx + eax*2], dx
jmp 0x40dbac
sub eax, ecx
mov ecx, edi
push 0
push eax
call fcn.0040b400
cmp dword [edi + 0x14], 7
jbe 0x40dbb4
mov edi, dword [edi]
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push ebx
push edi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
pop edi
pop esi
pop ebp
pop ebx
ret 4
lea eax, [ebx + 1]
push eax
call fcn.004141ca
add esp, 4
mov dword [esp + 0x14], 0
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
push ebx
push esi
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [esi + ebx], 0
xor eax, eax
cmp dword [ebp + 4], 1
mov edx, 0xfde9
mov ecx, edi
cmovne edx, eax
sub esp, 8
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], ebx
call fcn.0040de40
push esi
call fcn.00413d85
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x40dc30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433ba6
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x441040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
xor ebx, ebx
mov eax, esi
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0x14], 7
jbe 0x40dc6e
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x30]
push eax
call fcn.0040d6f0
add esp, 8
cmp dword [eax + 4], ebx
je 0x40dca3
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040d790
mov dword [ebp - 4], 0
mov ebx, 1
mov ecx, eax
mov dword [ebp - 0x2c], ebx
call fcn.00404090
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40dce9
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x40dce9
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dcdf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ddb3
push ecx
push edx
call fcn.00413ed4
add esp, 8
mov dword [ebp - 0x2c], 0
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
call fcn.00406840
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0x80
push 2
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 7
jbe 0x40dd5c
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40dd52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ddb8
push ecx
push edx
call fcn.00413ed4
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
cmp esi, 0xffffffff
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmove esi, eax
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x40ddbd
push eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413d77
mov esp, ebp
pop ebp
ret
call fcn.00418ada
call fcn.00418ada
push str.Create_File_Error_
lea ecx, [ebp - 0x3c]
call fcn.00401250
push 0x440674
lea eax, [ebp - 0x3c]
push eax
call fcn.00415440
int3

Function at 0x4118fe
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x411925
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x411928
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004118da
pop esi
leave
ret 8
Function at 0x412df5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x412e16
jl 0x412e0d
test edi, edi
jne 0x412e16
xor eax, eax
xor edx, edx
jmp 0x412ed7
cmp dword [ebx + 0x38], 0
je 0x412e2b
push eax
push edi
push dword [ebp + 8]
call fcn.00412edd
jmp 0x412ed7
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x412e72
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x412e72
cmp eax, edi
jb 0x412e4c
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004154c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x412e78
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x412ecc
mov ecx, ebx
call fcn.0041268c
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x412eb7
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00420395
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x412ecc
jmp 0x412e8a
test edx, edx
je 0x412ecc
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00420395
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x414c3f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x414c7e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x414c7e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x414c7e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x414c7e
cmp dword [ecx + 0x74], 0xe
jbe 0x414c7e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4264e3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439170
push 0x439168
push str.FlsAlloc
push 0x1f
call fcn.0042636d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426517
push dword [ebp + 8]
mov ecx, esi
call dword [0x435158]
call esi
jmp 0x42651d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x426561
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439180
push 0x439178
push str.FlsGetValue
push 0x21
call fcn.0042636d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x426598
push dword [ebp + 8]
mov ecx, esi
call dword [0x435158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4265a0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x439188
push 0x439180
push str.FlsSetValue
push 0x22
call fcn.0042636d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4265da
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x435158]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x427cb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00414d50
mov eax, dword [0x441040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0042553b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x427cf8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x427e54
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004326b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x442ab0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00428cb3
mov ecx, dword [esi*4 + 0x442ab0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x427e4d
cmp eax, dword [ecx + edi + 0x24]
jne 0x427e4d
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427e4d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00428cb3
add esp, 0x14
test edx, edx
jl 0x427e4d
jg 0x427dc3
test eax, eax
jb 0x427e4d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x427e4d
jl 0x427ddd
cmp dword [ebp - 0x1008], eax
ja 0x427e4d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x427dfb
test ebx, ebx
je 0x427e34
cmp ecx, edi
jae 0x427e34
mov al, byte [ecx]
cmp al, 0xd
jne 0x427e15
lea eax, [edi - 1]
cmp ecx, eax
jae 0x427e21
cmp byte [ecx + 1], 0xa
jne 0x427e21
inc ecx
jmp 0x427e21
movzx eax, al
movsx eax, byte [eax + 0x4412f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x427dfb
cmp edx, ebx
jne 0x427dfb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x427e52
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00413d77
leave
ret
Function at 0x42814b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x442ab0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42818b
cmp byte [ebx], 0xa
jne 0x42818b
or byte [edi + eax + 0x28], 4
jmp 0x428190
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42828f
mov dl, byte [eax]
cmp dl, 0x1a
je 0x428272
inc eax
cmp dl, 0xd
je 0x4281bc
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4281e2
cmp eax, ecx
jae 0x4281f0
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4281a4
jmp 0x42828f
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42826d
cmp dword [ebp - 0x10], 0
je 0x42826d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x442ab0]
test byte [eax + edi + 0x28], 0x48
je 0x428247
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x428232
mov byte [esi], dl
jmp 0x428243
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442ab0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42828f
cmp byte [ebp - 1], 0xa
jne 0x428256
cmp esi, ebx
jne 0x428256
mov byte [esi], 0xa
jmp 0x42828e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00428cd1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42828f
mov byte [esi], 0xd
jmp 0x42828e
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x442ab0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42828c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42828f
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x428298
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x442ab0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4282de
cmp word [ebx], dx
jne 0x4282de
or byte [eax + edi + 0x28], 4
jmp 0x4282e3
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x428446
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x428426
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x428324
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42835a
cmp eax, edx
jae 0x428368
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4282ff
jmp 0x428446
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x428421
cmp dword [ebp - 0x18], 0
je 0x428421
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x442ab0]
test byte [eax + edi + 0x28], 0x48
je 0x4283f7
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4283bb
mov word [esi], cx
jmp 0x4283f2
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x442ab0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x442ab0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x442ab0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x428446
pop eax
cmp word [ebp - 4], ax
jne 0x428407
cmp esi, ebx
jne 0x428407
mov word [esi], ax
jmp 0x428443
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00428cd1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x428446
push 0xd
pop eax
jmp 0x428402
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x442ab0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x428440
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x428446
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret