joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049f0
Capabilities:
Get common file path
Get disk information
Get hostname
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2160
call fcn.0040fb80
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x4813c8]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x4813cc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.004049e0
mov ecx, dword [0x4813d0]
mov edx, dword [0x4813d4]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a60
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x48f8c4]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a8c
mov dword [0x48f8c0], 0xedeb2e40
jmp 0x404aa7
cmp eax, 0x3eb
jne 0x404aa7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x48f350], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x48f8c4], 0x9e6
mov dword [0x48f8bc], 0xf4ea3dee
jne 0x404ae2
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x48f8c4], 0x213
jne 0x404b80
push 0
lea eax, [ebp - 0x1960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x960]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x2160]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x48f8c4], 0xc
jne 0x404b9e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404bf0
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Get thread local storage value
Read pipe
Set environment variable
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1408
call fcn.0040fb80
mov eax, dword [0x48f8c4]
mov ecx, dword [0x48f354]
shr eax, 3
test eax, eax
jbe 0x404d0a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x48f8c4], 0x959
jne 0x404cf0
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
lea ecx, [ebp - 0x1408]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [ebp - 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004049f0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404c30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408d4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x480540]
jne 0x408d56
repz ret
jmp fcn.0040d00b

Function at 0x40c043
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a3ed
and dword [ebp - 4], 0
cmp dword [0x4865a0], 0
mov ebx, eax
jne 0x40c0f4
push 0x4024fc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c1a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024f0
push edi
call esi
test eax, eax
je 0x40c1a5
push eax
call fcn.0040a37b
mov dword [esp], 0x4024e0
push edi
mov dword [0x4865a0], eax
call esi
push eax
call fcn.0040a37b
mov dword [esp], 0x4024cc
push edi
mov dword [0x4865a4], eax
call esi
push eax
call fcn.0040a37b
mov dword [esp], 0x4024b0
push edi
mov dword [0x4865a8], eax
call esi
push eax
call fcn.0040a37b
pop ecx
mov dword [0x4865b0], eax
test eax, eax
je 0x40c0f4
push 0x402498
push edi
call esi
push eax
call fcn.0040a37b
pop ecx
mov dword [0x4865ac], eax
mov eax, dword [0x4865ac]
cmp eax, ebx
je 0x40c14c
cmp dword [0x4865b0], ebx
je 0x40c14c
push eax
call fcn.0040a3f6
push dword [0x4865b0]
mov esi, eax
call fcn.0040a3f6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c14c
test edi, edi
je 0x40c14c
call esi
test eax, eax
je 0x40c143
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c143
test byte [ebp - 0xc], 1
jne 0x40c14c
or dword [ebp + 0x10], 0x200000
jmp 0x40c185
mov eax, dword [0x4865a4]
cmp eax, ebx
je 0x40c185
push eax
call fcn.0040a3f6
pop ecx
test eax, eax
je 0x40c185
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c185
mov eax, dword [0x4865a8]
cmp eax, ebx
je 0x40c185
push eax
call fcn.0040a3f6
pop ecx
test eax, eax
je 0x40c185
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4865a0]
call fcn.0040a3f6
pop ecx
test eax, eax
je 0x40c1a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c1a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026c00
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xb0], edi
mov dword [ebp - 0xb0], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov ebx, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1000fdf0
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.10001f10
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x1002fd00]
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb4], 0x2c5703
nop word [eax + eax]
mov cl, byte [ebp - 0xc4]
xor byte [ebp + eax - 0xc3], cl
inc eax
cmp eax, 0x12
jb 0x10001210
lea edx, [ebp - 0xc3]
mov byte [ebp - 0xb1], 0
lea ecx, [ebp - 0xa8]
call fcn.10003ba0
mov esi, eax
push 0
push 8
mov eax, dword [esi]
mov eax, dword [eax + 4]
or dword [eax + esi + 0x14], 4
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + esi + 0x14], eax
lea eax, [ebp - 0xd8]
push eax
call fcn.1000a315
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.10003e40
mov ecx, eax
push ebx
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov byte [eax + ecx + 0x40], 0x30
call fcn.10002200
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0xe
mov byte [ebp - 0xaa], 0
mov al, 0x53
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.10003ba0
push edi
lea ecx, [ebp - 0xa8]
call fcn.10001e20
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xac], eax
lea ecx, [ebp - 0xa4]
call fcn.10001a90
mov eax, dword [ebp - 0xa8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa8], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xa8]
mov edx, dword [eax + 4]
lea ecx, [edx - 8]
mov dword [ebp + edx - 0xac], ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.1000a376
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e0c0
mov esp, ebp
pop ebp
ret
Function at 0x10007740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x10033040]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x1002fd10]
push ebx
push esi
mov ebx, edx
mov dword [esp + 0xc], ecx
push edi
mov dword [esp + 0x14], ebx
xor ecx, ecx
movups xmmword [esp + 0x18], xmm0
mov byte [esp + 0x28], 0
mov al, byte [esp + 0x18]
xor byte [esp + ecx + 0x19], al
inc ecx
cmp ecx, 0xf
jb 0x10007774
sub esp, 0x18
mov byte [esp + 0x40], 0
mov edx, esp
lea ecx, [esp + 0x31]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100077a7
sub ecx, esi
lea eax, [esp + 0x31]
push ecx
push eax
mov ecx, edx
call fcn.10005c90
lea ecx, [esp + 0x44]
call fcn.1000a270
mov edi, dword [esp + 0x44]
xor edx, edx
add esp, 0x18
mov dword [esp + 0xc], edx
test ebx, ebx
mov ebx, dword [esp + 0x40]
jle 0x10007822
nop dword [eax + eax]
cmp ebx, 0xf
lea ecx, [esp + 0x2c]
cmova ecx, edi
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100077f0
sub ecx, esi
mov eax, edx
cmp ebx, 0xf
lea esi, [esp + 0x2c]
cmova esi, edi
xor edx, edx
div ecx
mov ecx, dword [esp + 0x10]
mov al, byte [edx + esi]
mov edx, dword [esp + 0xc]
xor byte [edx + ecx], al
inc edx
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x14]
jl 0x100077e0
cmp ebx, 0xf
jbe 0x1000784e
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10007844
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007860
push ecx
push edi
call fcn.1000e0ce
add esp, 8
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000e0c0
mov esp, ebp
pop ebp
ret
call fcn.1001335b
int3
Function at 0x100097e0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x54], eax
push 0x40
push 0
mov dword [ebp - 0x58], edi
lea eax, [edi + 1]
push eax
call fcn.1000fdf0
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
movq qword [edi + 0x44], xmm0
lea esi, [edi + 0x4c]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x50], 0
mov eax, dword [eax]
lea ebx, [edi + 0x5c]
movups xmmword [esi], xmm0
lea ecx, [ebp - 0x50]
add esp, 0xc
movups xmmword [ebx], xmm0
mov byte [edi], 0
cmp eax, dword [ecx]
jne 0x10009846
movq qword [edi + 0x44], xmm0
jmp 0x10009854
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x1000987d
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.1000a0a0
cmp byte [edi], 0
jne 0x10009967
xor ecx, ecx
lea edx, [edi + 0x46]
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0xc], al
movzx eax, byte [edx - 5]
mov byte [ebp + ecx - 0xb], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0xa], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 9], al
add ecx, 4
cmp ecx, 8
jb 0x10009894
mov ecx, dword [edi + 0x44]
mov eax, 0x78
shr ecx, 3
mov edi, 0x38
and ecx, 0x3f
mov byte [ebp - 0x52], 0
sub eax, ecx
mov byte [ebp - 0x52], 0
sub edi, ecx
cmp ecx, 0x38
mov cl, 6
cmovae edi, eax
mov byte [ebp - 0x54], cl
mov al, 0x86
xor al, cl
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 0x53], al
lea eax, [ebp - 0x53]
push 1
push eax
call fcn.1000a0a0
push 0x40
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.1000fdf0
push edi
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.1000fdf0
add esp, 0x18
lea eax, [ebp - 0x4c]
push edi
mov edi, dword [ebp - 0x58]
mov ecx, edi
push eax
call fcn.1000a0a0
push 8
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.1000a0a0
mov edx, 4
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 4]
mov byte [ebx], al
lea ebx, [ebx + 4]
movzx eax, byte [esi - 3]
mov byte [ebx - 3], al
movzx eax, byte [esi - 2]
mov byte [ebx - 2], al
mov cl, byte [esi - 1]
mov byte [ebx - 1], cl
sub edx, 1
jne 0x10009940
mov byte [edi], 1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e0c0
mov esp, ebp
pop ebp
ret 4
Function at 0x1000a160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c], edi
cmp byte [ecx], 0
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edi
jne 0x1000a1b5
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x44
movups xmmword [edi], xmm0
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a1a6
lea eax, [ebp - 0x2b]
jmp 0x1000a24a
xor eax, eax
xor edi, edi
push ebx
mov dword [ebp - 0x2c], eax
push esi
nop
movzx esi, byte [ecx + eax + 0x5c]
mov dl, 0x37
mov ah, 5
mov byte [ebp - 0x2f], 0
xor dl, ah
mov byte [ebp - 0x34], ah
mov al, 0x20
mov byte [ebp - 0x31], dl
xor al, ah
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x33], al
mov cl, 0x35
xor cl, ah
mov bl, 0x7d
xor bl, ah
mov byte [ebp - 0x32], cl
push esi
lea eax, [ebp - 0x33]
mov byte [ebp - 0x30], bl
push eax
mov eax, 0x21
sub eax, edi
push eax
lea eax, [ebp - 0x28]
add eax, edi
push eax
call fcn.10005f50
mov eax, dword [ebp - 0x2c]
add edi, 2
mov ecx, dword [ebp - 0x38]
inc eax
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp edi, 0x20
jb 0x1000a1c0
mov edi, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov byte [ebp - 8], 0
pop esi
pop ebx
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea edx, [ecx + 1]
mov dword [edi + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a240
lea eax, [ebp - 0x28]
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.10005c90
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.1000e0c0
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b3f0
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.1000b5c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000b4cd
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033014]
jb 0x1000b43a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033018]
ja 0x1000b43a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b40a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000fdf0
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 0x1000b45f
jmp 0x1000b4cd
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b4b3
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b4b3
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 0x1000b496
mov eax, dword [ebp - 8]
jmp 0x1000b4cf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b4a6
xor eax, eax
jmp 0x1000b4cf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b4c8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000b5c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b40a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b4e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000b5f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000b5b5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033014]
jb 0x1000b525
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033018]
ja 0x1000b525
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b4f5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000fdf0
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 0x1000b54a
jmp 0x1000b5b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b59e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b59e
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 0x1000b581
mov eax, dword [ebp - 8]
jmp 0x1000b5b7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b591
xor eax, eax
jmp 0x1000b5b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b5b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000b5f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b4f5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b620
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.1000ba10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003429c], 0
jne 0x1000b65d
cmp dword [0x10034298], 0
je 0x1000b65d
mov eax, dword [0x10034298]
mov dword [0x1003429c], eax
cmp dword [0x1003429c], 0
je 0x1000b6da
mov ecx, dword [0x1003429c]
cmp dword [ecx + 8], 0
je 0x1000b6da
mov edx, dword [0x1003429c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000b6da
mov ecx, dword [0x1003429c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000b6da
mov eax, dword [0x1003429c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000b6a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000b6b0
xor eax, eax
jmp 0x1000b7f9
mov ecx, dword [0x1003429c]
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.1000fdf0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000b7f9
mov edx, dword [0x10034298]
mov dword [0x1003429c], edx
jmp 0x1000b6f6
mov eax, dword [0x1003429c]
mov ecx, dword [eax + 4]
mov dword [0x1003429c], ecx
cmp dword [0x1003429c], 0
je 0x1000b736
cmp dword [0x1003429c], 0
je 0x1000b734
mov edx, dword [0x1003429c]
cmp dword [edx + 8], 0
je 0x1000b734
mov eax, dword [0x1003429c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000b734
mov edx, dword [0x1003429c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000b734
jmp 0x1000b68e
jmp 0x1000b6e8
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.1000b800
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000b7f7
mov eax, dword [ebp - 0x18]
mov dword [0x1003429c], eax
mov ecx, dword [0x1003429c]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003429c]
mov dword [edx + 8], 0
mov eax, dword [0x1003429c]
mov ecx, dword [0x10034298]
mov dword [eax + 4], ecx
mov edx, dword [0x1003429c]
mov dword [0x10034298], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003429c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000b7c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000b7e7
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 0x1000b7be
mov eax, dword [0x1003429c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000b68e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10034298]
mov dword [ebp - 4], eax
jmp 0x1000c559
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c580
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 0x1000c57e
call sub.KERNEL32.dll_GetLastError
jmp 0x1000c582
jmp 0x1000c550
xor eax, eax
mov esp, ebp
pop ebp
ret