joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402499
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov word [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x2e], 0
mov dword [ebp - 0x34], 0x101
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
call sub.KERNEL32.dll_GetCurrentProcess
mov ebx, eax
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 2
lea edx, [ebp - 0x60]
add edx, 0x40
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_DuplicateHandle
sub esp, 0x1c
mov eax, dword [0x40a078]
lea edx, [ebp - 0x1c]
mov dword [esp + 0x24], edx
lea edx, [ebp - 0x60]
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_CreateProcessA
sub esp, 0x28
test eax, eax
je 0x4025b9
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
jmp 0x40260e
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x40a0d0
mov dword [esp], eax
call sub.msvcrt.dll__itoa
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_execute_shell__error___s
call fcn.00402ddc
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4028dc
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov word [ebp - 0xa], 0x101
movzx eax, word [ebp - 0xa]
lea edx, [ebp - 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40292f
movzx eax, word [ebp - 0x1a0]
cmp al, 1
jne 0x402927
movzx eax, word [ebp - 0x1a0]
shr ax, 8
cmp al, 1
je 0x402930
call sub.WSOCK32.DLL_WSACleanup
nop
jmp 0x402930
nop
leave
ret
Function at 0x403f2d
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov edx, dword [0x40a148]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
mov ebx, eax
cmp ebx, 1
je 0x403f7a
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], str.udptest_first_write_failed___errno__d
call fcn.00402ddc
mov eax, dword [0x40a070]
test eax, eax
je 0x403f92
mov eax, dword [0x40a070]
mov dword [esp], eax
call sub.msvcrt.dll__sleep
jmp 0x40400b
mov word [0x40a06c], 0
mov dword [0x40a070], 5
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7a69
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.004036ca
mov ebx, eax
test ebx, ebx
jle 0x403fe4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
sub esp, 8
mov eax, ebx
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
sub esp, 4
mov dword [0x40a070], 0
movzx eax, word [0x40a06c]
add eax, 1
mov word [0x40a06c], ax
call sub.msvcrt.dll__errno
mov dword [eax], 0
mov edx, dword [0x40a148]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
mov ebx, eax
cmp ebx, 1
jne 0x40404a
mov eax, dword [ebp + 8]
jmp 0x404073
mov eax, dword [ebp + 8]
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WSOCK32.DLL_shutdown
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WSOCK32.DLL_closesocket
sub esp, 4
mov eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x404239
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, 0
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
jmp 0x4042de
movzx eax, byte [ebx]
cmp al, 0xff
jne 0x4042d7
mov byte [0x40a07e], 0xff
add ebx, 1
sub esi, 1
movzx eax, byte [ebx]
cmp al, 0xfb
je 0x404274
movzx eax, byte [ebx]
cmp al, 0xfc
jne 0x404279
mov edi, 0xfffffffe
movzx eax, byte [ebx]
cmp al, 0xfd
je 0x404287
movzx eax, byte [ebx]
cmp al, 0xfe
jne 0x40428c
mov edi, 0xfffffffc
mov eax, edi
test al, al
je 0x4042d8
mov eax, edi
mov byte [0x40a07f], al
add ebx, 1
sub esi, 1
movzx eax, byte [ebx]
mov byte [0x40a080], al
mov edx, 0x40a07e
mov eax, dword [0x407008]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
mov edi, 0
jmp 0x4042d8
nop
add ebx, 1
sub esi, 1
test esi, esi
jg 0x404252
lea esp, [ebp - 0xc]
add esp, 0
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x405af0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 8], esi
mov esi, edx
mov dword [ebp - 4], edi
mov edi, ecx
jne 0x405b16
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x38]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x405bf1
mov eax, dword [ebp - 0x24]
cmp eax, 4
jne 0x405b60
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
je 0x405b40
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x40], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x24]
sub esp, 0x10
cmp eax, 0x40
setne byte [ebp - 0x39]
cmp eax, 4
setne byte [ebp - 0x3a]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x40]
cmp byte [ebp - 0x3a], 0
je 0x405b09
cmp byte [ebp - 0x39], 0
je 0x405b09
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
sub esp, 0x10
mov esp, ebp
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00405aa0
lea esi, [esi]
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ed0
nop
mov ecx, 0x3ac1bcc
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
mov ecx, 0x61ff2212
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0040ef40
mov eax, dword [0x415044]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x1004]
push edx
call fcn.00404cd7
mov esi, eax
mov word [ebp + esi - 0x1004], 0xa0d
add esi, 2
add esp, 0xc
cmp dword [0x419120], 1
mov byte [ebp + esi - 0x1004], 0
jne 0x40107d
push edi
push 0x413214
push str.log.txt
call fcn.00404dad
mov edi, eax
lea eax, [ebp - 0x1004]
push eax
push 0x413220
push edi
call fcn.00404dc4
push edi
call fcn.00404f3d
add esp, 0x18
pop edi
mov eax, dword [0x416c04]
push 0
lea ecx, [ebp - 0x1008]
push ecx
push esi
lea edx, [ebp - 0x1004]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404bf3
mov esp, ebp
pop ebp
ret
Function at 0x401620
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push str.TEMP
mov dword [esp + 0x14], 0x3b6
mov dword [esp + 0x10], 0x12c
call fcn.004052a1
push eax
push str._sunipos
push 0x416fe8
call fcn.00405196
push 0x4132e4
push 0x416fe8
call fcn.00404dad
mov esi, eax
add esp, 0x18
test esi, esi
je 0x40168b
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push str._d__d
push esi
call fcn.00405415
push esi
call fcn.00404f3d
add esp, 0x14
push 0x2c
lea edx, [esp + 0x38]
push 0
push edx
call fcn.0040c0f0
add esp, 0xc
push 0
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x3c], 0x404920
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x5c], 0x4132f0
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0x8c
push 0x5a
push ecx
push edx
push 0x80000
push str._Hor
push 0x4132f0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp + 0x14]
push ecx
push eax
mov dword [0x416c0c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x416c0c
push 0
push 0x4020e0
call fcn.004054fc
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
add esp, 0xc
push 0
push 0
push 0
lea edx, [esp + 0x20]
push edx
call esi
test eax, eax
je 0x401758
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [esp + 0x14]
push eax
call edi
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
call esi
test eax, eax
jne 0x401740
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404bf3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415044]
jne 0x404bfd
repz ret
jmp fcn.00405b99
Function at 0x40e47b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040963e
and dword [ebp - 0x14], 0
cmp dword [0x416b94], 0
mov dword [ebp - 0x18], eax
jne 0x40e52e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e5d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e5d6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416b94], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416b98], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416b9c], eax
call edi
push eax
call esi
mov dword [0x416ba4], eax
test eax, eax
je 0x40e52e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416ba0], eax
mov eax, dword [0x416ba0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e587
cmp dword [0x416ba4], ecx
je 0x40e587
push eax
call esi
push dword [0x416ba4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e587
test ebx, ebx
je 0x40e587
call edi
test eax, eax
je 0x40e57e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e57e
test byte [ebp - 8], 1
jne 0x40e587
or dword [ebp + 0x10], 0x200000
jmp 0x40e5ba
mov eax, dword [0x416b98]
cmp eax, dword [ebp - 0x18]
je 0x40e5ba
push eax
call esi
test eax, eax
je 0x40e5ba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e5ba
mov eax, dword [0x416b9c]
cmp eax, dword [ebp - 0x18]
je 0x40e5ba
push eax
call esi
test eax, eax
je 0x40e5ba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416b94]
call esi
test eax, eax
je 0x40e5d6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e5d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404bf3
leave
ret
Function at 0x10008070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100080ac
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push 0
push 0x10007f80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, 0xffffffff
je 0x100080ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc

Function at 0x10009840
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10046e2d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x1005c024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [0x1005e6ac]
test esi, esi
je 0x100099b0
cmp esi, 0xffffffff
je 0x100099b0
push 0x50
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x14], 0
push 0
push eax
call fcn.100288f0
add esp, 0xc
lea ecx, [ebp - 0x7c]
call fcn.10009d40
mov dword [ebp - 4], 0
mov eax, edi
cmp word [edi], 0
je 0x100098ba
add eax, 2
cmp word [eax], 0
jne 0x100098b1
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x7c]
call fcn.1000a260
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10009962
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x100099b0
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x1000992b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009921
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100099b8
push ecx
push edx
call fcn.10026a41
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10009c80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10026a33
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x10009992
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10009988
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100099b8
push ecx
push edx
call fcn.10026a41
add esp, 8
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.10009c80
mov al, 1
jmp 0x10009947
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.1002baea
int3
Function at 0x1000aa60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000ac10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ab2d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000aaaa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005c004]
ja 0x1000aaaa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000aa7a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100288f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000aad0
jmp 0x1000ab2d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ab13
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ab13
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000ab06
mov eax, dword [ebp - 8]
jmp 0x1000ab2f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ab28
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000ac10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000aa7a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ab40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000ac40
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000ac05
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000ab85
mov eax, dword [ebp - 4]
cmp eax, dword [0x1005c004]
ja 0x1000ab85
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ab55
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100288f0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000abab
jmp 0x1000ac05
cmp dword [ebp - 0x14], 0x10000
jne 0x1000abee
cmp dword [ebp - 0x18], 0x10000
jb 0x1000abee
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000abe1
mov eax, dword [ebp - 8]
jmp 0x1000ac07
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ac00
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000ac40
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ab55
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ac70
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000b060
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1005d824], 0
jne 0x1000acad
cmp dword [0x1005d820], 0
je 0x1000acad
mov eax, dword [0x1005d820]
mov dword [0x1005d824], eax
cmp dword [0x1005d824], 0
je 0x1000ad2a
mov ecx, dword [0x1005d824]
cmp dword [ecx + 8], 0
je 0x1000ad2a
mov edx, dword [0x1005d824]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000ad2a
mov ecx, dword [0x1005d824]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000ad2a
mov eax, dword [0x1005d824]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000acf9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000ad00
xor eax, eax
jmp 0x1000ae49
mov ecx, dword [0x1005d824]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.100288f0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000ae49
mov edx, dword [0x1005d820]
mov dword [0x1005d824], edx
jmp 0x1000ad46
mov eax, dword [0x1005d824]
mov ecx, dword [eax + 4]
mov dword [0x1005d824], ecx
cmp dword [0x1005d824], 0
je 0x1000ad86
cmp dword [0x1005d824], 0
je 0x1000ad84
mov edx, dword [0x1005d824]
cmp dword [edx + 8], 0
je 0x1000ad84
mov eax, dword [0x1005d824]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000ad84
mov edx, dword [0x1005d824]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000ad84
jmp 0x1000acde
jmp 0x1000ad38
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000ae50
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000ae47
mov eax, dword [ebp - 0x18]
mov dword [0x1005d824], eax
mov ecx, dword [0x1005d824]
mov dword [ecx], 0x52727464
mov edx, dword [0x1005d824]
mov dword [edx + 8], 0
mov eax, dword [0x1005d824]
mov ecx, dword [0x1005d820]
mov dword [eax + 4], ecx
mov edx, dword [0x1005d824]
mov dword [0x1005d820], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1005d824]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000ae17
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000ae37
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000ae0e
mov eax, dword [0x1005d824]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000acde
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c710
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x1005d86c], 0
je 0x1000c726
xor eax, eax
jmp 0x1000c942
cmp dword [0x1005d868], 0
je 0x1000c739
mov eax, dword [0x1005d868]
jmp 0x1000c942
push 0x24
push 0
push 0x1005d844
call fcn.100288f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x1005d844], eax
push 0
push 0
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x1005d848], eax
cmp dword [0x1005d848], 0
jne 0x1000c7de
mov dword [0x1005d86c], 1
cmp dword [0x1005d848], 0
je 0x1000c791
mov eax, dword [0x1005d848]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1005d84c], 0
mov dword [0x1005d850], 0
mov dword [0x1005d854], 0
mov dword [0x1005d858], 0
mov dword [0x1005d85c], 0
mov dword [0x1005d860], 0
mov dword [0x1005d864], 0
xor eax, eax
jmp 0x1000c942
push str.ImagehlpApiVersionEx
mov ecx, dword [0x1005d848]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d84c], eax
push str.SymInitialize
mov edx, dword [0x1005d848]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d850], eax
push str.SymSetOptions
mov eax, dword [0x1005d848]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d854], eax
push str.SymGetOptions
mov ecx, dword [0x1005d848]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d858], eax
push str.SymLoadModule64
mov edx, dword [0x1005d848]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d85c], eax
push str.SymGetModuleInfo64
mov eax, dword [0x1005d848]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d860], eax
push str.SymFromName
mov ecx, dword [0x1005d848]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1005d864], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.100288f0
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x1005d84c], 0
je 0x1000c8c3
cmp dword [0x1005d850], 0
je 0x1000c8c3
cmp dword [0x1005d85c], 0
je 0x1000c8c3
cmp dword [0x1005d860], 0
je 0x1000c8c3
cmp dword [0x1005d864], 0
jne 0x1000c8c8
jmp 0x1000c772
lea ecx, [ebp - 0xc]
push ecx
call dword [0x1005d84c]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x1000c8e0
jmp 0x1000c772
push 0
push 0
mov eax, dword [0x1005d844]
push eax
call dword [0x1005d850]
test eax, eax
jne 0x1000c8f9
jmp 0x1000c772
cmp dword [0x1005d858], 0
je 0x1000c933
cmp dword [0x1005d854], 0
je 0x1000c933
call dword [0x1005d858]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x1005d854]
mov dword [0x1005d868], 0x1005d844
mov eax, dword [0x1005d868]
mov esp, ebp
pop ebp
ret