joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406110
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406145
mov eax, dword [ecx + 0x3c]
add eax, ecx
je 0x406145
cmp dword [eax], 0x4550
jne 0x406145
lea ecx, [eax + 4]
test ecx, ecx
je 0x406145
mov edx, 0x14c
xor eax, eax
cmp word [ecx], dx
sete al
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x406150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x406185
mov eax, dword [ecx + 0x3c]
add eax, ecx
je 0x406185
cmp dword [eax], 0x4550
jne 0x406185
lea ecx, [eax + 4]
test ecx, ecx
je 0x406185
mov edx, 0x8664
xor eax, eax
cmp word [ecx], dx
sete al
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x406190
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx + 0x10]
push 4
add eax, eax
push 0x3000
mov dword [ebp + 0xc], eax
add eax, 4
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4061dd
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x406290
mov dword [eax], str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0x14], 7
mov dword [ebp - 4], 0
jbe 0x4061ec
mov ebx, dword [ebx]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x406274
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 4], eax
jb 0x406274
push 0
push 0
push edi
push dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
jne 0x40624c
push 0x8000
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x406290
mov dword [eax], str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x406290
mov dword [eax], str.Failed_to_remotely_write_dll_path_with_WriteProcessMemory__
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431130
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x43f200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00412fb7
mov edi, eax
add esp, 4
test edi, edi
je 0x4093cb
push 1
mov dword [ebp - 4], 0
call fcn.00411cbd
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409c40
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431265
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x440353], 0
je 0x409daa
push str.restoring_registry_entries__HKCS__1
call fcn.00405830
add esp, 4
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.steamShellOpenCommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409cd2
push dword [0x43f0e4]
push 0x44c358
push 1
push eax
push 0x432de8
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409daa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00406e10
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00406360
push 0x41
push str.Unable_to_restore_the_original_registry_entry__HKCS__2__error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040c500
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00405830
mov ecx, dword [ebp - 0x2c]
add esp, 4
mov byte [ebp - 4], 0
cmp ecx, 0xf
jbe 0x409d89
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409d7f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409de9
push ecx
push edx
call fcn.00412fe7
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
call fcn.004025b0
cmp byte [0x440352], 0
jne 0x409dd0
push str.removing_registry_entries__HKCS__2__added_by_loader_
call fcn.00405830
add esp, 4
push str.steam
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412ffa
mov esp, ebp
pop ebp
ret
call fcn.00417e5f
int3
Function at 0x409df0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431265
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x440350], 0
je 0x409f6c
push str.restoring_registry_entries__HKCU_
call fcn.00405830
add esp, 4
mov dword [ebp - 0x5c], 0
lea eax, [ebp - 0x5c]
push eax
push 0xf003f
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x409e9f
push dword [0x43f0d8]
push 0x440358
push 1
push eax
push str.SteamClientDll
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [0x43f0dc]
push 0x444358
push 1
push 0
push str.SteamClientDll64
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00406e10
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00406360
push 0x3e
push str.Unable_to_restore_the_original_registry_entry__HKCU___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040c500
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00405830
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x409f52
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x409f48
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409f85
push ecx
push edx
call fcn.00412fe7
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004025b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412ffa
mov esp, ebp
pop ebp
ret
call fcn.00417e5f
int3
Function at 0x409fa0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x431265
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x43f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x440351], 0
je 0x40a10e
push str.restoring_registry_entries__HKLM_
call fcn.00405830
add esp, 4
mov dword [ebp - 0x5c], 0
cmp dword [0x450370], 7
lea ecx, [ebp - 0x5c]
mov eax, 0x45035c
cmova eax, dword [0x45035c]
push ecx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a041
push dword [0x43f0e0]
push 0x448358
push 1
push eax
push str.InstallPath
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40a10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00406e10
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.00406360
push 0x3e
push str.Unable_to_restore_the_original_registry_entry__HKLM___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040c500
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00405830
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x40a0f4
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40a0ea
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a127
push ecx
push edx
call fcn.00412fe7
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004025b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00412ffa
mov esp, ebp
pop ebp
ret
call fcn.00417e5f
int3
Function at 0x40bfa0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43148d
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push esi
push edi
mov eax, dword [0x43f200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push 0x10021
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
call fcn.00412fb7
add esp, 4
test eax, eax
je 0x40c186
lea esi, [eax + 0x23]
and esi, 0xffffffe0
push 0xfffe
push 0
push esi
lea edi, [esi + 0xfffe]
mov dword [ebp - 0x10], esi
mov dword [esi - 4], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
call fcn.00414dc0
add esp, 0xc
mov dword [ebp - 0x24], edi
cmp dword [0x43f0fc], 7
mov eax, 0x43f0e8
mov dword [ebp - 4], 0
cmova eax, dword [0x43f0e8]
push eax
push 0x7fff
push esi
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, eax
mov ecx, 3
mov dword [ebp - 0x1c], ecx
cmp edx, 0x7ffe
jne 0x40c123
test ecx, ecx
jle 0x40c123
mov ecx, edi
sub ecx, esi
sar ecx, 1
lea esi, [ecx + ecx]
cmp esi, ecx
jae 0x40c09d
mov eax, dword [ebp - 0x10]
lea edi, [eax + esi*2]
jmp 0x40c0db
jbe 0x40c0de
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
sar eax, 1
cmp esi, eax
jbe 0x40c0c9
lea eax, [ebp - 0x11]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00406d30
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
jmp 0x40c0de
sub esi, ecx
add esi, esi
push esi
push 0
push edi
call fcn.00414dc0
add esp, 0xc
add edi, esi
mov dword [ebp - 0x24], edi
cmp dword [0x43f0fc], 7
mov eax, 0x43f0e8
mov esi, edi
cmova eax, dword [0x43f0e8]
sub esi, dword [ebp - 0x10]
push eax
sar esi, 1
push esi
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
lea eax, [esi - 1]
dec ecx
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ecx
cmp edx, eax
je 0x40c080
mov edi, dword [ebp - 0x38]
xorps xmm0, xmm0
push edx
push esi
mov ecx, edi
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00401400
test esi, esi
je 0x40c173
mov ecx, dword [ebp - 0x18]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffe
cmp ecx, 0x1000
jb 0x40c169
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c186
push ecx
push esi
call fcn.00412fe7
add esp, 8
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
call fcn.00417e5f
int3
Function at 0x41181a
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 0x411841
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x411844
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.004117f6
pop esi
leave
ret 8

Function at 0x413f59
Capabilities:
Parse pe header

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

Function at 0x422617
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437e50
push 0x437e48
push str.FlsAlloc
push 0x1f
call fcn.004224fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42264b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321b8]
call esi
jmp 0x422651
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422695
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437e60
push 0x437e58
push str.FlsGetValue
push 0x21
call fcn.004224fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4226cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x4321b8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4226d4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x437e68
push 0x437e60
push str.FlsSetValue
push 0x22
call fcn.004224fe
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42270e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4321b8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x425823
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004131e0
mov eax, dword [0x43f200]
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.00422b5b
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x425865
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4259c1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00413010
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 + 0x451068]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004265c8
mov ecx, dword [esi*4 + 0x451068]
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 0x4259ba
cmp eax, dword [ecx + edi + 0x24]
jne 0x4259ba
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 0x4259ba
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004265c8
add esp, 0x14
test edx, edx
jl 0x4259ba
jg 0x425930
test eax, eax
jb 0x4259ba
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4259ba
jl 0x42594a
cmp dword [ebp - 0x1008], eax
ja 0x4259ba
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x425968
test ebx, ebx
je 0x4259a1
cmp ecx, edi
jae 0x4259a1
mov al, byte [ecx]
cmp al, 0xd
jne 0x425982
lea eax, [edi - 1]
cmp ecx, eax
jae 0x42598e
cmp byte [ecx + 1], 0xa
jne 0x42598e
inc ecx
jmp 0x42598e
movzx eax, al
movsx eax, byte [eax + 0x43f4b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x425968
cmp edx, ebx
jne 0x425968
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4259bf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00412ffa
leave
ret
Function at 0x425a60
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 + 0x451068]
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 0x425aa0
cmp byte [ebx], 0xa
jne 0x425aa0
or byte [edi + eax + 0x28], 4
jmp 0x425aa5
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 0x425ba4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x425b87
inc eax
cmp dl, 0xd
je 0x425ad1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x425af7
cmp eax, ecx
jae 0x425b05
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 0x425ab9
jmp 0x425ba4
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 0x425b82
cmp dword [ebp - 0x10], 0
je 0x425b82
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x451068]
test byte [eax + edi + 0x28], 0x48
je 0x425b5c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425b47
mov byte [esi], dl
jmp 0x425b58
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x451068]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x425ba4
cmp byte [ebp - 1], 0xa
jne 0x425b6b
cmp esi, ebx
jne 0x425b6b
mov byte [esi], 0xa
jmp 0x425ba3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004265e6
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x425ba4
mov byte [esi], 0xd
jmp 0x425ba3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x451068]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425ba1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425ba4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425bad
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 + 0x451068]
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 0x425bf3
cmp word [ebx], dx
jne 0x425bf3
or byte [eax + edi + 0x28], 4
jmp 0x425bf8
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 0x425d5b
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 0x425d3b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x425c39
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425c6f
cmp eax, edx
jae 0x425c7d
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 0x425c14
jmp 0x425d5b
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 0x425d36
cmp dword [ebp - 0x18], 0
je 0x425d36
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x451068]
test byte [eax + edi + 0x28], 0x48
je 0x425d0c
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 0x425cd0
mov word [esi], cx
jmp 0x425d07
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x451068]
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 + 0x451068]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x451068]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x425d5b
pop eax
cmp word [ebp - 4], ax
jne 0x425d1c
cmp esi, ebx
jne 0x425d1c
mov word [esi], ax
jmp 0x425d58
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004265e6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x425d5b
push 0xd
pop eax
jmp 0x425d17
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x451068]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x425d55
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x425d5b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret