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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
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 0x40d7d2
jl 0x40d7c5
test ecx, ecx
jne 0x40d7d2
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 0x40d8af
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40d802
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40d804
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x40d858
jg 0x40d815
test esi, esi
je 0x40d858
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x40d829
jl 0x40d823
cmp ecx, esi
jae 0x40d829
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.0046b1f0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40d87c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40d898
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x40d7e7
jl 0x40d898
test ecx, ecx
jne 0x40d7e7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
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 0x40d8ed
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40d8ed
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.0046b1f0
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 0x40d957
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40d913
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 0x40d942
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00477c30
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40d957
cmp edi, eax
ja 0x40d920
test edi, edi
je 0x40d957
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00477c30
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 0x40e040
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b0300]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x34], 0
je 0x40e104
cmp dword [ebp + 8], 0
jne 0x40e114
mov ecx, dword [esi + 0x30]
push edi
call fcn.00407ef0
mov edi, dword [esi + 0x34]
push 0xffffffffffffffff
push 0
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
push dword [edi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov ecx, 0x4b3138
lock xadd dword [ecx], eax
mov ecx, dword [edi + 4]
test eax, eax
push 0
setne al
push ecx
test al, al
je 0x40e0ba
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
jmp 0x40e0d0
push method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_56
call dword [sym.imp.KERNEL32.DLL_QueueUserAPC]
push 0xffffffffffffffff
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edi, dword [esi + 0x34]
test edi, edi
je 0x40e0eb
push dword [edi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xc
push edi
call fcn.004694c5
add esp, 8
pop edi
mov dword [esi + 0x34], 0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00469231
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp + 8], 0
je 0x40e114
mov eax, dword [esi + 0x30]
xor ecx, ecx
add eax, 0x1c
xchg dword [eax], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00469231
mov esp, ebp
pop ebp
ret 4
Function at 0x4109c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491870
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4b0300]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0046923f
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00468632
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00411750
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x420ff0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x421051
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x421034
cmp edi, 2
jb 0x421034
cmp byte [esi], cl
jne 0x421034
cmp byte [esi + 1], cl
jne 0x421034
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x49ee68]
jmp 0x421005
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x49ee68]
test edi, edi
jne 0x421005
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x421080
cmp cl, 0x23
jne 0x421067
cmp byte [esi], cl
jne 0x421067
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x49ee68]
test cl, cl
jne 0x421058
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x421190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4211a3
mov dword [ebx], 0
mov edx, 0x4a4f60
call fcn.00421090
mov esi, eax
test esi, esi
je 0x421280
push esi
call fcn.00478770
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x421277
push 2
push 0
push esi
call fcn.00478015
add esp, 0xc
test eax, eax
jne 0x421277
push esi
call fcn.00478770
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x421277
push 0
push dword [ebp + 8]
push esi
call fcn.00478015
add esp, 0xc
test eax, eax
jne 0x421277
mov eax, dword [0x4b30d0]
test eax, eax
je 0x421216
inc dword [eax + 0xb0]
push edi
call fcn.0047ae50
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x421277
push esi
push edi
push 1
push eax
call fcn.00477c30
add esp, 0x10
push esi
cmp eax, edi
je 0x421261
call fcn.0047694b
mov eax, dword [0x4b30d0]
add esp, 4
test eax, eax
je 0x42124f
dec dword [eax + 0xb0]
push dword [ebp + 8]
call fcn.00477560
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.0047694b
add esp, 4
test ebx, ebx
je 0x42126f
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call fcn.0047694b
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x42f010
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b0300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
lea edx, [ebp - 8]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [0x4b30d0]
push esi
push edi
mov esi, 4
mov edi, dword [eax + 0x3f04]
mov eax, dword [edi + 0xfc]
mov ebx, dword [edi + 0x104]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x49ee68]
sub esi, 1
jne 0x42f050
mov eax, dword [0x4b30d0]
not ebx
cmp dword [eax + 0x3f28], ebx
jne 0x42f08a
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 0xc]
mov ecx, ebx
call fcn.004404a0
add esp, 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea ecx, [edi + 0xfc]
call fcn.004406a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469231
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b0300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
lea edx, [ebp - 8]
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [0x4b30d0]
push esi
push edi
mov esi, 4
mov edi, dword [eax + 0x3f04]
mov eax, dword [edi + 0xfc]
mov ebx, dword [edi + 0x104]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x49ee68]
sub esi, 1
jne 0x42f0f0
mov eax, dword [0x4b30d0]
not ebx
cmp dword [eax + 0x3f28], ebx
jne 0x42f12a
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.004404a0
add esp, 8
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea ecx, [edi + 0xfc]
call fcn.004406a0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469231
mov esp, ebp
pop ebp
ret
Function at 0x435420
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
mov dword [ebp - 4], ecx
push esi
lea esi, [ecx + 1]
push edi
test bl, bl
je 0x435468
or edi, 0xffffffff
nop dword [eax]
cmp bl, 0x23
jne 0x43544f
cmp byte [esi], bl
jne 0x43544f
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x49ee68]
test bl, bl
jne 0x435440
mov ebx, dword [0x4b30d0]
not eax
mov edi, dword [ebx + 0x5390]
mov esi, edi
neg esi
sbb esi, esi
lea ecx, [edi + 4]
and esi, ecx
je 0x4354a2
cmp dword [esi], eax
je 0x4354b1
mov edx, dword [esi - 4]
mov ecx, dword [ebx + 0x5388]
add edx, esi
add ecx, 4
xor esi, esi
add ecx, edi
cmp edx, ecx
cmovne esi, edx
test esi, esi
jne 0x435483
mov ecx, dword [ebp - 4]
call fcn.00435340
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4354a2
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4354c0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x4b30d0]
test bl, bl
je 0x435506
or edi, 0xffffffff
cmp bl, 0x23
jne 0x4354e7
cmp byte [esi], bl
jne 0x4354e7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x49ee68]
test bl, bl
jne 0x4354d8
mov edi, dword [0x4b30d0]
mov esi, dword [edi + 0x537c]
xor ecx, ecx
not eax
test esi, esi
jle 0x43552c
mov edi, dword [edi + 0x5384]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x435532
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x435520
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x449710
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x449746
mov eax, dword [0x4b30d0]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x449736
dec dword [eax + 0xb0]
push ecx
call fcn.00477560
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x44977a
mov eax, dword [0x4b30d0]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x44976a
dec dword [eax + 0xb0]
push ecx
call fcn.00477560
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4497ae
mov eax, dword [0x4b30d0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x44979e
dec dword [eax + 0xb0]
push ecx
call fcn.00477560
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x4497fe
mov eax, dword [0x4b30d0]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x4497ee
dec dword [eax + 0xb0]
push ecx
call fcn.00477560
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x449832
mov eax, dword [0x4b30d0]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x449822
dec dword [eax + 0xb0]
push ecx
call fcn.00477560
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x449866
mov eax, dword [0x4b30d0]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x449856
dec dword [eax + 0xb0]
push ecx
call fcn.00477560
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0044c050
Function at 0x463700
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4b0300]
xor eax, esp
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_AllocConsole]
test eax, eax
jne 0x463732
call dword [sym.imp.KERNEL32.DLL_FreeConsole]
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
call dword [sym.imp.KERNEL32.DLL_AllocConsole]
push str.Debug
call dword [sym.imp.KERNEL32.DLL_SetConsoleTitleA]
push 0
call fcn.00476dd3
add esp, 4
push eax
push 0x4a5c70
lea eax, [esp + 0xc]
push str.conin_
push eax
call fcn.0047af63
push 1
call fcn.00476dd3
add esp, 0x14
push eax
push 0x4a5c7c
lea eax, [esp + 0x10]
push str.conout_
push eax
call fcn.0047af63
add esp, 0x10
call fcn.0040cd70
call fcn.00464770
mov ecx, dword [esp + 0xc]
xor eax, eax
xor ecx, esp
call fcn.00469231
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46a3e0
Capabilities:
Parse pe header

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

Function at 0x478500
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.0046a630
mov eax, dword [0x4b0300]
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.0048108f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x478542
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4786b9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0048e8e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4b2d38]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004845c1
mov ecx, dword [esi*4 + 0x4b2d38]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4786b2
cmp eax, dword [edi + ecx + 0x24]
jne 0x4786b2
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x4786b2
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004845c1
add esp, 0x14
cmp edx, esi
jl 0x4786b2
jg 0x47860d
cmp eax, esi
jb 0x4786b2
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4786b2
jl 0x47862f
cmp dword [ebp - 0x1008], eax
ja 0x4786b2
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x478654
cmp ebx, esi
je 0x478699
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x478699
mov al, byte [ecx]
cmp al, 0xd
jne 0x47867a
lea eax, [edi - 1]
cmp ecx, eax
jae 0x478686
cmp byte [ecx + 1], 0xa
jne 0x478686
inc ecx
jmp 0x478686
movzx eax, al
movsx eax, byte [eax + 0x4b05d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x478660
cmp edx, ebx
jne 0x478660
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4786b7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00469231
leave
ret
Function at 0x481c43
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x481c5d
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x481c74
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x481ccc
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00487762
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x481ccc
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x481ccc
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
je 0x481ccc
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x481cc6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x481cc8
xor bl, bl
mov al, bl
jmp 0x481cce
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x483a4d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4b2d38]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x483a8f
cmp byte [ebx], 0xa
jne 0x483a8f
or byte [edi + eax + 0x28], 4
jmp 0x483a94
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x483b97
mov cl, byte [eax]
cmp cl, 0x1a
je 0x483b72
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x483ac3
mov eax, dword [ebp - 8]
jmp 0x483ae3
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x483aff
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x483add
add eax, 2
mov cl, 0xa
jmp 0x483ae0
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x483aa5
jmp 0x483b97
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 0x483b6d
cmp dword [ebp - 0x10], 0
je 0x483b6d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x4b2d38]
test byte [eax + edi + 0x28], 0x48
je 0x483b4c
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x483b3c
mov byte [esi], 0xa
jmp 0x483b96
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x4b2d38]
mov byte [eax + edi + 0x2a], cl
jmp 0x483b96
cmp byte [ebp - 1], 0xa
jne 0x483b56
cmp esi, ebx
je 0x483b37
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004845df
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x483b97
mov byte [esi], 0xd
jmp 0x483b96
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x4b2d38]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x483b94
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x483b97
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x483ba0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x4b2d38]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x483be4
push 0xa
pop esi
cmp word [ebx], si
jne 0x483be4
or byte [eax + edi + 0x28], 4
jmp 0x483be9
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x483d54
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x483d2c
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x483c36
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x483c60
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x483c7f
push 0xa
pop ebx
cmp word [edx], bx
jne 0x483c4d
push ebx
add eax, 4
pop edx
jmp 0x483c55
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x483bfb
jmp 0x483d54
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x483d27
cmp dword [ebp - 0x14], 0
je 0x483d27
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x4b2d38]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x483d03
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x483ccb
mov word [esi], ax
jmp 0x483d51
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x4b2d38]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4b2d38]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4b2d38]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x483d51
cmp word [ebp - 4], ax
jne 0x483d0d
cmp esi, ebx
je 0x483cc3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004845df
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x483d54
push 0xd
pop eax
jmp 0x483cc3
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x4b2d38]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x483d4e
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x483d54
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret