joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011350
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057640
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x1006d04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push str.C:_P001D7HF9920020001
call fcn.10038bc0
add esp, 8
test eax, eax
jne 0x10011423
push 0xb0
push eax
lea eax, [ebp - 0xc0]
push eax
call fcn.1002fe40
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.10011680
push ecx
push 0xa
push str.C:_P001D7HF9920020001_SI1992jJD00033333.data
lea ecx, [ebp - 0xbc]
mov dword [ebp - 4], 0
call fcn.10014780
test eax, eax
lea ecx, [ebp - 0xc0]
mov eax, dword [ebp - 0xc0]
je 0x100113ef
add ecx, dword [eax + 4]
xor edx, edx
mov eax, 4
cmp dword [ecx + 0x38], edx
cmovne eax, edx
jmp 0x10011404
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push 0
push eax
call fcn.10002e20
xor ebx, ebx
lea ecx, [ebp - 0xc0]
cmp dword [ebp - 0x70], ebx
setne bl
call fcn.10011460
mov eax, ebx
jmp 0x1001143f
push 0
push str.C:_P001D7HF9920020001
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1001143a
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.10011350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002e0f2
mov esp, ebp
pop ebp
ret
Function at 0x10012fb0
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 0x10012fe2
jl 0x10012fd5
test ecx, ecx
jne 0x10012fe2
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 0x100130a2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.10014490
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x1001304e
jg 0x1001300d
test esi, esi
je 0x1001304e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10013025
mov eax, dword [esp + 0x10]
jl 0x1001301f
cmp eax, esi
jae 0x10013025
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.1002f8c0
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 0x1001306f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x1001308b
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 0x10012ff4
jl 0x1001308b
test ecx, ecx
jne 0x10012ff4
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 0x100130e6
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100130e6
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.1002f8c0
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 0x10013157
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x1001310c
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 0x10013142
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.10039a76
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10013157
cmp edi, eax
ja 0x10013120
test edi, edi
je 0x10013157
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.10039a76
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 0x10014950
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100578b0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1006d04c]
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.1002e131
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100193ec
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 [0x1006fe0c]
mov edx, dword [0x1006fe10]
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 0x10014b00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100578d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1006d04c]
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_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.1002e131
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100193ec
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 0x10014d10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100578d0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1006d04c]
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.1002e131
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100193ec
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 0x100163d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10016580
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1001649d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1001641a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006d004]
ja 0x1001641a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100163ea
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1002fe40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10016440
jmp 0x1001649d
cmp dword [ebp - 0x14], 0x10000
jne 0x10016483
cmp dword [ebp - 0x18], 0x10000
jb 0x10016483
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10016476
mov eax, dword [ebp - 8]
jmp 0x1001649f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10016498
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10016580
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100163ea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100164b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100165b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10016575
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100164f5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1006d004]
ja 0x100164f5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100164c5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1002fe40
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1001651b
jmp 0x10016575
cmp dword [ebp - 0x14], 0x10000
jne 0x1001655e
cmp dword [ebp - 0x18], 0x10000
jb 0x1001655e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10016551
mov eax, dword [ebp - 8]
jmp 0x10016577
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10016570
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100165b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100164c5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100165e0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100169d0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1006ec64], 0
jne 0x1001661d
cmp dword [0x1006ec60], 0
je 0x1001661d
mov eax, dword [0x1006ec60]
mov dword [0x1006ec64], eax
cmp dword [0x1006ec64], 0
je 0x1001669a
mov ecx, dword [0x1006ec64]
cmp dword [ecx + 8], 0
je 0x1001669a
mov edx, dword [0x1006ec64]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1001669a
mov ecx, dword [0x1006ec64]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1001669a
mov eax, dword [0x1006ec64]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10016669
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10016670
xor eax, eax
jmp 0x100167b9
mov ecx, dword [0x1006ec64]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.1002fe40
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100167b9
mov edx, dword [0x1006ec60]
mov dword [0x1006ec64], edx
jmp 0x100166b6
mov eax, dword [0x1006ec64]
mov ecx, dword [eax + 4]
mov dword [0x1006ec64], ecx
cmp dword [0x1006ec64], 0
je 0x100166f6
cmp dword [0x1006ec64], 0
je 0x100166f4
mov edx, dword [0x1006ec64]
cmp dword [edx + 8], 0
je 0x100166f4
mov eax, dword [0x1006ec64]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100166f4
mov edx, dword [0x1006ec64]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100166f4
jmp 0x1001664e
jmp 0x100166a8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.100167c0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100167b7
mov eax, dword [ebp - 0x18]
mov dword [0x1006ec64], eax
mov ecx, dword [0x1006ec64]
mov dword [ecx], 0x52727464
mov edx, dword [0x1006ec64]
mov dword [edx + 8], 0
mov eax, dword [0x1006ec64]
mov ecx, dword [0x1006ec60]
mov dword [eax + 4], ecx
mov edx, dword [0x1006ec64]
mov dword [0x1006ec60], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1006ec64]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10016787
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100167a7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1001677e
mov eax, dword [0x1006ec64]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1001664e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100409f8
Capabilities:
Parse pe header

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

Function at 0x10045eef
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e148
push 0x1005e140
push str.FlsAlloc
push 0x1f
call fcn.10045d5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045f23
push dword [ebp + 8]
mov ecx, esi
call dword [0x100591e8]
call esi
jmp 0x10045f29
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10045f6d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e158
push 0x1005e150
push str.FlsGetValue
push 0x21
call fcn.10045d5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045fa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x100591e8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10045fac
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1005e160
push 0x1005e158
push str.FlsSetValue
push 0x22
call fcn.10045d5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10045fe6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100591e8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100494fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1002f020
mov eax, dword [0x1006d04c]
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.100439e9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1004953e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1004969a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10056140
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 + 0x1006f748]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10049085
mov ecx, dword [esi*4 + 0x1006f748]
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 0x10049693
cmp eax, dword [ecx + edi + 0x24]
jne 0x10049693
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 0x10049693
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10049085
add esp, 0x14
test edx, edx
jl 0x10049693
jg 0x10049609
test eax, eax
jb 0x10049693
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10049693
jl 0x10049623
cmp dword [ebp - 0x1008], eax
ja 0x10049693
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10049641
test ebx, ebx
je 0x1004967a
cmp ecx, edi
jae 0x1004967a
mov al, byte [ecx]
cmp al, 0xd
jne 0x1004965b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10049667
cmp byte [ecx + 1], 0xa
jne 0x10049667
inc ecx
jmp 0x10049667
movzx eax, al
movsx eax, byte [eax + 0x1006d2d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10049641
cmp edx, ebx
jne 0x10049641
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10049698
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1002e0f2
leave
ret
Function at 0x10049739
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 + 0x1006f748]
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 0x10049779
cmp byte [ebx], 0xa
jne 0x10049779
or byte [edi + eax + 0x28], 4
jmp 0x1004977e
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 0x1004987d
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10049860
inc eax
cmp dl, 0xd
je 0x100497aa
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x100497d0
cmp eax, ecx
jae 0x100497de
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 0x10049792
jmp 0x1004987d
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 0x1004985b
cmp dword [ebp - 0x10], 0
je 0x1004985b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1006f748]
test byte [eax + edi + 0x28], 0x48
je 0x10049835
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10049820
mov byte [esi], dl
jmp 0x10049831
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1006f748]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1004987d
cmp byte [ebp - 1], 0xa
jne 0x10049844
cmp esi, ebx
jne 0x10049844
mov byte [esi], 0xa
jmp 0x1004987c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100490a3
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1004987d
mov byte [esi], 0xd
jmp 0x1004987c
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1006f748]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1004987a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1004987d
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10049886
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 + 0x1006f748]
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 0x100498cc
cmp word [ebx], dx
jne 0x100498cc
or byte [eax + edi + 0x28], 4
jmp 0x100498d1
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 0x10049a34
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 0x10049a14
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x10049912
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10049948
cmp eax, edx
jae 0x10049956
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 0x100498ed
jmp 0x10049a34
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 0x10049a0f
cmp dword [ebp - 0x18], 0
je 0x10049a0f
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1006f748]
test byte [eax + edi + 0x28], 0x48
je 0x100499e5
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 0x100499a9
mov word [esi], cx
jmp 0x100499e0
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1006f748]
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 + 0x1006f748]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1006f748]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x10049a34
pop eax
cmp word [ebp - 4], ax
jne 0x100499f5
cmp esi, ebx
jne 0x100499f5
mov word [esi], ax
jmp 0x10049a31
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.100490a3
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x10049a34
push 0xd
pop eax
jmp 0x100499f0
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1006f748]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x10049a2e
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x10049a34
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret