joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026e00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10026e32
jl 0x10026e25
test ecx, ecx
jne 0x10026e32
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10026ef2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10003ec0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10026e9e
jg 0x10026e5d
test esi, esi
je 0x10026e9e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10026e75
mov eax, dword [esp + 0x10]
jl 0x10026e6f
cmp eax, esi
jae 0x10026e75
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10039490
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10026ebf
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10026edb
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10026e44
jl 0x10026edb
test ecx, ecx
jne 0x10026e44
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov esi, dword [ebp + 0x10]
sbb esi, edx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10026f30
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10026f30
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.10039490
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10026f99
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10026f56
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10026f84
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100441d6
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10026f99
cmp edi, eax
ja 0x10026f62
test edi, edi
je 0x10026f99
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100441d6
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10028350
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10061ce2
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x1028
call fcn.10038dd0
mov eax, dword [0x1007c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1038], edi
mov dword [ebp - 0x101c], 1
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 0xf
mov dword [ebp - 0x101c], 1
jbe 0x100283e7
mov eax, dword [esi]
push eax
push 0x1000
lea eax, [ebp - 0x1018]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
test eax, eax
jne 0x10028450
mov edx, str.Failed_to_read_INI_file:
mov ecx, 0x100822e8
call fcn.10004f20
cmp dword [esi + 0x14], 0xf
mov ecx, dword [esi + 0x10]
jbe 0x10028418
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.1000afd0
add esp, 4
push eax
call fcn.100051c0
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10037c60
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
cmp byte [ebp - 0x1018], 0
lea esi, [ebp - 0x1018]
je 0x1002842e
nop
mov ecx, esi
mov dword [ebp - 0x1024], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1020], 0
movups xmmword [ebp - 0x1034], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10028483
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1034]
call fcn.100054b0
mov dword [ebp - 4], 1
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x100284d1
movups xmm0, xmmword [ebp - 0x1034]
mov ecx, 0xf
mov byte [ebp - 0x1034], 0
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1024]
movq qword [eax + 0x10], xmm0
add dword [edi + 4], 0x18
jmp 0x100284e6
lea ecx, [ebp - 0x1034]
push ecx
push eax
mov ecx, edi
call fcn.10030cc0
mov ecx, dword [ebp - 0x1020]
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x1002851a
mov edx, dword [ebp - 0x1034]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10028510
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10028539
push ecx
push edx
call fcn.10037ca8
add esp, 8
mov eax, esi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10028520
sub eax, edx
inc esi
add esi, eax
cmp byte [esi], cl
jne 0x10028460
jmp 0x1002842e
call fcn.1003ef14
int3
Function at 0x100322a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100623f8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x28
push esi
push edi
mov eax, dword [0x1007c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edi, [ebx + 0xc]
mov esi, dword [ebx + 0x20]
lea eax, [ecx + 0x60]
cmp esi, 0xf
mov dword [ebp - 0x14], eax
mov edx, 0x811c9dc5
cmova edi, dword [ebx + 0xc]
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x10032316
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebx + 0x1c]
jb 0x10032301
mov eax, dword [ebp - 0x14]
push edx
lea ecx, [ebx + 0xc]
push ecx
lea ecx, [ebp - 0x34]
push ecx
mov ecx, eax
call fcn.10007c90
cmp dword [eax + 4], 0
je 0x100323b8
mov eax, dword [0x1008313c]
lea ecx, [ebp - 0x2c]
push 0xe
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
push str.SetSliderValue
mov esi, dword [eax + 0xc]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.100054b0
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.10007450
mov ecx, dword [ebp - 0x14]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
lea eax, [ebx + 0xc]
push eax
call fcn.100338e0
push dword [ebx + 8]
xor edx, edx
mov ecx, dword [eax]
call esi
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x100323b5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100323ab
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100323fb
push ecx
push edx
call fcn.10037ca8
add esp, 8
mov esi, dword [ebx + 0x20]
cmp esi, 0xf
jbe 0x100323e5
mov ecx, dword [ebx + 0xc]
inc esi
mov eax, ecx
cmp esi, 0x1000
jb 0x100323db
mov ecx, dword [eax - 4]
add esi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032400
push esi
push ecx
call fcn.10037ca8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x1c
call fcn.1003ef14
call fcn.1003ef14
int3
Function at 0x10032410
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006242d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1007c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea edi, [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
lea eax, [ecx + 0x20]
mov esi, dword [ebp + 0xc]
cmp ebx, 0xf
mov dword [ebp - 0x14], eax
mov edx, 0x811c9dc5
cmova edi, esi
xor ecx, ecx
cmp dword [ebp + 0x1c], ecx
jbe 0x10032475
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, dword [ebp + 0x1c]
jb 0x10032460
mov eax, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.10007c90
cmp dword [eax + 4], 0
je 0x100324a8
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
call fcn.100338e0
mov ecx, dword [eax]
mov al, byte [ebp + 8]
mov byte [ecx + 0x108], al
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
cmp ebx, 0xf
jbe 0x100324d4
lea ecx, [ebx + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x100324ca
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100324e8
push ecx
push esi
call fcn.10037ca8
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
call fcn.1003ef14
int3

Function at 0x100324f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006245d
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1007c080]
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 esi, dword [ebp + 8]
lea eax, [ebp + 0x28]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x24]
lea eax, [ebp - 0x210]
push 0x1ff
push eax
call fcn.10017e10
mov ebx, dword [ebp + 0x1c]
lea eax, [esi + 0xc0]
mov esi, dword [ebp + 0xc]
lea edi, [ebp + 0xc]
add esp, 0x10
mov dword [ebp - 0x214], eax
cmp dword [ebp + 0x20], 0xf
mov edx, 0x811c9dc5
cmova edi, esi
xor ecx, ecx
test ebx, ebx
je 0x10032587
nop word [eax + eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x10032570
mov eax, dword [ebp - 0x214]
push edx
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, eax
call fcn.10007c90
cmp dword [eax + 4], 0
je 0x100325c8
mov ecx, dword [ebp - 0x214]
lea eax, [ebp + 0xc]
push eax
call fcn.100338e0
lea ecx, [ebp - 0x210]
push ecx
mov eax, dword [eax]
add eax, 0x60
push eax
call dword [0x1007cbb0]
mov esi, dword [ebp + 0xc]
add esp, 8
mov eax, dword [ebp + 0x20]
cmp eax, 0xf
jbe 0x100325f7
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x100325ed
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10032613
push ecx
push esi
call fcn.10037ca8
add esp, 8
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.10037c60
mov esp, ebp
pop ebp
ret
call fcn.1003ef14
int3
Function at 0x100339d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100626c5
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1007c080]
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 - 0x24], edi
mov dword [ebp - 0x14], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x1c], edx
jbe 0x10033a14
mov eax, dword [edx]
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10033a38
mov edi, dword [ebp - 0x1c]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x10033a23
mov edi, dword [ebp - 0x24]
push esi
push edx
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.10007c90
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10033a68
mov dword [edi], eax
mov eax, edi
mov byte [edi + 4], 0
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
cmp dword [ebx + 8], 0x71c71c7
je 0x10033bc1
lea eax, [ebx + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 4], 0
push 0x24
mov dword [ebp - 0x28], 0
call fcn.10037c73
add esp, 4
mov edi, eax
mov dword [ebp - 0x28], edi
push dword [ebp - 0x14]
lea ecx, [edi + 8]
call fcn.10002f20
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1006f3c0]
mov eax, dword [ebx + 0x1c]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x1006f3c0]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x10033b63
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call fcn.10059500
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.1005ba10
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x10033b47
cmp eax, 0x200
jae 0x10033b45
shl eax, 3
cmp eax, ecx
jae 0x10033b47
mov eax, ecx
push eax
mov ecx, ebx
call fcn.10007840
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.10007c90
mov edx, dword [eax]
jmp 0x10033b66
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov dword [edi + 4], eax
mov dword [edi], edx
mov dword [eax], edi
mov dword [edx + 4], edi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x10033b8e
mov dword [ecx + eax*8], edi
jmp 0x10033ba0
cmp esi, edx
jne 0x10033b97
mov dword [ecx + eax*8], edi
jmp 0x10033ba4
mov edx, dword [ebp - 0x14]
cmp dword [ecx + eax*8 + 4], edx
jne 0x10033ba4
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], edi
mov byte [eax + 4], 1
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.100367f5
int3
Function at 0x10047b71
Capabilities:
Parse pe header

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

Function at 0x1004d63e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10067644
push 0x1006763c
push str.FlsAlloc
push 0x1f
call fcn.1004d469
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004d672
push dword [ebp + 8]
mov ecx, esi
call dword [0x100631bc]
call esi
jmp 0x1004d678
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1004d6bc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10067654
push 0x1006764c
push str.FlsGetValue
push 0x21
call fcn.1004d469
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004d6f3
push dword [ebp + 8]
mov ecx, esi
call dword [0x100631bc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1004d6fb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1006765c
push 0x10067654
push str.FlsSetValue
push 0x22
call fcn.1004d469
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1004d735
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100631bc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1004f588
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10038dd0
mov eax, dword [0x1007c080]
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.10049959
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004f5ca
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004f726
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005b4d0
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 + 0x10082ce0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10050389
mov ecx, dword [esi*4 + 0x10082ce0]
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 0x1004f71f
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004f71f
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 0x1004f71f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10050389
add esp, 0x14
test edx, edx
jl 0x1004f71f
jg 0x1004f695
test eax, eax
jb 0x1004f71f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004f71f
jl 0x1004f6af
cmp dword [ebp - 0x1008], eax
ja 0x1004f71f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004f6cd
test ebx, ebx
je 0x1004f706
cmp ecx, edi
jae 0x1004f706
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004f6e7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004f6f3
cmp byte [ecx + 1], 0xa
jne 0x1004f6f3
inc ecx
jmp 0x1004f6f3
movzx eax, al
movsx eax, byte [eax + 0x1007c4d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004f6cd
cmp edx, ebx
jne 0x1004f6cd
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004f724
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10037c60
leave
ret
Function at 0x1004f821
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 + 0x10082ce0]
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 0x1004f861
cmp byte [ebx], 0xa
jne 0x1004f861
or byte [edi + eax + 0x28], 4
jmp 0x1004f866
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 0x1004f965
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004f948
inc eax
cmp dl, 0xd
je 0x1004f892
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004f8b8
cmp eax, ecx
jae 0x1004f8c6
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 0x1004f87a
jmp 0x1004f965
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 0x1004f943
cmp dword [ebp - 0x10], 0
je 0x1004f943
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10082ce0]
test byte [eax + edi + 0x28], 0x48
je 0x1004f91d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004f908
mov byte [esi], dl
jmp 0x1004f919
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10082ce0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004f965
cmp byte [ebp - 1], 0xa
jne 0x1004f92c
cmp esi, ebx
jne 0x1004f92c
mov byte [esi], 0xa
jmp 0x1004f964
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100503a7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004f965
mov byte [esi], 0xd
jmp 0x1004f964
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10082ce0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004f962
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004f965
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004f96e
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 + 0x10082ce0]
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 0x1004f9b4
cmp word [ebx], dx
jne 0x1004f9b4
or byte [eax + edi + 0x28], 4
jmp 0x1004f9b9
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 0x1004fb1c
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 0x1004fafc
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004f9fa
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004fa30
cmp eax, edx
jae 0x1004fa3e
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 0x1004f9d5
jmp 0x1004fb1c
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 0x1004faf7
cmp dword [ebp - 0x18], 0
je 0x1004faf7
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10082ce0]
test byte [eax + edi + 0x28], 0x48
je 0x1004facd
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 0x1004fa91
mov word [esi], cx
jmp 0x1004fac8
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10082ce0]
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 + 0x10082ce0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10082ce0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004fb1c
pop eax
cmp word [ebp - 4], ax
jne 0x1004fadd
cmp esi, ebx
jne 0x1004fadd
mov word [esi], ax
jmp 0x1004fb19
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100503a7
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004fb1c
push 0xd
pop eax
jmp 0x1004fad8
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10082ce0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004fb16
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004fb1c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret