joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487b68
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4c33d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x45f09e
mov dword [esp + 0xc], ecx
test cl, 1
je 0x45f089
movq xmm0, qword [eax + 8]
movq qword [esp + 0x14], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esp + 0x1c], xmm0
movq xmm0, qword [eax + 0x18]
movq qword [esp + 0x24], xmm0
jmp 0x45f09e
push 0
lea edx, [esp + 0x18]
add eax, 8
and ecx, 0xfffffffe
push edx
push eax
mov eax, dword [ecx]
call eax
add esp, 0xc
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
call fcn.004027d0
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x45f0da
test al, 1
jne 0x45f0da
and eax, 0xfffffffe
mov eax, dword [eax]
test eax, eax
je 0x45f0da
lea ecx, [esp + 0x14]
push 2
push ecx
push ecx
call eax
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x460600
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x460631
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 8], esi
call fcn.0047f1b0
mov dword [esp + 0xc], eax
test esi, esi
jne 0x460639
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x4a371c
lea ecx, [esp + 8]
call fcn.004604a0
int3
Function at 0x460680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487d00
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [esi], vtable.boost::system::system_error.0
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [edi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0040be50
mov dword [ebp - 4], 1
mov dword [esi + 0x2c], vtable.boost::exception.0
mov ecx, dword [edi + 0x30]
mov dword [esi + 0x30], ecx
test ecx, ecx
je 0x46070b
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [esi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x460a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f968
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c33d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_class_std::exception_const__]
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::system::system_error.0
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x14]
push 0xffffffffffffffff
push 0
lea eax, [esi + 0x14]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.0040be50
mov dword [edi + 0x2c], vtable.boost::exception.0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0xffffffff
mov dword [edi], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.1.0
mov dword [edi + 0x2c], vtable.boost::exception_detail::error_info_injector_class_boost::system::system_error_.0
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 4
Function at 0x460b40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 4], eax
push str.RtlGetVersion
push str.ntdll
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x460b95
lea ecx, [ebp - 0x120]
push ecx
call eax
test eax, eax
je 0x460baa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x460cbf
cmp dword [ebp - 0x110], 2
jne 0x460cbf
mov eax, dword [ebp - 0x11c]
cmp eax, 4
ja 0x460bd5
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x460c2b
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x460bf7
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x460c0f
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x460cbf
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x460cba
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x460c56
cmp byte [ebp - 6], 1
setne al
add eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x460c75
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x460c8d
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x460ca5
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
jbe 0x460cbf
mov eax, 0x64
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
cmp eax, 7
jae 0x460ca7
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0047cd06
mov esp, ebp
pop ebp
ret
Function at 0x460cd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x487da6
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4c33d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 7
xor eax, eax
push str.c:log_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00401d60
mov dword [ebp - 4], 0
mov eax, dword [0x4c935c]
test al, 1
jne 0x460d4f
or eax, 1
mov dword [0x4c935c], eax
mov byte [ebp - 4], 1
call fcn.0045a420
push 0x488db0
call fcn.0047ce4d
add esp, 4
mov byte [ebp - 4], 0
cmp dword [0x4c9358], 8
mov edx, 0x4c9344
cmovae edx, dword [0x4c9344]
cmp word [edx], 0
jne 0x460d6c
xor ecx, ecx
jmp 0x460d80
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x460d71
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00409270
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
cmp dword [ebp - 0x14], 8
jb 0x460db3
push dword [ebp - 0x28]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047cd06
mov esp, ebp
pop ebp
ret

Function at 0x460ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
test dword [0x4c9be8], 0x40000000
je 0x460ebf
push dword [ebp + 8]
call fcn.00460e60
add esp, 4
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esp, ebp
pop ebp
ret
Function at 0x460ee0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [0x4c9bec]
test ecx, ecx
je 0x461052
cmp eax, ecx
jbe 0x461052
mov edx, dword [0x4c9bf0]
push ebx
push esi
test edx, edx
je 0x460ffb
cmp edx, ecx
jae 0x460ffb
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
sub eax, edx
push eax
push edi
call esi
push dword [0x4c9bf0]
call fcn.0047cbb2
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x460f52
push 2
push eax
push eax
push edi
call esi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4c9bf0]
xor esi, esi
test eax, eax
je 0x460f84
lea ecx, [ecx]
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x460fd4
add esi, dword [ebp - 4]
mov eax, dword [0x4c9bf0]
cmp esi, eax
jb 0x460f60
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push 0
push edi
call eax
push 2
lea edx, [ebp - 8]
mov ecx, edi
mov dword [ebp - 8], 0xfeff
call fcn.00460ea0
add esp, 4
lea eax, [ebp - 4]
push 0
push eax
push dword [0x4c9bf0]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
cmp esi, dword [0x4c9bf0]
jae 0x460f84
push ebx
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 4
push 2
push 0
push 0
push edi
call eax
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test dword [0x4c9be8], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x46102f
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x46102f
cmp al, 0x5a
je 0x46102f
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x461060
Capabilities:
Get file size
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x4c9be0], 0
push edi
mov edi, edx
je 0x461183
push esi
push 0x80
push 0x4c9c1c
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push 4
push 0
push 0
push 0xc0000000
push 0x4c9c1c
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x461182
mov ecx, dword [0x4c9be8]
and ecx, 4
test cl, 7
je 0x4610c4
mov ecx, esi
call fcn.00460ee0
push ebx
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x461122
test dword [0x4c9be8], 0x40000000
mov dword [ebp - 4], 0xfeff
je 0x46110c
mov al, byte [ebp - 3]
mov byte [ebp - 4], 0xa5
test al, al
je 0x46110c
cmp al, 0x5a
je 0x46110c
xor al, 0x5a
mov byte [ebp - 3], al
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 8], 0
call ebx
test edi, edi
jne 0x46112a
xor ecx, ecx
jmp 0x461141
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461130
sub ecx, edx
sar ecx, 1
add ecx, ecx
test dword [0x4c9be8], 0x40000000
je 0x461168
push ecx
mov edx, edi
mov ecx, esi
call fcn.00460e60
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 8]
push eax
push ecx
push edi
push esi
mov dword [ebp - 8], 0
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4678d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [section..data], 0xffffffff
jne 0x467931
push 0x114
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
jb 0x467921
mov dword [ebp - 8], 1
jmp 0x467928
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov dword [section..data], edx
cmp dword [section..data], 1
jne 0x467943
mov dword [ebp - 4], 1
jmp 0x46794a
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x468950
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push 1
push 0
lea eax, [ebp - 0x14c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00469940
add esp, 0x10
mov byte [ebp - 1], al
movzx edx, byte [ebp - 1]
test edx, edx
je 0x4689c0
mov eax, dword [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x64
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x469640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov byte [ebp - 1], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46968b
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jne 0x469674
mov byte [ebp - 1], 1
jmp 0x469689
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
push str.ReadFromPipe:_Error_reading_from_pipe:_Number_read_was__d__requested_was__d_n
call fcn.00467980
add esp, 0xc
jmp 0x469698
push str.ReadFromPipe:_Error_reading_from_pipe:_ReadFile_returned_False_n
call fcn.00467980
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x46b950
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x4c3334], 0xffffffff
jne 0x46b9c3
push 0x114
push 0
lea eax, [ebp - 0x11c]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
mov dword [ebp - 0x11c], 0x114
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
ja 0x46b9b3
cmp dword [ebp - 0x118], 6
jne 0x46b9aa
cmp dword [ebp - 0x114], 1
ja 0x46b9b3
mov dword [ebp - 8], 0
jmp 0x46b9ba
mov dword [ebp - 8], 1
mov edx, dword [ebp - 8]
mov dword [0x4c3334], edx
cmp dword [0x4c3334], 1
jne 0x46b9d5
mov dword [ebp - 4], 1
jmp 0x46b9dc
mov dword [ebp - 4], 0
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x46cb50
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call fcn.0046ffc0
test eax, eax
je 0x46cb66
xor eax, eax
jmp 0x46cc05
mov dword [ebp - 0x10], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
push 0x8000
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0xc], 0xffffffff
je 0x46cc02
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46cbf8
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x46ccd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8470
push 0x47d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call fcn.0046ed70
test eax, eax
jne 0x46cd45
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x46cd45
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x46cd45
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x46cd71
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46d400
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x48bfd8
push 0x48bfcc
call fcn.0046b4c0
add esp, 0x14
push 1
lea eax, [ebp - 0x110]
push eax
call fcn.0046b2a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x46d490
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46d480
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0xc], 1
jmp 0x46d486
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x46ec10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a8500
push 0x47d4e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x46ece8
cmp dword [ebp + 0xc], 0
jne 0x46ec5d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], 0
push 0xc
call fcn.00470de0
mov dword [ebp - 0x1c], eax
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x46eccc
cmp dword [ebp - 0x2c], 0x10000
jne 0x46ecae
push 0x40
push 0x2000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
jmp 0x46eccc
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
jne 0x46ecc4
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
mov dword [ebp - 0x1c], ecx
jmp 0x46ecca
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], edx
jmp 0x46ec6e
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x46ed14
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46eec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8
Function at 0x470aa0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
mov dword [ebp - 8], 0
push 0xc
push 0
lea eax, [ebp - 0x34]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
cmp dword [ebp + 0xc], 0
jne 0x470adb
lea ecx, [ebp - 0x34]
push ecx
call fcn.004700d0
add esp, 4
test eax, eax
je 0x470adb
lea edx, [ebp - 0x34]
mov dword [ebp + 0xc], edx
call fcn.00470830
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x470c44
movzx ecx, byte [ebp + 0x24]
test ecx, ecx
jne 0x470c44
push 0
push 0x48c110
call fcn.0046d270
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x470c44
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0xc], 0
je 0x470b4a
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
je 0x470b77
mov ecx, dword [ebp + 0x1c]
and ecx, 0x10000
je 0x470b71
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
jmp 0x470b77
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x25
call fcn.0046ec10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x470bc5
mov ecx, 9
mov esi, 0x48c264
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x57], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x47], eax
push 1
push 0x48c228
call fcn.0046d200
mov dword [ebp - 0x42], eax
push 1
push 0x48c1b8
call fcn.0046d200
mov dword [ebp - 0x3d], eax
cmp dword [ebp - 4], 0
je 0x470c44
lea ecx, [ebp - 0x20]
push ecx
push 0x25
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x470c3e
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
and edx, 4
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x470c2f
mov edx, 4
shl edx, 0
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + edx - 0x28]
mov dword [eax], ecx
jmp 0x470c3c
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.0046ed30
jmp 0x470c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x30], 0
je 0x470c5d
mov ecx, dword [ebp - 0x30]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret