joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e46c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, 0x43e32c
call fcn.00405ec4
mov eax, 0x43e5f0
call fcn.0043e16c
test al, al
jne 0x43e5cc
mov eax, 0x43e5f0
call fcn.00407cb0
push 0x43e604
mov ecx, 0x43e618
mov edx, 0x43e62c
mov eax, 0x43e638
call fcn.0043e1f4
mov dl, 1
mov eax, dword [0x40bdbc]
call fcn.00402c14
mov ebx, eax
mov edx, 0x43e644
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e650
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e604
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e664
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e67c
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
push 0
push 0x43e68c
call sub.kernel32.dll_WinExec
jmp 0x43e511
push 1
call sub.kernel32.dll_Sleep
mov eax, 0x43e6a4
call fcn.00407b5c
test al, al
je 0x43e50a
mov eax, 0x43e6bc
call fcn.00407b6c
mov eax, 0x43e6a4
call fcn.00407b6c
mov eax, 0x43e6d8
call fcn.00407b6c
mov eax, 0x43e6f4
call fcn.00407b6c
mov eax, 0x43e714
call fcn.00407b6c
mov eax, 0x43e738
call fcn.00407ccc
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x40]
mov edx, 0x43e750
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e764
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e770
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e764
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov edx, 0x43e788
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x64]
push 0x43e7ac
mov ecx, 0x43e7cc
mov edx, 0x43e62c
mov eax, 0x43e7e8
call fcn.0043e1f4
push 0
push 0x43e7ec
push 0x43e7f8
push 0
call sub.user32.dll_MessageBoxA_1
jmp 0x43e5df
push 0
push 0x43e7ec
push 0x43e818
push 0
call sub.user32.dll_MessageBoxA_1
pop ebx
call fcn.0040377c
add byte [eax], al
add bh, bh
invalid
Function at 0x403bf1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407c48
cmp edx, dword [eax]
je 0x403c13
add eax, 8
inc ecx
cmp eax, 0x407cd8
jl 0x403c04
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407c48]
jne 0x403d41
mov eax, dword [0x408998]
cmp eax, 1
je 0x403d1b
test eax, eax
jne 0x403c44
cmp dword [0x407a34], 1
je 0x403d1b
cmp edx, 0xfc
je 0x403d41
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403c7b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004044b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004045a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403cbe
lea eax, [ebp - 0x1a4]
push eax
call fcn.004045a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406458
push edi
call fcn.004049e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004044b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004044c0
lea eax, [ebp - 0xa0]
push 0x406438
push eax
call fcn.004044c0
push dword [esi + 0x407c4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004044c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404955
add esp, 0x2c
pop edi
jmp 0x403d41
lea eax, [ebp + 8]
lea esi, [esi + 0x407c4c]
push 0
push eax
push dword [esi]
call fcn.004045a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40af50
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 0x40af82
jl 0x40af75
test ecx, ecx
jne 0x40af82
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 0x40b05f
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 0x40afb2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40afb4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x40b008
jg 0x40afc5
test esi, esi
je 0x40b008
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x40afd9
jl 0x40afd3
cmp ecx, esi
jae 0x40afd9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00432cb0
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 0x40b02c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x40b048
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 0x40af97
jl 0x40b048
test ecx, ecx
jne 0x40af97
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 0x40b09d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40b09d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00432cb0
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 0x40b107
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x40b0c3
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 0x40b0f2
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.00440cd0
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x40b107
cmp edi, eax
ja 0x40b0d0
test edi, edi
je 0x40b107
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.00440cd0
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 0x40b9a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0xf
mov esi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jbe 0x40b9bc
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x40b9d8
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x40b9c7
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edx
push eax
mov ecx, ebx
call fcn.00414c70
mov esi, dword [eax + 4]
test esi, esi
je 0x40ba8e
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x40ba1b
cmp eax, esi
jne 0x40ba13
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x40ba23
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x40ba23
cmp eax, esi
jne 0x40ba23
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
dec dword [ebx + 8]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x1c]
cmp ecx, 0xf
jbe 0x40ba63
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x40ba59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40ba99
mov eax, edx
push ecx
push eax
call fcn.00431517
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.00431517
add esp, 8
mov eax, 1
pop edi
pop esi
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
call fcn.0043fd1e
int3

Function at 0x4103f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a370
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x474180]
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.00431296
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00416506
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00410390
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 0x411c10
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a965
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x474180]
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 - 0x1c], edi
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
mov dword [ebp - 0x14], edx
jbe 0x411c54
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x411c78
mov edi, dword [ebp - 0x14]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x411c63
mov edi, dword [ebp - 0x1c]
push esi
push edx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.00414c70
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x411ca8
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], 0x7ffffff
je 0x411dda
lea eax, [ebx + 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
push 0x20
mov dword [ebp - 0x20], 0
call fcn.00431296
add esp, 4
mov edi, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.0040d380
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 + 0x46c440]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x46c440]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x411d7c
divss xmm0, xmm3
call fcn.004014a0
call fcn.00431dc0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x411d60
cmp eax, 0x200
jae 0x411d5e
shl eax, 3
cmp eax, ecx
jae 0x411d60
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00414450
push esi
lea eax, [edi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00414c70
mov edx, dword [eax]
jmp 0x411d7f
mov edx, dword [ebp - 0x18]
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 - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, esi
mov esi, dword [ecx + eax*8]
cmp esi, dword [ebx + 4]
jne 0x411da7
mov dword [ecx + eax*8], edi
jmp 0x411db9
cmp esi, edx
jne 0x411db0
mov dword [ecx + eax*8], edi
jmp 0x411dbd
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x411dbd
mov dword [ecx + eax*8 + 4], edi
mov eax, dword [ebp - 0x1c]
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.00416335
int3
Function at 0x415830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ac5d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x474180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push 0x30
call fcn.00431296
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ecx + 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
movups xmmword [eax + 0x20], xmm0
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x415ab0
push 0
push 0
call fcn.0043d4ce
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x4158bf
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.00431277
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.004161f0
int3

Function at 0x415c00
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 0x415c27
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x415c2a
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.00415bdc
pop esi
leave
ret 8

Function at 0x41b6d0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x478608], 0
jne 0x41b6de
call fcn.0042ef20
cmp byte [0x478611], 0
je 0x41b6fc
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0042f2b0
add esp, 0x10
ret
jmp fcn.00419a80

Function at 0x41c190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b350
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x474180]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 0
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.004211a0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x41c1f4
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x41c205
push 0x48
push esi
call fcn.00431517
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43229c
Capabilities:
Parse pe header

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

Function at 0x448f21
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 0x448f3b
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 0x448f52
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x448faa
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.00450c12
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x448faa
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 0x448faa
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x448faa
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x448fa4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x448fa6
xor bl, bl
mov al, bl
jmp 0x448fac
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x44cafe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004324f0
mov eax, dword [0x474180]
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.00448d32
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44cb40
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44ccb7
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00458eb0
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 + 0x478d30]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0044da61
mov ecx, dword [esi*4 + 0x478d30]
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 0x44ccb0
cmp eax, dword [edi + ecx + 0x24]
jne 0x44ccb0
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 0x44ccb0
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044da61
add esp, 0x14
cmp edx, esi
jl 0x44ccb0
jg 0x44cc0b
cmp eax, esi
jb 0x44ccb0
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x44ccb0
jl 0x44cc2d
cmp dword [ebp - 0x1008], eax
ja 0x44ccb0
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 0x44cc52
cmp ebx, esi
je 0x44cc97
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x44cc97
mov al, byte [ecx]
cmp al, 0xd
jne 0x44cc78
lea eax, [edi - 1]
cmp ecx, eax
jae 0x44cc84
cmp byte [ecx + 1], 0xa
jne 0x44cc84
inc ecx
jmp 0x44cc84
movzx eax, al
movsx eax, byte [eax + 0x474460]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x44cc5e
cmp edx, ebx
jne 0x44cc5e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x44ccb5
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00431277
leave
ret
Function at 0x44ceed
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 + 0x478d30]
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 0x44cf2f
cmp byte [ebx], 0xa
jne 0x44cf2f
or byte [edi + eax + 0x28], 4
jmp 0x44cf34
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44d037
mov cl, byte [eax]
cmp cl, 0x1a
je 0x44d012
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x44cf63
mov eax, dword [ebp - 8]
jmp 0x44cf83
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x44cf9f
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x44cf7d
add eax, 2
mov cl, 0xa
jmp 0x44cf80
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 0x44cf45
jmp 0x44d037
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 0x44d00d
cmp dword [ebp - 0x10], 0
je 0x44d00d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x478d30]
test byte [eax + edi + 0x28], 0x48
je 0x44cfec
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x44cfdc
mov byte [esi], 0xa
jmp 0x44d036
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x478d30]
mov byte [eax + edi + 0x2a], cl
jmp 0x44d036
cmp byte [ebp - 1], 0xa
jne 0x44cff6
cmp esi, ebx
je 0x44cfd7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044da7f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44d037
mov byte [esi], 0xd
jmp 0x44d036
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x478d30]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x44d034
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x44d037
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44d040
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 + 0x478d30]
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 0x44d084
push 0xa
pop esi
cmp word [ebx], si
jne 0x44d084
or byte [eax + edi + 0x28], 4
jmp 0x44d089
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 0x44d1f4
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 0x44d1cc
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x44d0d6
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x44d100
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x44d11f
push 0xa
pop ebx
cmp word [edx], bx
jne 0x44d0ed
push ebx
add eax, 4
pop edx
jmp 0x44d0f5
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 0x44d09b
jmp 0x44d1f4
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 0x44d1c7
cmp dword [ebp - 0x14], 0
je 0x44d1c7
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x478d30]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x44d1a3
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x44d16b
mov word [esi], ax
jmp 0x44d1f1
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 + 0x478d30]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x478d30]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x478d30]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x44d1f1
cmp word [ebp - 4], ax
jne 0x44d1ad
cmp esi, ebx
je 0x44d163
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044da7f
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x44d1f4
push 0xd
pop eax
jmp 0x44d163
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x478d30]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x44d1ee
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x44d1f4
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret