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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x487e2c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x487e44
call fcn.00404d34
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 8], eax
xor ebx, ebx
push ebp
push 0x487deb
push dword fs:[ebx]
mov dword fs:[ebx], esp
lea eax, [ebp - 0x18]
mov ecx, 0x487e58
mov edx, dword [0x491e08]
call fcn.00404fb4
mov eax, dword [ebp - 0x18]
call fcn.00409ac0
test al, al
je 0x487d44
push 0
lea eax, [ebp - 0x1c]
mov ecx, 0x487e58
mov edx, dword [0x491e08]
call fcn.00404fb4
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x416ba4]
call fcn.0041ac54
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx]
mov dword [0x491df8], eax
mov dword [0x491dfc], edx
mov eax, dword [0x491df8]
call fcn.00402f34
mov dword [0x491e00], eax
mov edx, dword [0x491e00]
mov ecx, dword [0x491df8]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [0x491df8]
dec eax
test eax, eax
jl 0x487dd5
inc eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x487da2
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jle 0x487dc3
mov edx, 1
mov ebx, dword [ebp - 4]
movzx ebx, byte [ebx + edx - 1]
mov esi, dword [0x491e00]
xor byte [esi + ecx], bl
inc edx
dec eax
jne 0x487dae
inc ecx
dec dword [ebp - 0x10]
jne 0x487d8b
jmp 0x487dd5
mov eax, dword [ebp - 8]
call fcn.00403e4c
mov byte [ebp - 9], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x487dff
cmp byte [ebp - 9], 1
je 0x487cf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487e33
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404cc0
lea eax, [ebp - 4]
call fcn.00404c9c
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x1f313cd
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x1bb11c5f
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10006150
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005bf6d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10073068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, 0x7fffffff
mov ecx, dword [ebp + 0x18]
sub eax, ecx
mov dword [ebp - 0x1c], ecx
cmp eax, 1
jb 0x1000634a
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
lea edx, [ecx + 1]
mov esi, 0xf
cmovae eax, dword [ebp + 8]
lea edi, [ebp - 0x38]
mov dword [ebp - 0x18], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], edx
movups xmmword [ebp - 0x38], xmm0
cmp edx, esi
jbe 0x1000623a
mov esi, edx
or esi, 0xf
cmp esi, 0x7fffffff
jbe 0x100061fa
mov ecx, 0x80000000
mov esi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.10036c1b
add esp, 4
test eax, eax
je 0x10006354
mov ecx, dword [ebp - 0x1c]
lea edi, [eax + 0x23]
mov edx, dword [ebp - 0x20]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x10006234
mov eax, 0x16
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x1000621b
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x1000634f
jmp 0x100061d8
test eax, eax
je 0x10006232
push eax
call fcn.10036c1b
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov edx, dword [ebp - 0x20]
mov edi, eax
jmp 0x10006234
xor edi, edi
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], edi
push ecx
push eax
push edi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], esi
call fcn.100383a0
mov eax, dword [ebp - 0x1c]
add esp, 0xc
mov word [edi + eax], 0xa
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x10006288
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000627e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006354
push ecx
push edx
call fcn.10036bea
add esp, 8
movups xmm1, xmmword [ebp - 0x38]
lea esi, [ebp + 8]
movq xmm0, qword [ebp - 0x28]
movq qword [ebp + 0x18], xmm0
mov edi, dword [ebp + 0x1c]
cmp edi, 0x10
movd edx, xmm1
movups xmmword [ebp + 8], xmm1
cmovae esi, edx
mov ecx, esi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100062b2
sub ecx, dword [ebp - 0x18]
je 0x10006303
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, esi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100062d0
push 0
lea eax, [ebp - 0x14]
sub ecx, edx
push eax
push ecx
push esi
push dword [0x10075cb8]
call edi
test eax, eax
jne 0x100062fd
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100062f2
sub eax, edx
jne 0x100062c4
mov edi, dword [ebp + 0x1c]
mov edx, dword [ebp + 8]
cmp edi, 0x10
jb 0x1000632f
lea ecx, [edi + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10006325
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10006354
push ecx
push edx
call fcn.10036bea
add esp, 8
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.10036bdc
mov esp, ebp
pop ebp
ret
call fcn.10001320
call fcn.10001250
call fcn.1003da55
int3
Function at 0x10006ec0
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 0x10006ef2
jl 0x10006ee5
test ecx, ecx
jne 0x10006ef2
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 0x10006fb2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100096a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10006f5e
jg 0x10006f1d
test esi, esi
je 0x10006f5e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10006f35
mov eax, dword [esp + 0x10]
jl 0x10006f2f
cmp eax, esi
jae 0x10006f35
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.100383a0
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 0x10006f7f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10006f9b
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 0x10006f04
jl 0x10006f9b
test ecx, ecx
jne 0x10006f04
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
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 0x10006ff6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10006ff6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.100383a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10007067
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1000701c
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 0x10007052
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1003f1e0
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10007067
cmp edi, eax
ja 0x10007030
test edi, edi
je 0x10007067
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1003f1e0
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 0x1000a6a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c340
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10073068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
push 8
mov dword [ebp - 0x18], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10036c1b
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10020160
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
lea edi, [eax + 0x14]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov ebx, dword [ebp - 0x10]
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x10], esi
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x3d], 0
mov ebx, dword [ebp - 0x14]
mov dword [eax + 0xc], ebx
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov dword [eax + 0x4c], 0
mov ecx, dword [0x10075ca8]
mov edx, dword [0x10075cac]
mov dword [eax + 0x40], ecx
mov dword [eax + 0x44], edx
mov dword [eax + 0x38], 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
Function at 0x1000a9f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c3c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10073068]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10036c1b
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10020160
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 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

Function at 0x1000d070
Capabilities:
Create thread

Disassembly:
mov ecx, 0x1b58
call fcn.1001fd60
jmp fcn.10002460
Function at 0x1000eba0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c7a5
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x10073068]
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
sub dword [ebp + 0xc], 1
jne 0x1000ed6f
push 0x1b58
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 2
mov dword [ebp - 0x26c], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 1
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
cmp ebx, 0xffffffff
je 0x1000ed6f
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1000ed68
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1000ed68
nop dword [eax + eax]
push 0xc
mov edx, 0x10073bc4
lea ecx, [ebp - 0x40]
call fcn.10002170
mov dword [ebp - 4], 0
lea esi, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x28]
push 0xc
cmovae esi, dword [ebp - 0x40]
mov edx, 0x10073bd4
call fcn.10002170
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
push esi
cmovae edi, dword [ebp - 0x28]
push eax
call fcn.1003f754
add esp, 0x10
test eax, eax
jne 0x1000eca1
mov ecx, dword [ebp - 0x264]
lea edx, [eax + 1]
call fcn.1000d3a0
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.1003f754
add esp, 8
test eax, eax
jne 0x1000ecc2
mov ecx, dword [ebp - 0x264]
xor edx, edx
call fcn.1000d3a0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x1000ed00
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ecf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ed92
push ecx
push edx
call fcn.10036bea
add esp, 8
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x1000ed51
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1000ed47
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000ed92
push ecx
push edx
call fcn.10036bea
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x1000ec40
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
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.10036bdc
mov esp, ebp
pop ebp
ret 0xc
call fcn.1003da55
int3
Function at 0x10036592
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.10043dae
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x100365d1
sub eax, 1
je 0x100365cc
sub eax, 1
je 0x100365c8
xor eax, eax
leave
ret
push 3
jmp 0x100365d3
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x100471e2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10047221
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10047221
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10047221
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10047221
cmp dword [ecx + 0x74], 0xe
jbe 0x10047221
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1004d608
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.10037d00
mov eax, dword [0x10073068]
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.10049ba8
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004d64a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004d7a6
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1005b3c0
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 + 0x10075868]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1004d191
mov ecx, dword [esi*4 + 0x10075868]
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 0x1004d79f
cmp eax, dword [ecx + edi + 0x24]
jne 0x1004d79f
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 0x1004d79f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1004d191
add esp, 0x14
test edx, edx
jl 0x1004d79f
jg 0x1004d715
test eax, eax
jb 0x1004d79f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1004d79f
jl 0x1004d72f
cmp dword [ebp - 0x1008], eax
ja 0x1004d79f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1004d74d
test ebx, ebx
je 0x1004d786
cmp ecx, edi
jae 0x1004d786
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004d767
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1004d773
cmp byte [ecx + 1], 0xa
jne 0x1004d773
inc ecx
jmp 0x1004d773
movzx eax, al
movsx eax, byte [eax + 0x100732e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1004d74d
cmp edx, ebx
jne 0x1004d74d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1004d7a4
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10036bdc
leave
ret
Function at 0x1004d845
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 + 0x10075868]
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 0x1004d885
cmp byte [ebx], 0xa
jne 0x1004d885
or byte [edi + eax + 0x28], 4
jmp 0x1004d88a
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 0x1004d989
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1004d96c
inc eax
cmp dl, 0xd
je 0x1004d8b6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1004d8dc
cmp eax, ecx
jae 0x1004d8ea
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 0x1004d89e
jmp 0x1004d989
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 0x1004d967
cmp dword [ebp - 0x10], 0
je 0x1004d967
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10075868]
test byte [eax + edi + 0x28], 0x48
je 0x1004d941
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1004d92c
mov byte [esi], dl
jmp 0x1004d93d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10075868]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004d989
cmp byte [ebp - 1], 0xa
jne 0x1004d950
cmp esi, ebx
jne 0x1004d950
mov byte [esi], 0xa
jmp 0x1004d988
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1004d1af
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004d989
mov byte [esi], 0xd
jmp 0x1004d988
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10075868]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004d986
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004d989
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1004d992
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 + 0x10075868]
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 0x1004d9d8
cmp word [ebx], dx
jne 0x1004d9d8
or byte [eax + edi + 0x28], 4
jmp 0x1004d9dd
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 0x1004db40
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 0x1004db20
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1004da1e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1004da54
cmp eax, edx
jae 0x1004da62
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 0x1004d9f9
jmp 0x1004db40
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 0x1004db1b
cmp dword [ebp - 0x18], 0
je 0x1004db1b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x10075868]
test byte [eax + edi + 0x28], 0x48
je 0x1004daf1
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 0x1004dab5
mov word [esi], cx
jmp 0x1004daec
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x10075868]
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 + 0x10075868]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x10075868]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1004db40
pop eax
cmp word [ebp - 4], ax
jne 0x1004db01
cmp esi, ebx
jne 0x1004db01
mov word [esi], ax
jmp 0x1004db3d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1004d1af
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1004db40
push 0xd
pop eax
jmp 0x1004dafc
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x10075868]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1004db3a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1004db40
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret