joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4930e8]
jne 0x4065fa
repz ret
jmp fcn.0040a72e

Function at 0x40a359
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.004096e6
and dword [ebp - 4], 0
cmp dword [0x4992b4], 0
mov ebx, eax
jne 0x40a40a
push 0x402458
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a4bb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40244c
push edi
call esi
test eax, eax
je 0x40a4bb
push eax
call fcn.00409674
mov dword [esp], 0x40243c
push edi
mov dword [0x4992b4], eax
call esi
push eax
call fcn.00409674
mov dword [esp], 0x402428
push edi
mov dword [0x4992b8], eax
call esi
push eax
call fcn.00409674
mov dword [esp], 0x40240c
push edi
mov dword [0x4992bc], eax
call esi
push eax
call fcn.00409674
pop ecx
mov dword [0x4992c4], eax
test eax, eax
je 0x40a40a
push 0x4023f4
push edi
call esi
push eax
call fcn.00409674
pop ecx
mov dword [0x4992c0], eax
mov eax, dword [0x4992c0]
cmp eax, ebx
je 0x40a462
cmp dword [0x4992c4], ebx
je 0x40a462
push eax
call fcn.004096ef
push dword [0x4992c4]
mov esi, eax
call fcn.004096ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a462
test edi, edi
je 0x40a462
call esi
test eax, eax
je 0x40a459
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a459
test byte [ebp - 0xc], 1
jne 0x40a462
or dword [ebp + 0x10], 0x200000
jmp 0x40a49b
mov eax, dword [0x4992b8]
cmp eax, ebx
je 0x40a49b
push eax
call fcn.004096ef
pop ecx
test eax, eax
je 0x40a49b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a49b
mov eax, dword [0x4992bc]
cmp eax, ebx
je 0x40a49b
push eax
call fcn.004096ef
pop ecx
test eax, eax
je 0x40a49b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4992b4]
call fcn.004096ef
pop ecx
test eax, eax
je 0x40a4bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a4bd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100010d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x88
mov eax, dword [0x1001d040]
xor eax, esp
mov dword [esp + 0x84], eax
cmp dword [ebp + 0xc], 1
push esi
push edi
jne 0x100011db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movaps xmm0, xmmword [str.e_izvHto_Xwru]
mov edx, eax
movups xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0x3e403b6f
xor eax, eax
mov dword [esp + 0x24], 0x4643232b
mov byte [esp + 0x28], 0
mov cl, byte [esp + 0x10]
xor byte [esp + eax + 0x11], cl
inc eax
cmp eax, 0x17
jb 0x10001121
push edx
lea eax, [esp + 0x15]
mov byte [esp + 0x2c], 0
push eax
lea eax, [esp + 0x60]
push 0x32
push eax
call fcn.100014e0
xorps xmm0, xmm0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x68]
movaps xmmword [esp + 0x40], xmm0
add esp, 0x10
mov dword [esp + 0x44], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001168
sub ecx, edx
lea eax, [esp + 0x58]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.100013b0
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x30]
inc edi
cmp dword [esp + 0x44], 0xf
cmova esi, dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
push edi
push esi
push 0xfe5d24
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [esp + 0x44]
cmp ecx, 0xf
jbe 0x100011db
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100011d1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100011f3
push ecx
push edx
call fcn.10003095
add esp, 8
mov ecx, dword [esp + 0x8c]
mov al, 1
pop edi
pop esi
xor ecx, esp
call fcn.10003034
mov esp, ebp
pop ebp
ret 0xc
call fcn.100081f6
int3

Function at 0x10008897
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100088d6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100088d6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100088d6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100088d6
cmp dword [ecx + 0x74], 0xe
jbe 0x100088d6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000b35b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10017990
push 0x10017988
push str.FlsAlloc
push 0x1f
call fcn.1000b277
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b38f
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015118]
call esi
jmp 0x1000b395
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000b3d9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100179a0
push 0x10017998
push str.FlsGetValue
push 0x21
call fcn.1000b277
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b410
push dword [ebp + 8]
mov ecx, esi
call dword [0x10015118]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1000b418
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100179a8
push 0x100179a0
push str.FlsSetValue
push 0x22
call fcn.1000b277
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b452
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10015118]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000d22e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000d2cb
push ebx
push esi
call fcn.1000d1f7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000d18b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000d278
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d2ca
push edi
push eax
call fcn.1000960c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000d298
call fcn.100095d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000d2c9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000d18b
add esp, 0x20
test eax, eax
jne 0x1000d2b7
push edi
call fcn.100095d2
jmp 0x1000d2bf
push ebx
call fcn.100095d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10014260
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001428d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001428d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026d42
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x10033040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xc8], esi
mov dword [ebp - 0xc4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x98
mov edi, eax
lea eax, [ebp - 0xa8]
push 0
push eax
call fcn.1000fa50
add esp, 8
lea ecx, [ebp - 0xa8]
call fcn.10001e90
mov dword [ebp - 4], 0
xor eax, eax
movaps xmm0, xmmword [0x1002fe40]
movups xmmword [ebp - 0xc0], xmm0
mov dword [ebp - 0xb0], 0x403b6f
nop
mov cl, byte [ebp - 0xc0]
xor byte [ebp + eax - 0xbf], cl
inc eax
cmp eax, 0x12
jb 0x10001210
lea edx, [ebp - 0xbf]
mov byte [ebp - 0xad], 0
lea ecx, [ebp - 0xa8]
call fcn.10003c00
mov edx, eax
push edi
mov eax, dword [edx]
mov eax, dword [eax + 4]
or dword [eax + edx + 0x14], 4
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx + edx + 0x14], eax
mov ecx, edx
call fcn.10002180
mov ecx, eax
mov byte [ebp - 0xaa], 0
mov dl, 0x10
mov byte [ebp - 0xaa], 0
mov al, 0x4d
mov byte [ebp - 0xac], dl
xor al, dl
lea edx, [ebp - 0xab]
mov byte [ebp - 0xab], al
call fcn.10003c00
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov edx, dword [ebp - 0x68]
mov eax, edx
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
and al, 0x22
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0xc4], 4
movq qword [ebp - 0xb8], xmm0
mov dword [ebp - 0xb0], 0
cmp al, 2
je 0x10001302
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax]
test ecx, ecx
je 0x10001302
mov eax, dword [ebp - 0x94]
cmp ecx, dword [ebp - 0x6c]
cmovb ecx, dword [ebp - 0x6c]
mov edx, dword [eax]
sub ecx, edx
jmp 0x10001330
test dl, 4
jne 0x10001324
mov eax, dword [ebp - 0x88]
mov ecx, dword [eax]
test ecx, ecx
je 0x10001324
mov eax, dword [ebp - 0x98]
mov edx, dword [eax]
sub ecx, edx
mov eax, dword [ebp - 0x78]
add ecx, dword [eax]
jmp 0x10001330
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb8]
test edx, edx
je 0x1000133d
push ecx
push edx
mov ecx, esi
call fcn.10005cc0
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.10001b00
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], 2
push eax
mov dword [ebp - 0x58], vtable.std::ios_base.0
call fcn.10009fd8
add esp, 4
mov eax, esi
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.1000dd20
mov esp, ebp
pop ebp
ret
Function at 0x10007550
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 [0x1002fe30]
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 0x10007584
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 0x100075b7
sub ecx, esi
lea eax, [esp + 0x31]
push ecx
push eax
mov ecx, edx
call fcn.10005b90
lea ecx, [esp + 0x44]
call fcn.10009f00
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 0x10007632
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 0x10007600
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 0x100075f0
cmp ebx, 0xf
jbe 0x1000765e
lea ecx, [ebx + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10007654
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007670
push ecx
push edi
call fcn.1000dd2e
add esp, 8
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1000dd20
mov esp, ebp
pop ebp
ret
call fcn.10012fbb
int3
Function at 0x10009470
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.1000fa50
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 0x100094d6
movq qword [edi + 0x44], xmm0
jmp 0x100094e4
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 0x1000950d
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.10009d30
cmp byte [edi], 0
jne 0x100095f7
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 0x10009524
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, 0x53
cmovae edi, eax
mov byte [ebp - 0x54], cl
mov al, 0xd3
xor al, cl
mov ecx, dword [ebp - 0x58]
mov byte [ebp - 0x53], al
lea eax, [ebp - 0x53]
push 1
push eax
call fcn.10009d30
push 0x40
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.1000fa50
push edi
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.1000fa50
add esp, 0x18
lea eax, [ebp - 0x4c]
push edi
mov edi, dword [ebp - 0x58]
mov ecx, edi
push eax
call fcn.10009d30
push 8
lea eax, [ebp - 0xc]
mov ecx, edi
push eax
call fcn.10009d30
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 0x100095d0
mov byte [edi], 1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000dd20
mov esp, ebp
pop ebp
ret 4
Function at 0x10009df0
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 0x10009e45
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x6e
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 0x10009e36
lea eax, [ebp - 0x2b]
jmp 0x10009eda
xor eax, eax
xor edi, edi
push ebx
mov dword [ebp - 0x2c], eax
push esi
nop
movzx esi, byte [ecx + eax + 0x5c]
mov dl, 0x18
mov ah, 0x2a
mov byte [ebp - 0x2f], 0
xor dl, ah
mov byte [ebp - 0x34], ah
mov al, 0xf
mov byte [ebp - 0x31], dl
xor al, ah
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x33], al
mov cl, 0x1a
xor cl, ah
mov bl, 0x52
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.10005e50
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 0x10009e50
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 0x10009ed0
lea eax, [ebp - 0x28]
sub ecx, edx
push ecx
push eax
mov ecx, edi
call fcn.10005b90
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.1000dd20
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b050
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.1000b220
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000b12d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033014]
jb 0x1000b09a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033018]
ja 0x1000b09a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b06a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000fa50
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 0x1000b0bf
jmp 0x1000b12d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b113
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b113
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 0x1000b0f6
mov eax, dword [ebp - 8]
jmp 0x1000b12f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b106
xor eax, eax
jmp 0x1000b12f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b128
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000b220
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b06a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b140
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000b250
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000b215
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033014]
jb 0x1000b185
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033018]
ja 0x1000b185
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b155
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1000fa50
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 0x1000b1aa
jmp 0x1000b215
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b1fe
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b1fe
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 0x1000b1e1
mov eax, dword [ebp - 8]
jmp 0x1000b217
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b1f1
xor eax, eax
jmp 0x1000b217
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b210
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000b250
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b155
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000b280
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.1000b670
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003429c], 0
jne 0x1000b2bd
cmp dword [0x10034298], 0
je 0x1000b2bd
mov eax, dword [0x10034298]
mov dword [0x1003429c], eax
cmp dword [0x1003429c], 0
je 0x1000b33a
mov ecx, dword [0x1003429c]
cmp dword [ecx + 8], 0
je 0x1000b33a
mov edx, dword [0x1003429c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000b33a
mov ecx, dword [0x1003429c]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000b33a
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 0x1000b309
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000b310
xor eax, eax
jmp 0x1000b459
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.1000fa50
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000b459
mov edx, dword [0x10034298]
mov dword [0x1003429c], edx
jmp 0x1000b356
mov eax, dword [0x1003429c]
mov ecx, dword [eax + 4]
mov dword [0x1003429c], ecx
cmp dword [0x1003429c], 0
je 0x1000b396
cmp dword [0x1003429c], 0
je 0x1000b394
mov edx, dword [0x1003429c]
cmp dword [edx + 8], 0
je 0x1000b394
mov eax, dword [0x1003429c]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000b394
mov edx, dword [0x1003429c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000b394
jmp 0x1000b2ee
jmp 0x1000b348
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.1000b460
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000b457
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 0x1000b427
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000b447
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 0x1000b41e
mov eax, dword [0x1003429c]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000b2ee
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c1a0
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 0x1000c1b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c1e0
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 0x1000c1de
call sub.KERNEL32.dll_GetLastError
jmp 0x1000c1e2
jmp 0x1000c1b0
xor eax, eax
mov esp, ebp
pop ebp
ret