joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008b970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ecx + 0xbc]
mov eax, dword [ecx + 0xc4]
push esi
push edi
lea esi, [ebp + 8]
mov edi, 4
mov eax, dword [eax + edx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x10525220]
sub edi, 1
jne 0x1008b990
mov ecx, dword [0x105ef74c]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1a34], eax
jne 0x1008b9c2
mov dword [ecx + 0x1a38], eax
cmp dword [ecx + 0x1a6c], eax
jne 0x1008b9d1
mov byte [ecx + 0x1a70], 1
pop ebp
ret 4

Function at 0x1008b9e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
movss xmm0, dword [edx]
mov edi, 0x10
subss xmm0, dword [esi + 0xc]
mov ecx, dword [esi + 0xbc]
cvttss2si eax, xmm0
movss xmm0, dword [edx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 0x10], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [ebp - 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [edx + 0xc]
subss xmm0, dword [esi + 0x10]
mov dword [ebp - 8], eax
cvttss2si eax, xmm0
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc4]
lea esi, [ebp - 0x10]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x10525220]
sub edi, 1
jne 0x1008ba50
mov eax, dword [0x105ef74c]
not edx
pop edi
pop esi
cmp dword [eax + 0x1a34], edx
jne 0x1008ba81
mov dword [eax + 0x1a38], edx
cmp dword [eax + 0x1a6c], edx
jne 0x1008ba90
mov byte [eax + 0x1a70], 1
mov eax, edx
mov esp, ebp
pop ebp
ret 4
Function at 0x1008c080
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1010c603
push eax
mov dword fs:[0], esp
mov eax, dword [0x105ef74c]
push ebx
sub esp, 0x28
push esi
push edi
test eax, eax
je 0x1008c0c0
inc dword [eax + 0x374]
push dword [0x105ef750]
push 0x3bf8
call fcn.10088500
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x11]
add esp, 8
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1008c0f9
push ecx
mov ecx, eax
call fcn.10087170
mov edi, eax
mov dword [ebp - 0x18], eax
jmp 0x1008c0fe
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov esi, 0x105cde05
mov eax, dword [0x105ef74c]
test eax, eax
mov dword [ebp - 0x24], 0
cmove eax, edi
mov dword [ebp - 0x38], str.Window
mov dword [0x105ef74c], eax
or edx, 0xffffffff
mov al, 0x57
or edi, 0xffffffff
nop
cmp al, 0x23
jne 0x1008c13e
cmp byte [esi], al
jne 0x1008c13e
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x10525220]
test al, al
jne 0x1008c130
mov edi, dword [ebp - 0x18]
not edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], 0x10099d50
mov dword [ebp - 0x2c], 0x10099db0
mov esi, dword [edi + 0x2db0]
mov ecx, dword [edi + 0x2db4]
mov dword [ebp - 0x28], 0x10099e60
cmp esi, ecx
jne 0x1008c225
inc esi
test ecx, ecx
je 0x1008c198
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1008c19d
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1008c225
mov eax, dword [0x105ef74c]
test eax, eax
je 0x1008c1b5
inc dword [eax + 0x374]
push dword [0x105ef750]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.10088500
mov edx, dword [edi + 0x2db8]
add esp, 8
mov dword [ebp - 0x18], eax
test edx, edx
je 0x1008c219
mov ecx, dword [edi + 0x2db0]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push edx
push eax
call fcn.100d6e00
mov ecx, dword [edi + 0x2db8]
add esp, 0xc
test ecx, ecx
je 0x1008c207
mov eax, dword [0x105ef74c]
test eax, eax
je 0x1008c207
dec dword [eax + 0x374]
push dword [0x105ef750]
push ecx
call fcn.10088510
mov eax, dword [ebp - 0x18]
add esp, 8
mov dword [edi + 0x2db8], eax
mov dword [edi + 0x2db4], esi
mov eax, dword [edi + 0x2db0]
movups xmm0, xmmword [ebp - 0x38]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2db8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [ebp - 0x28]
movq qword [eax + ecx*8 + 0x10], xmm0
mov eax, edi
inc dword [edi + 0x2db0]
mov ecx, dword [ebp - 0xc]
mov byte [edi], 1
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1008f7e0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
or ecx, 0xffffffff
push edi
test bl, bl
je 0x1008f81f
cmp bl, 0x23
jne 0x1008f801
cmp byte [esi], bl
jne 0x1008f801
cmp byte [esi + 1], bl
cmove eax, ecx
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
mov ecx, 0xffffffff
xor eax, dword [edx*4 + 0x10525220]
test bl, bl
jne 0x1008f7f2
mov ebx, dword [0x105ef74c]
not eax
mov esi, dword [ebx + 0x19f0]
mov edi, dword [ebx + 0x19f8]
mov ecx, edi
test esi, esi
je 0x1008f864
nop dword [eax]
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1008f858
lea edi, [ecx + 8]
or ecx, 0xffffffff
sub ecx, edx
add esi, ecx
jmp 0x1008f85a
mov esi, edx
test esi, esi
jne 0x1008f840
mov ecx, dword [ebx + 0x19f8]
mov edx, dword [ebx + 0x19f0]
lea ecx, [ecx + edx*8]
cmp edi, ecx
je 0x1008f87c
cmp dword [edi], eax
jne 0x1008f87c
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x10094520
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x105ef74c]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov eax, dword [eax + 0x1a00]
mov esi, 4
mov ebx, dword [eax + 0xc4]
lea edi, [eax + 0xbc]
mov dword [ebp - 4], eax
mov eax, dword [edi]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], eax
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10525220]
sub esi, 1
jne 0x10094560
mov eax, dword [ebp - 4]
not ebx
mov ecx, dword [ebp - 0xc]
mov esi, dword [eax + 0xc0]
cmp ecx, esi
jne 0x100945b3
inc ecx
test esi, esi
je 0x1009459c
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x100945a1
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, edi
call fcn.1009a7c0
mov ecx, dword [edi]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc4]
mov dword [eax + ecx*4], ebx
inc dword [edi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10099a40
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, edx
mov edx, dword [0x105ef74c]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x10099a69
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10099a60
sub esi, ecx
test edx, edx
je 0x10099a73
inc dword [edx + 0x374]
push ebx
push dword [0x105ef750]
lea eax, [esi + 1]
push eax
call fcn.10088500
push esi
push edi
push eax
lea ebx, [eax + esi]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], ebx
call fcn.100d6e00
mov esi, dword [ebp - 0x10]
xor edx, edx
add esp, 0x14
mov byte [ebx], 0
xor edi, edi
mov dword [ebp - 4], edx
mov ecx, esi
cmp esi, ebx
jae 0x10099c0c
nop
mov al, byte [ecx]
cmp al, 0xa
je 0x10099c3f
cmp al, 0xd
je 0x10099c3f
mov esi, ecx
cmp ecx, ebx
jae 0x10099ad7
mov al, byte [esi]
cmp al, 0xa
je 0x10099ad7
cmp al, 0xd
je 0x10099ad7
inc esi
cmp esi, ebx
jb 0x10099ac8
mov byte [esi], 0
mov al, byte [ecx]
cmp al, 0x3b
je 0x10099bfe
cmp al, 0x5b
jne 0x10099bdd
cmp esi, ecx
jbe 0x10099bdd
cmp byte [esi - 1], 0x5d
lea ebx, [esi - 1]
jne 0x10099bda
inc ecx
mov byte [ebx], 0
mov eax, ebx
mov dword [ebp - 0x18], ecx
sub eax, ecx
push eax
push 0x5d
push ecx
call fcn.100d7700
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10099bf8
lea ecx, [eax + 1]
sub ebx, ecx
push ebx
push 0x5b
push ecx
call fcn.100d7700
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x10099bf8
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ebx, dword [0x105ef74c]
mov byte [eax], 0
lea eax, [ecx + 1]
mov cl, byte [edi]
inc edi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x10099b8e
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x10099b6f
cmp byte [edi], cl
jne 0x10099b6f
cmp byte [edi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [edi]
inc edi
xor eax, dword [edx*4 + 0x10525220]
test cl, cl
jne 0x10099b60
mov ebx, dword [0x105ef74c]
mov edi, dword [ebx + 0x2db0]
xor ecx, ecx
not eax
test edi, edi
jle 0x10099bb1
mov ebx, dword [ebx + 0x2db8]
lea edx, [ebx + 4]
cmp dword [edx], eax
je 0x10099bba
inc ecx
add edx, 0x18
cmp ecx, edi
jl 0x10099ba5
xor edi, edi
xor edx, edx
mov dword [ebp - 4], edx
jmp 0x10099bfb
lea eax, [ecx + ecx*2]
lea edi, [ebx + eax*8]
test edi, edi
je 0x10099bb3
push dword [ebp - 0x14]
mov eax, dword [edi + 8]
push edi
push dword [ebp - 0xc]
call eax
mov edx, eax
add esp, 0xc
mov dword [ebp - 4], edx
jmp 0x10099bfb
mov ebx, dword [ebp - 8]
test edi, edi
je 0x10099bfe
test edx, edx
je 0x10099bfe
mov eax, dword [edi + 0xc]
push ecx
push edx
push edi
push dword [ebp - 0xc]
call eax
mov edx, dword [ebp - 4]
add esp, 0x10
jmp 0x10099bfe
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 8]
lea ecx, [esi + 1]
cmp ecx, ebx
jb 0x10099ab0
mov esi, dword [ebp - 0x10]
pop ebx
test esi, esi
je 0x10099c20
mov eax, dword [0x105ef74c]
test eax, eax
je 0x10099c20
dec dword [eax + 0x374]
push dword [0x105ef750]
push esi
call fcn.10088510
mov eax, dword [ebp - 0xc]
add esp, 8
pop edi
mov byte [eax + 0x2d9c], 1
pop esi
mov esp, ebp
pop ebp
ret
inc ecx
jmp 0x10099ab0
Function at 0x100baea0
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0x54], 0x100000
push esi
push edi
mov edi, edx
je 0x100baf10
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x100baee8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x100baecf
cmp byte [esi], cl
jne 0x100baecf
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10525220]
test cl, cl
jne 0x100baec0
mov ecx, dword [0x105ef74c]
not eax
cmp dword [ecx + 0x1a34], eax
jne 0x100baefe
mov dword [ecx + 0x1a38], eax
cmp dword [ecx + 0x1a6c], eax
jne 0x100baf55
pop edi
mov byte [ecx + 0x1a70], 1
pop esi
ret
mov esi, dword [0x105ef74c]
xor edx, edx
mov eax, dword [esi + 0x1a00]
mov ecx, dword [eax + 0xbc]
mov eax, dword [eax + 0xc4]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.100890e0
add esp, 4
cmp dword [esi + 0x1a34], eax
jne 0x100baf46
mov dword [esi + 0x1a38], eax
cmp dword [esi + 0x1a6c], eax
jne 0x100baf55
mov byte [esi + 0x1a70], 1
pop edi
pop esi
ret

Function at 0x100c2350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100fdc40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100d51af
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.100d2ffd
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x100cf480
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], 0x40
push eax
push 0x40
mov eax, dword [esi + 0xc]
add eax, 5
push eax
push dword [esi + 4]
call ebx
mov eax, dword [esi + 0xc]
xor edi, edi
add eax, 5
test eax, eax
jle 0x100cf4e5
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0x18]
add eax, edi
cmp ecx, dword [esi + 0x1c]
je 0x100cf4ca
mov al, byte [eax]
mov byte [ecx], al
inc dword [esi + 0x18]
jmp 0x100cf4d4
push eax
push ecx
lea ecx, [esi + 0x14]
call fcn.100cbc10
mov eax, dword [esi + 0xc]
inc edi
add eax, 5
cmp edi, eax
jl 0x100cf4b4
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 4]
mov al, byte [esi]
mov byte [ecx], al
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
sub eax, ecx
sub eax, 5
mov dword [ecx + 1], eax
mov ecx, 5
mov edx, dword [esi + 0xc]
lea eax, [edx + 5]
cmp eax, ecx
jle 0x100cf522
nop dword [eax]
mov eax, dword [esi + 4]
mov byte [ecx + eax], 0x90
inc ecx
mov edx, dword [esi + 0xc]
lea eax, [edx + 5]
cmp ecx, eax
jl 0x100cf510
lea eax, [ebp - 4]
mov byte [esi + 0x11], 1
push eax
push dword [ebp - 4]
lea eax, [edx + 5]
push eax
push dword [esi + 4]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100cf540
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 4], 0x40
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, dword [esi + 0xc]
add eax, 5
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esi + 0xc]
xor edx, edx
lea eax, [ecx + 5]
test eax, eax
jle 0x100cf587
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
mov al, byte [edx + eax]
mov byte [edx + ecx], al
inc edx
mov ecx, dword [esi + 0xc]
lea eax, [ecx + 5]
cmp edx, eax
jl 0x100cf570
lea eax, [ebp - 4]
mov byte [esi + 0x11], 0
push eax
push dword [ebp - 4]
lea eax, [ecx + 5]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100cf6b0
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.100cf880
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100cf78d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100cf6fa
mov eax, dword [ebp - 4]
cmp eax, dword [0x105e6004]
ja 0x100cf6fa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100cf6ca
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100d7380
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 0x100cf71f
jmp 0x100cf78d
cmp dword [ebp - 0x14], 0x10000
jne 0x100cf773
cmp dword [ebp - 0x18], 0x10000
jb 0x100cf773
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 0x100cf756
mov eax, dword [ebp - 8]
jmp 0x100cf78f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100cf766
xor eax, eax
jmp 0x100cf78f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100cf788
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100cf880
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100cf6ca
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100cf7a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100cf8b0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100cf875
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x100cf7e5
mov eax, dword [ebp - 4]
cmp eax, dword [0x105e6004]
ja 0x100cf7e5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x100cf7b5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100d7380
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 0x100cf80a
jmp 0x100cf875
cmp dword [ebp - 0x14], 0x10000
jne 0x100cf85e
cmp dword [ebp - 0x18], 0x10000
jb 0x100cf85e
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 0x100cf841
mov eax, dword [ebp - 8]
jmp 0x100cf877
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x100cf851
xor eax, eax
jmp 0x100cf877
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100cf870
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100cf8b0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100cf7b5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100cf8e0
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.100cfcd0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x105ee644], 0
jne 0x100cf91d
cmp dword [0x105ee640], 0
je 0x100cf91d
mov eax, dword [0x105ee640]
mov dword [0x105ee644], eax
cmp dword [0x105ee644], 0
je 0x100cf99a
mov ecx, dword [0x105ee644]
cmp dword [ecx + 8], 0
je 0x100cf99a
mov edx, dword [0x105ee644]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100cf99a
mov ecx, dword [0x105ee644]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100cf99a
mov eax, dword [0x105ee644]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100cf969
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100cf970
xor eax, eax
jmp 0x100cfab9
mov ecx, dword [0x105ee644]
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.100d7380
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100cfab9
mov edx, dword [0x105ee640]
mov dword [0x105ee644], edx
jmp 0x100cf9b6
mov eax, dword [0x105ee644]
mov ecx, dword [eax + 4]
mov dword [0x105ee644], ecx
cmp dword [0x105ee644], 0
je 0x100cf9f6
cmp dword [0x105ee644], 0
je 0x100cf9f4
mov edx, dword [0x105ee644]
cmp dword [edx + 8], 0
je 0x100cf9f4
mov eax, dword [0x105ee644]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x100cf9f4
mov edx, dword [0x105ee644]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x100cf9f4
jmp 0x100cf94e
jmp 0x100cf9a8
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.100cfac0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100cfab7
mov eax, dword [ebp - 0x18]
mov dword [0x105ee644], eax
mov ecx, dword [0x105ee644]
mov dword [ecx], 0x52727464
mov edx, dword [0x105ee644]
mov dword [edx + 8], 0
mov eax, dword [0x105ee644]
mov ecx, dword [0x105ee640]
mov dword [eax + 4], ecx
mov edx, dword [0x105ee644]
mov dword [0x105ee640], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x105ee644]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100cfa87
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100cfaa7
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 0x100cfa7e
mov eax, dword [0x105ee644]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x100cf94e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100d0800
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x105ee640]
mov dword [ebp - 4], eax
jmp 0x100d0819
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100d0840
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 0x100d083e
call sub.KERNEL32.dll_GetLastError
jmp 0x100d0842
jmp 0x100d0810
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100d0ce0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x105ee650], eax
je 0x100d0d04
mov eax, 0x10dd
jmp 0x100d0eac
cmp dword [0x105ee654], 0
je 0x100d0d17
mov eax, dword [0x105ee654]
jmp 0x100d0eac
cmp dword [ebp + 0xc], 0
jne 0x100d0d27
mov eax, 0x57
jmp 0x100d0eac
cmp dword [ebp + 8], 0
jne 0x100d0d37
mov eax, 6
jmp 0x100d0eac
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x100d0d60
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x105ee654], ecx
mov edx, dword [ebp + 8]
mov dword [0x105ee658], edx
mov eax, dword [ebp - 8]
jmp 0x100d0eac
push 0x18
call fcn.100d51af
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100d0dbb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x105ee654], ecx
cmp dword [ebp - 4], 0
je 0x100d0daa
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100d5613
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x105ee658], ecx
mov eax, dword [ebp - 8]
jmp 0x100d0eac
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100d0cc0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100d0cc0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x100d0dfb
cmp dword [ebp - 0xc], 0x1e
jbe 0x100d0e17
mov dword [ebp - 8], 9
cmp dword [0x105ee648], 0
je 0x100d0e12
jmp 0x100d0d89
jmp 0x100d0d80
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100d0e3e
mov dword [ebp - 8], 9
cmp dword [0x105ee648], 0
je 0x100d0e39
jmp 0x100d0d89
jmp 0x100d0d80
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100d0e69
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x100d0d80
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x105ee660]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x105ee660], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8