joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c170
Capabilities:
Encode data using xor
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov edi, ecx
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1001c1cc
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
cmp dword [ebp - 0x128], edi
je 0x1001c1db
lea eax, [ebp - 0x130]
push eax
push esi
call ebx
test eax, eax
jne 0x1001c1b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x1001c1d3
push eax
call esi
movaps xmm0, xmmword [0x100a4840]
xor eax, eax
movups xmmword [ebp - 0x150], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x150]
xor byte [ebp + eax - 0x14f], cl
inc eax
cmp eax, 0xe
jb 0x1001c210
mov byte [ebp - 0x140], 0x36
mov al, 0x58
xor al, byte [ebp - 0x140]
mov bl, 0x5a
mov ah, bl
mov byte [ebp - 0x13f], al
mov al, byte [ebp - 0x140]
mov dl, 0x52
mov bh, ah
mov byte [ebp - 0x131], ah
xor bl, al
mov byte [ebp - 0x136], 0
xor ah, al
mov byte [ebp - 0x141], 0
xor bh, al
mov byte [ebp - 0x13b], ah
mov dh, dl
mov byte [ebp - 0x13c], bl
xor dl, al
mov byte [ebp - 0x138], bh
xor dh, al
mov byte [ebp - 0x13d], dl
mov cl, 0x42
mov byte [ebp - 0x139], dh
xor cl, al
mov byte [ebp - 0x136], 0
mov ch, 0x18
mov byte [ebp - 0x13e], cl
xor ch, al
mov al, byte [ebp - 0x131]
xor al, byte [ebp - 0x140]
mov byte [ebp - 0x137], al
lea eax, [ebp - 0x14f]
push eax
lea eax, [ebp - 0x13f]
mov byte [ebp - 0x13a], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.10016570
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1001c30f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
js 0x1001c1d3
cmp dword [ebp - 8], 0
ja 0x1001c1d3
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10069b90
mov esp, ebp
pop ebp
ret
Function at 0x1001d4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov byte [ebp - 0x10], 0x2b
mov al, 0x49
xor al, byte [ebp - 0x10]
mov bl, 0x58
push esi
mov esi, ecx
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov ch, bl
mov dl, 0x4a
mov byte [ebp - 7], 0
mov dh, 0x74
mov byte [ebp - 7], 0
mov cl, 0x44
mov ah, 0x4e
push edi
mov bh, 0x48
xor dl, al
xor dh, al
mov byte [ebp - 0xe], dl
xor cl, al
mov byte [ebp - 0xb], dh
xor ch, al
mov byte [ebp - 9], cl
xor bl, al
mov byte [ebp - 8], ch
xor ah, al
mov byte [ebp - 0xd], bl
xor bh, al
mov byte [ebp - 0xc], ah
sub esp, 0x18
mov byte [ebp - 0xa], bh
mov edx, esp
lea ecx, [ebp - 0xf]
xorps xmm0, xmm0
lea edi, [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 0x1001d552
sub ecx, edi
lea eax, [ebp - 0xf]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
mov ecx, dword [esi]
call fcn.10016190
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
add esp, 0x18
mov dword [esi + 4], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001d58a
mov dword [esi + 4], 0
movaps xmm0, xmmword [str._ISbmIURNkTXJ]
xor ecx, ecx
movups xmmword [ebp - 0x14], xmm0
mov al, byte [ebp - 0x14]
xor byte [ebp + ecx - 0x13], al
inc ecx
cmp ecx, 0xe
jb 0x1001d597
sub esp, 0x18
mov byte [ebp - 5], 0
mov edx, esp
lea ecx, [ebp - 0x13]
xorps xmm0, xmm0
lea edi, [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 0x1001d5c7
sub ecx, edi
lea eax, [ebp - 0x13]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
mov ecx, dword [esi + 4]
call fcn.10016190
add esp, 0x18
mov dword [esi + 8], eax
push 4
push eax
call ebx
test eax, eax
je 0x1001d5fa
mov dword [esi + 8], 0
cmp dword [esi + 8], 0
je 0x1001d614
cmp dword [0x100b2390], 0
mov ecx, 0x10b78ba
sete dl
call fcn.100164a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005e7f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090dcd
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100ad040]
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 - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1005e680
cmp byte [ebp - 0x84], 0
jne 0x1005e941
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x1005e885
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100b03d0
call fcn.1005e680
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1005e680
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x1005e8f4
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call fcn.1006bd80
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1005e730
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1005e97d
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005e973
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005e999
push ecx
push edx
call fcn.10069bf1
add esp, 8
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.10069b90
mov esp, ebp
pop ebp
ret
call fcn.1006f2c1
int3
Function at 0x1005f790
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10093550
push 0x64
mov edi, edx
mov esi, ecx
call fcn.1006aca6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x1005f96d
push 0x64
push 0
push ebx
call fcn.1006bd80
mov byte [ebx], 1
lea eax, [ebx + 0x34]
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebx + 0x10], xmm0
movq qword [ebx + 0x20], xmm0
mov dword [ebx + 0x28], 0
push eax
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 4], 2
mov dword [ebx + 0x30], 0
call fcn.1008c3ae
add esp, 4
mov dword [0x100d794c], ebx
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
movq qword [ebx + 0x5c], xmm0
push 0x20
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea ecx, [ebp - 0x48]
call fcn.10064c80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x100aefcc
mov dword [0x100d3544], eax
call fcn.1008c21d
add esp, 4
test eax, eax
jne 0x1005f988
mov eax, dword [0x100aeff8]
cmp eax, 0x7fffffff
je 0x1005f98f
test edi, edi
je 0x1005f885
movups xmm0, xmmword [edi]
movups xmmword [0x100d3510], xmm0
movq xmm0, qword [edi + 0x10]
jmp 0x1005f88f
xorps xmm0, xmm0
movups xmmword [0x100d3510], xmm0
movq qword [0x100d3520], xmm0
xorps xmm0, xmm0
push 0x100aefcc
movups xmmword [0x100d3528], xmm0
movq qword [0x100d3538], xmm0
call fcn.1008c22e
add esp, 4
cmp dword [0x100d350c], 0
jne 0x1005f977
mov dword [0x100d7b50], 0x100b03c0
test esi, esi
je 0x1005f8f8
cmp byte [esi], 0
mov ecx, 0x100d7b60
je 0x1005f8f5
mov edx, 1
sub edx, esi
lea eax, [esi + edx]
cmp eax, 0x40
jae 0x1005f8f5
mov al, byte [esi]
inc esi
mov byte [ecx], al
inc ecx
cmp byte [esi], 0
jne 0x1005f8e2
mov byte [ecx], 0
mov esi, dword [0x100d794c]
mov al, 1
mov dword [0x100d350c], 0x100d7b50
mov dword [0x100d7b58], 0x1005fdf0
mov dword [0x100d7b5c], 0x1005fe00
xchg byte [esi], al
push 4
call fcn.10069b9e
add esp, 4
lea ecx, [ebp - 0x4c]
mov dword [eax], esi
push ecx
push 0
push eax
push 0x100601e0
push 0
push 0
call fcn.10078817
mov ecx, eax
add esp, 0x18
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x1005f9a1
cmp dword [esi + 0x60], 0
jne 0x1005f99c
mov eax, dword [ebp - 0x4c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069b90
mov esp, ebp
pop ebp
ret
mov dword [0x100d794c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10069b90
mov esp, ebp
pop ebp
ret
push 5
call fcn.1008c1bf
dec eax
push 6
mov dword [0x100aeff8], eax
call fcn.1008c1bf
call fcn.1007893c
push 6
mov dword [ebp - 0x4c], 0
call fcn.1008c1bf
int3
Function at 0x100608d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x100d350c]
push esi
push eax
mov dword [edi + 0x154], 1
lea eax, [edi + 0x15c]
lea ebx, [edi + 0x154]
push eax
call fcn.1006b7f0
add esp, 0xc
mov dword [edi + 0x158], esi
add esi, 8
je 0x100609a2
mov eax, dword [edi]
test eax, eax
je 0x10060951
mov eax, dword [eax + 4]
cmp eax, 0xffffffff
je 0x10060951
test ebx, ebx
je 0x10060951
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x10060951
cmp dword [ebp - 8], esi
je 0x100609a2
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10060971
mov eax, dword [edi + 4]
cmp eax, 3
je 0x10060965
cmp eax, 1
jne 0x10060971
lea eax, [edi + 0x54]
push eax
push dword [edi + 0x50]
call ecx
add esp, 8
mov esi, dword [edi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0xffffffff
xor al, al
mov byte [esi], 0
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10069b90
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10069b90
mov esp, ebp
pop ebp
ret 8
Function at 0x10066ec0
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.10067090
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10066f9d
mov edx, dword [ebp - 4]
cmp edx, dword [0x100ad010]
jb 0x10066f0a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100ad014]
ja 0x10066f0a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10066eda
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006bd80
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 0x10066f2f
jmp 0x10066f9d
cmp dword [ebp - 0x14], 0x10000
jne 0x10066f83
cmp dword [ebp - 0x18], 0x10000
jb 0x10066f83
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 0x10066f66
mov eax, dword [ebp - 8]
jmp 0x10066f9f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10066f76
xor eax, eax
jmp 0x10066f9f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10066f98
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.10067090
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10066eda
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10066fb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100670c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x10067085
mov edx, dword [ebp - 4]
cmp edx, dword [0x100ad010]
jb 0x10066ff5
mov eax, dword [ebp - 4]
cmp eax, dword [0x100ad014]
ja 0x10066ff5
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10066fc5
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.1006bd80
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 0x1006701a
jmp 0x10067085
cmp dword [ebp - 0x14], 0x10000
jne 0x1006706e
cmp dword [ebp - 0x18], 0x10000
jb 0x1006706e
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 0x10067051
mov eax, dword [ebp - 8]
jmp 0x10067087
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x10067061
xor eax, eax
jmp 0x10067087
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10067080
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100670c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10066fc5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100670f0
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.100674e0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100b0f78], 0
jne 0x1006712d
cmp dword [0x100b0f74], 0
je 0x1006712d
mov eax, dword [0x100b0f74]
mov dword [0x100b0f78], eax
cmp dword [0x100b0f78], 0
je 0x100671aa
mov ecx, dword [0x100b0f78]
cmp dword [ecx + 8], 0
je 0x100671aa
mov edx, dword [0x100b0f78]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100671aa
mov ecx, dword [0x100b0f78]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100671aa
mov eax, dword [0x100b0f78]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10067179
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10067180
xor eax, eax
jmp 0x100672c9
mov ecx, dword [0x100b0f78]
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.1006bd80
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100672c9
mov edx, dword [0x100b0f74]
mov dword [0x100b0f78], edx
jmp 0x100671c6
mov eax, dword [0x100b0f78]
mov ecx, dword [eax + 4]
mov dword [0x100b0f78], ecx
cmp dword [0x100b0f78], 0
je 0x10067206
cmp dword [0x100b0f78], 0
je 0x10067204
mov edx, dword [0x100b0f78]
cmp dword [edx + 8], 0
je 0x10067204
mov eax, dword [0x100b0f78]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10067204
mov edx, dword [0x100b0f78]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10067204
jmp 0x1006715e
jmp 0x100671b8
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.100672d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100672c7
mov eax, dword [ebp - 0x18]
mov dword [0x100b0f78], eax
mov ecx, dword [0x100b0f78]
mov dword [ecx], 0x52727464
mov edx, dword [0x100b0f78]
mov dword [edx + 8], 0
mov eax, dword [0x100b0f78]
mov ecx, dword [0x100b0f74]
mov dword [eax + 4], ecx
mov edx, dword [0x100b0f78]
mov dword [0x100b0f74], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100b0f78]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10067297
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100672b7
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 0x1006728e
mov eax, dword [0x100b0f78]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1006715e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10068010
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b0f74]
mov dword [ebp - 4], eax
jmp 0x10068029
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x10068050
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 0x1006804e
call sub.KERNEL32.dll_GetLastError
jmp 0x10068052
jmp 0x10068020
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100684f0
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 [0x100b0f84], eax
je 0x10068514
mov eax, 0x10dd
jmp 0x100686bc
cmp dword [0x100b0f88], 0
je 0x10068527
mov eax, dword [0x100b0f88]
jmp 0x100686bc
cmp dword [ebp + 0xc], 0
jne 0x10068537
mov eax, 0x57
jmp 0x100686bc
cmp dword [ebp + 8], 0
jne 0x10068547
mov eax, 6
jmp 0x100686bc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10068570
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100b0f88], ecx
mov edx, dword [ebp + 8]
mov dword [0x100b0f8c], edx
mov eax, dword [ebp - 8]
jmp 0x100686bc
push 0x18
call fcn.10069b9e
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100685cb
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100b0f88], ecx
cmp dword [ebp - 4], 0
je 0x100685ba
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.10069bf1
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100b0f8c], ecx
mov eax, dword [ebp - 8]
jmp 0x100686bc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.100684d0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.100684d0
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 0x1006860b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10068627
mov dword [ebp - 8], 9
cmp dword [0x100b0f7c], 0
je 0x10068622
jmp 0x10068599
jmp 0x10068590
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1006864e
mov dword [ebp - 8], 9
cmp dword [0x100b0f7c], 0
je 0x10068649
jmp 0x10068599
jmp 0x10068590
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 0x10068679
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10068590
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 [0x100b0f94]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100b0f94], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x100686d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100b0f84], eax
je 0x100686ed
mov eax, 0x10dd
jmp 0x100687d0
mov eax, dword [0x100b0f94]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006876c
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 sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x10068748
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x10068748
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10067570
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
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.10069bf1
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x100686f5
mov dword [0x100b0f94], 0
call fcn.10067e50
mov ecx, dword [0x100b0f90]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100687ba
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.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
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.10069bf1
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10068784
mov dword [0x100b0f90], 0
mov dword [0x100b0f84], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10068cb0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100b0f88], 0
je 0x10068cc9
mov eax, dword [0x100b0f88]
jmp 0x10068d68
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x10068cda
xor eax, eax
jmp 0x10068d68
push 8
call fcn.10069b9e
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10068d32
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x10068d1b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.10069bf1
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100b0f88], eax
mov dword [0x100b0f8c], 0
mov eax, dword [ebp - 8]
jmp 0x10068d68
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x10068d4a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10068cfa
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100b0f90]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100b0f90], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4