joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4189c0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ff1d
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x465024]
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.0042f201
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0042e96d
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 dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
not ecx
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x10]
and ecx, 1
shl ecx, 2
mov edx, ecx
or edx, 2
test bl, 2
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
cmovne edx, ecx
mov ecx, edx
or ecx, 8
test bl, 8
cmove ecx, edx
mov edx, ecx
or edx, 0x10
test bl, 4
mov ebx, dword [ebp + 8]
cmove edx, ecx
mov dword [ebp + 0xc], ebx
mov dword [ebp - 0x14], edx
cmp dword [ebx + 0x14], 0x10
jb 0x418ab9
mov eax, dword [ebx]
mov dword [ebp + 0xc], eax
mov ebx, dword [ebx + 0x10]
cmp ebx, 0x7fffffff
ja 0x418ba9
test ebx, ebx
je 0x418b89
mov eax, edx
and eax, 6
cmp al, 6
je 0x418b89
cmp ebx, 0x1000
jb 0x418b0c
lea eax, [ebx + 0x23]
cmp eax, ebx
jbe 0x418bae
push eax
call fcn.0042f201
add esp, 4
test eax, eax
je 0x418bb3
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x418b17
push ebx
call fcn.0042f201
add esp, 4
mov edi, eax
push ebx
push dword [ebp + 0xc]
push edi
call fcn.00430c60
mov edx, dword [ebp - 0x14]
lea eax, [edi + ebx]
mov dword [esi + 0x38], eax
add esp, 0xc
mov eax, edx
and eax, 4
mov dword [ebp + 0xc], eax
jne 0x418b46
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], ebx
test dl, 2
jne 0x418b84
test dl, 0x18
je 0x418b55
mov ebx, dword [esi + 0x38]
jmp 0x418b57
mov ebx, edi
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x38]
sub ecx, ebx
cmp dword [ebp + 0xc], 0
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
je 0x418b84
mov eax, dword [esi + 0xc]
mov dword [eax], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
or edx, 1
jmp 0x418b90
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], edx
mov eax, esi
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
call fcn.0042e6e0
call fcn.00408c90
call fcn.00436a90
int3
Function at 0x418c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ff4d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x465024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx]
push 0
push 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
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
call fcn.0040a370
push 8
call fcn.0042f201
add esp, 4
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0042e96d
mov dword [esi + 4], eax
add esp, 4
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 2
push eax
call fcn.004192f0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [esi]
mov byte [ebp + 0xb], al
call dword [edx + 8]
test eax, eax
je 0x418d20
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [edi + 0x38], 0
mov al, byte [ebp + 0xb]
mov byte [edi + 0x40], al
jne 0x418d3c
mov eax, dword [edi + 0xc]
mov ecx, edi
push 0
or eax, 4
push eax
call fcn.0040a370
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x423720
Capabilities:
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45027a
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x465024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.004185f0
lea eax, [esi + 0x18]
mov dword [ebp - 4], 0
push eax
lea ecx, [edi + 0x18]
call fcn.004185f0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x44]
movups xmm0, xmmword [esi + 0x30]
movups xmmword [edi + 0x30], xmm0
mov ax, word [esi + 0x40]
mov word [edi + 0x40], ax
lea eax, [esi + 0x44]
push eax
call fcn.00418370
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x50]
mov dword [edi + 0x50], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], ecx
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x6c]
mov dword [edi + 0x68], eax
lea eax, [esi + 0x70]
mov dword [edi + 0x6c], ecx
lea ecx, [edi + 0x70]
push eax
call fcn.004185f0
lea eax, [esi + 0x88]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x88]
call fcn.00418370
lea eax, [esi + 0x94]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x94]
call fcn.00418370
lea eax, [esi + 0xa0]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0xa0]
call fcn.00418370
mov eax, dword [esi + 0xac]
mov dword [edi + 0xac], eax
mov eax, dword [esi + 0xb0]
mov dword [edi + 0xb0], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a440
Capabilities:
Enumerate process modules
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x465024]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x46097c
push str.dragent.pid
call fcn.0043753e
mov edi, eax
add esp, 8
test edi, edi
jne 0x42a48a
push str.open_file_fail_n
call fcn.00409910
add esp, 4
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
push esi
push 0
push 0
push edi
call fcn.00437adf
push edi
push 0xa
lea eax, [ebp - 0x10]
mov word [ebp - 8], 0
xorps xmm0, xmm0
push 1
push eax
movq qword [ebp - 0x10], xmm0
call fcn.00438278
add esp, 0x1c
test eax, eax
je 0x42a5cd
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004311e0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0xff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004311e0
lea eax, [ebp - 0x10]
push eax
call fcn.00438ca9
add esp, 0x10
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42a555
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
push 0xff
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x214]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
cmp esi, 0xffffffff
je 0x42a555
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push eax
push str.compare_pids_file__s__s_n
call fcn.00409910
add esp, 0xc
cmp dword [0x465b78], 0
jne 0x42a5cd
lea ecx, [ebp - 0x110]
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42a5a5
test dl, dl
je 0x42a5a1
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42a5a5
add eax, 2
add ecx, 2
test dl, dl
jne 0x42a585
xor eax, eax
jmp 0x42a5aa
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42a5cd
push str.prev_agent_is_exist_n
call fcn.00409910
add esp, 4
xor al, al
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
push edi
call fcn.0043a210
push 2
push 0
push edi
mov esi, eax
call fcn.00437adf
push esi
call fcn.00439ebc
add esp, 0x14
mov esi, eax
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x460b58
push edi
call fcn.00429e90
push edi
call fcn.004377c6
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
mov al, 1
pop esi
pop edi
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
Function at 0x42db70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x465024]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x465b70], 0x10
push esi
mov esi, 0x465b5c
cmovae esi, dword [0x465b5c]
push edi
mov edi, dword [0x465b6c]
test edi, edi
je 0x42dbf6
push 0x100
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004311e0
add esp, 0xc
mov ecx, 0x460f44
nop dword [eax]
movzx eax, byte [ecx]
inc ecx
mov byte [ebp + eax - 0x120], 1
cmp ecx, 0x460f46
jne 0x42dbc0
lea edx, [edi + esi]
mov ecx, esi
cmp esi, edx
jae 0x42dbf6
nop dword [eax]
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x120], 0
jne 0x42dcbd
inc ecx
cmp ecx, edx
jb 0x42dbe0
or ecx, 0xffffffff
xorps xmm0, xmm0
cmp ecx, 0xffffffff
je 0x42dd07
add ecx, 2
mov dword [ebp - 0xc], 0
cmp edi, ecx
mov dword [ebp - 8], 0
mov eax, 0x465b5c
cmovb ecx, edi
cmp dword [0x465b70], 0x10
push ecx
cmovae eax, dword [0x465b5c]
lea ecx, [ebp - 0x1c]
push eax
movups xmmword [ebp - 0x1c], xmm0
call fcn.004195d0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x130]
push ecx
lea ecx, [ebp - 0x138]
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x42dcc4
mov esi, dword [ebp - 0x130]
mov eax, esi
mov edi, dword [ebp - 0x12c]
or eax, edi
je 0x42dcc4
mov ecx, esi
mov edx, edi
sub ecx, dword [ebp - 0x138]
sbb edx, dword [ebp - 0x134]
call fcn.0044fab0
mulsd xmm0, qword [0x4611e0]
mov edx, edi
mov ecx, esi
movsd qword [ebp - 0x128], xmm0
call fcn.0044fab0
movsd xmm1, qword [ebp - 0x128]
divsd xmm1, xmm0
movsd qword [ebp - 0x128], xmm1
jmp 0x42dccf
sub ecx, esi
jmp 0x42dbf9
xorps xmm0, xmm0
movsd qword [ebp - 0x128], xmm0
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x42dcff
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42dcf5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42dd17
push ecx
push edx
call fcn.0042f231
add esp, 8
movsd xmm0, qword [ebp - 0x128]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
call fcn.00436a90
int3
Function at 0x42e2f0
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x465024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
mov dword [ebp - 0x110], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42e346
push str._Error_Couldnt_open_service_manager
call fcn.00409910
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x42e350
mov eax, dword [esi]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x42e397
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esi + 0x14], 0x10
jb 0x42e376
mov esi, dword [esi]
push esi
push str._Error_Couldnt_open_service:_s
call fcn.00409910
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
push ebx
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x42e433
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004311e0
push 0xff
push dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
call fcn.00437c40
add esp, 0x18
push dword [ebp - 0x108]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x14], 0x10
jb 0x42e416
mov esi, dword [esi]
lea eax, [ebp - 0x104]
push eax
push esi
push str._Error_Start__s_Failed_:__s_n
call fcn.00409910
mov esi, dword [ebp - 0x10c]
add esp, 0xc
jmp 0x42e456
push str._Info_Start_Service_Success_n
mov dword [ebp - 0x110], 0
call fcn.00409910
mov esi, dword [ebp - 0x10c]
add esp, 4
push esi
call ebx
push edi
call ebx
push esi
call ebx
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
Function at 0x42e480
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x465024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xf003f
push 0
push 0
mov esi, ecx
mov dword [ebp - 0x128], 0xffffffff
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x42e4d6
push str._Error_Couldnt_open_service_manager
call fcn.00409910
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x42e4e0
mov eax, dword [esi]
push ebx
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
jne 0x42e525
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [esi + 0x14], 0x10
jb 0x42e503
mov esi, dword [esi]
push esi
push str._Error_Couldnt_open_service:_s
call fcn.00409910
add esp, 8
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x42e5b3
push eax
push eax
lea eax, [ebp - 0x124]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004311e0
push 0xff
push dword [ebp - 0x124]
lea eax, [ebp - 0x104]
push eax
call fcn.00437c40
add esp, 0x18
push dword [ebp - 0x124]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x14], 0x10
jb 0x42e59c
mov esi, dword [esi]
lea eax, [ebp - 0x104]
push eax
push esi
push str._Error_Stop_Service__s_Failed_:__s_n
call fcn.00409910
add esp, 0xc
jmp 0x42e5ca
push str._Error_Stop_Service_Success_n
call fcn.00409910
add esp, 4
mov dword [ebp - 0x128], 0
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x128]
xor ecx, ebp
pop ebx
pop edi
pop esi
call fcn.0042f1f3
mov esp, ebp
pop ebp
ret

Function at 0x42ff0d
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042fa80
mov eax, dword [0x465024]
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.0043a210
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x436f41
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x43709d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042f9d0
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 + 0x466b28]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0043f768
mov ecx, dword [esi*4 + 0x466b28]
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 0x437096
cmp eax, dword [ecx + edi + 0x24]
jne 0x437096
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 0x437096
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0043f768
add esp, 0x14
test edx, edx
jl 0x437096
jg 0x43700c
test eax, eax
jb 0x437096
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x437096
jl 0x437026
cmp dword [ebp - 0x1008], eax
ja 0x437096
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x437044
test ebx, ebx
je 0x43707d
cmp ecx, edi
jae 0x43707d
mov al, byte [ecx]
cmp al, 0xd
jne 0x43705e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x43706a
cmp byte [ecx + 1], 0xa
jne 0x43706a
inc ecx
jmp 0x43706a
movzx eax, al
movsx eax, byte [eax + 0x4652a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x437044
cmp edx, ebx
jne 0x437044
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x43709b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042f1f3
leave
ret
Function at 0x43f7e4
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 + 0x466b28]
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 0x43f824
cmp byte [ebx], 0xa
jne 0x43f824
or byte [edi + eax + 0x28], 4
jmp 0x43f829
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 0x43f928
mov dl, byte [eax]
cmp dl, 0x1a
je 0x43f90b
inc eax
cmp dl, 0xd
je 0x43f855
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x43f87b
cmp eax, ecx
jae 0x43f889
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 0x43f83d
jmp 0x43f928
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 0x43f906
cmp dword [ebp - 0x10], 0
je 0x43f906
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x466b28]
test byte [eax + edi + 0x28], 0x48
je 0x43f8e0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x43f8cb
mov byte [esi], dl
jmp 0x43f8dc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x466b28]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x43f928
cmp byte [ebp - 1], 0xa
jne 0x43f8ef
cmp esi, ebx
jne 0x43f8ef
mov byte [esi], 0xa
jmp 0x43f927
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f786
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x43f928
mov byte [esi], 0xd
jmp 0x43f927
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x466b28]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x43f925
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x43f928
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43f931
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 + 0x466b28]
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 0x43f977
cmp word [ebx], dx
jne 0x43f977
or byte [eax + edi + 0x28], 4
jmp 0x43f97c
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 0x43fadf
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 0x43fabf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x43f9bd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x43f9f3
cmp eax, edx
jae 0x43fa01
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 0x43f998
jmp 0x43fadf
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 0x43faba
cmp dword [ebp - 0x18], 0
je 0x43faba
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x466b28]
test byte [eax + edi + 0x28], 0x48
je 0x43fa90
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 0x43fa54
mov word [esi], cx
jmp 0x43fa8b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x466b28]
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 + 0x466b28]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x466b28]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x43fadf
pop eax
cmp word [ebp - 4], ax
jne 0x43faa0
cmp esi, ebx
jne 0x43faa0
mov word [esi], ax
jmp 0x43fadc
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0043f786
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x43fadf
push 0xd
pop eax
jmp 0x43fa9b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x466b28]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x43fad9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x43fadf
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret