joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008100
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100ee080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x28], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100081fa
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100081f3
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x100081d9
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100081d9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100081d9
mov edx, dword [esi]
test edx, edx
jne 0x100081a2
push 0x200
push edx
push dword [0x10103ae8]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100081f3
jmp 0x100081cd
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100081cd
shl eax, 3
push eax
push edx
push 0
push dword [0x10103ae8]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100081f3
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10008161
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x10008252
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x10008252
xor ecx, ecx
mov dword [ebp - 0x24], ecx
nop dword [eax + eax]
mov eax, dword [esi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10008243
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov ecx, edi
call fcn.10007f90
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x24]
inc ebx
add ecx, 4
mov dword [ebp - 0x24], ecx
cmp ebx, dword [esi + 8]
jb 0x10008210
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047d8e
mov esp, ebp
pop ebp
ret

Function at 0x10008270
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x100082d4
push ebx
xor ebx, ebx
cmp dword [edi + 8], ebx
jbe 0x100082c3
xor ecx, ecx
mov dword [ebp - 4], ecx
push esi
nop word [eax + eax]
mov eax, dword [edi]
push dword [eax + ecx]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100082b3
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 4
mov dword [ebp - 4], ecx
cmp ebx, dword [edi + 8]
jb 0x10008290
pop esi
push dword [edi]
push 0
push dword [0x10103ae8]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100082e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100ee080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x10121b70]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10008341
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10047d8e
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10008362
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10008383
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10008383
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000837d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10008383
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.10047d8e
mov esp, ebp
pop ebp
ret
Function at 0x1000b1c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068b60
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 0x1c], 0
cmp byte [ebp + 0x14], cl
cmovne ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x1000b1fe
mov byte [ebp - 0x10], cl
jmp 0x1000b21b
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10049090
add esp, 0xc
mov dword [ebp - 4], 0
cmp byte [ebp - 0x10], 0
je 0x1000b250
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x14], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000b270
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068b80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp byte [ebp + 0x14], al
mov esi, dword [ebp + 8]
cmovne eax, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x1000b2b3
xor bl, bl
jmp 0x1000b2d2
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x1c]
test eax, eax
mov ecx, dword [ebp + 0x10]
setne bl
push ecx
push esi
push dword [ebp + 0xc]
mov byte [ebp - 0x10], bl
call fcn.10049090
add esp, 0xc
mov dword [ebp - 4], 0
test bl, bl
je 0x1000b302
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x14]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b320
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068b80
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
mov eax, esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
sub eax, 1
je 0x1000b37a
sub eax, 1
je 0x1000b3eb
sub eax, 2
je 0x1000b409
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov bl, dl
mov ecx, dword [ebp + 0x14]
sub bl, al
movzx ecx, cl
dec bl
mov dword [ebp + 0x10], eax
mov dword [ebp - 0x20], 0
test ecx, ecx
jne 0x1000b39e
mov byte [ebp - 0x14], cl
xor cl, cl
jmp 0x1000b3bd
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp + 0x10]
setne cl
mov byte [ebp - 0x14], cl
mov byte [eax], bl
mov dword [ebp - 4], 0
test cl, cl
je 0x1000b3e1
mov eax, dword [ebp - 0x18]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
sub edx, esi
push dword [ebp + 0x14]
sub edx, eax
movzx ecx, dx
push ecx
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.1000bb30
mov edx, dword [ebp - 0x10]
add esp, 0xc
mov ecx, dword [ebp + 8]
push dword [ebp + 0x14]
lea eax, [ecx + esi]
sub edx, eax
push edx
push ecx
mov eax, esp
mov dword [eax], ecx
call fcn.1000bbd0
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b440
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [ebp + 0xc]
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx ebx, cl
mov dword [ebp - 0x24], edx
test cl, cl
jne 0x1000b486
xor cl, cl
jmp 0x1000b4a1
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push ecx
push 0x40
push ebx
push eax
mov dword [ebp - 0x24], eax
call edi
mov edx, dword [ebp - 0x24]
test eax, eax
mov eax, dword [ebp + 0xc]
setne cl
mov byte [ebp - 0x18], cl
mov ch, byte [esi]
mov byte [ebp - 0xd], ch
mov dword [ebp - 4], 0
test cl, cl
je 0x1000b4cb
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push edx
call edi
mov eax, dword [ebp + 0xc]
mov ch, byte [ebp - 0xd]
movzx ecx, ch
mov dword [ebp - 4], 0xffffffff
sub ecx, 0xe8
je 0x1000b576
sub ecx, 1
je 0x1000b576
sub ecx, 0x16
jne 0x1000b55b
push dword [ebp + 0x10]
inc eax
push ecx
mov ecx, esp
mov dword [ecx], eax
call fcn.1000bc70
add esp, 8
cmp al, 0x15
je 0x1000b508
cmp al, 0x25
jne 0x1000b55b
mov esi, dword [ebp + 0xc]
xor ecx, ecx
shl ebx, 2
add esi, 2
mov dword [ebp - 0x34], ecx
test ebx, ebx
jne 0x1000b51e
xor al, al
jmp 0x1000b536
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x34], esi
call edi
mov ecx, dword [ebp - 0x34]
test eax, eax
setne al
mov byte [ebp - 0x28], al
mov esi, dword [esi]
mov dword [ebp - 4], 3
test al, al
je 0x1000b557
mov eax, dword [ebp - 0x2c]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x30]
mov dword [ebp + 0x10], eax
push ecx
call edi
mov ecx, dword [esi]
jmp 0x1000b5c7
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
shl ebx, 2
lea esi, [eax + 1]
xor ecx, ecx
mov dword [ebp - 0x24], ecx
test ebx, ebx
jne 0x1000b589
xor al, al
jmp 0x1000b5a1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], ebx
push eax
push 0x40
push ebx
push esi
mov dword [ebp - 0x24], esi
call edi
mov ecx, dword [ebp - 0x24]
test eax, eax
setne al
mov byte [ebp - 0x18], al
mov ebx, dword [esi]
mov dword [ebp - 4], 2
test al, al
je 0x1000b5c2
mov eax, dword [ebp - 0x1c]
lea edx, [ebp + 0x10]
push edx
push eax
push dword [ebp - 0x20]
mov dword [ebp + 0x10], eax
push ecx
call edi
lea ecx, [esi + 4]
add ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b6b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
cmp byte [ebp + 0x10], al
mov dword [ebp - 0x1c], 0
cmovne eax, dword [ebp + 0xc]
test eax, eax
jne 0x1000b6f2
mov byte [ebp - 0x10], al
jmp 0x1000b70c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x10]
push dword [ebp + 0xc]
push 0x90
push esi
call fcn.10049610
add esp, 0xc
mov dword [ebp - 4], 0
cmp byte [ebp - 0x10], 0
je 0x1000b741
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000b970
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068be0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
call fcn.10009720
add esp, 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x10]
push eax
call fcn.1000ba80
xor edx, edx
mov dword [ebp - 0x24], edx
mov esi, dword [eax]
movzx eax, byte [ebp + 0xc]
test eax, eax
jne 0x1000b9c4
xor al, al
jmp 0x1000b9e0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x24]
test eax, eax
setne al
mov byte [ebp - 0x18], al
mov bl, byte [esi]
mov dword [ebp - 4], 0
test al, al
je 0x1000ba05
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x20]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000bb30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
add eax, eax
jne 0x1000bb70
mov byte [ebp - 0x10], 0
xor cl, cl
jmp 0x1000bb8c
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne cl
mov byte [ebp - 0x10], cl
mov ax, word [ebp + 0xc]
mov word [esi], ax
mov dword [ebp - 4], 0
test cl, cl
je 0x1000bbb5
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bbd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x1000bc12
mov byte [ebp - 0x10], al
xor cl, cl
jmp 0x1000bc2e
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne cl
mov byte [ebp - 0x10], cl
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov dword [ebp - 4], 0
test cl, cl
je 0x1000bc55
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bc70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068c30
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
test eax, eax
jne 0x1000bcab
xor al, al
jmp 0x1000bcc7
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x1c]
test eax, eax
setne al
mov byte [ebp - 0x10], al
mov bl, byte [esi]
mov dword [ebp - 4], 0
test al, al
je 0x1000bcec
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000bd10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x1000bd4f
mov byte [ebp - 0x10], al
xor cl, cl
jmp 0x1000bd6b
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne cl
mov byte [ebp - 0x10], cl
mov al, byte [ebp + 0xc]
mov byte [esi], al
mov dword [ebp - 4], 0
test cl, cl
je 0x1000bd92
mov eax, dword [ebp - 0x14]
lea ecx, [ebp + 0x10]
push ecx
push eax
push dword [ebp - 0x18]
mov dword [ebp + 0x10], eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000bdb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068bc0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [ebp + 0xc]
xor edx, edx
mov esi, dword [ebp + 8]
shl eax, 2
mov dword [ebp - 0x1c], edx
test eax, eax
jne 0x1000bded
xor al, al
jmp 0x1000be09
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 0x1c]
test eax, eax
setne al
mov byte [ebp - 0x10], al
mov esi, dword [esi]
mov dword [ebp - 4], 0
test al, al
je 0x1000be2e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 0xc]
push eax
push ecx
push dword [ebp - 0x18]
mov dword [ebp + 0xc], ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000ccb0
Capabilities:
Allocate or change rwx memory

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
sub esp, 0x20
mov eax, dword [ecx + 4]
push esi
push edi
mov edi, dword [ebx + 8]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
mov dword [ebp - 4], edi
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], ecx
cmp eax, ecx
je 0x1000cd0c
nop dword [eax]
mov edx, dword [eax]
mov ecx, edi
mov esi, edx
sub ecx, edx
sub esi, edi
cmp edi, edx
cmovbe ecx, esi
cmp ecx, dword [ebp - 0xc]
ja 0x1000cd2d
add eax, 4
cmp eax, dword [ebp - 0x10]
jne 0x1000ccf0
mov eax, dword [ebp - 0x14]
push 0x40
push 0x3000
mov eax, dword [eax + 8]
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
Function at 0x1000e6b0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x100ee080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2dc], edx
mov dword [ebp - 0x2ec], ecx
mov byte [ebp - 0x2d1], 1
push edi
nop dword [eax]
xor ebx, ebx
xor esi, esi
nop dword [eax]
nop dword [eax + eax]
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0
push eax
push 0
push 0
push 0x81a
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test esi, esi
je 0x1000e725
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1000e7e7
mov esi, dword [ebp - 0x2d8]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test edi, edi
je 0x1000e6f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1000e6f0
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000e6f0
test eax, eax
je 0x1000e76c
cmp byte [ebp - 0x2d1], 0
jne 0x1000e76c
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1000e6f0
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
call fcn.10049610
add esp, 0xc
mov dword [ebp - 0x2d0], 0x10007
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000e6f0
mov eax, dword [ebp - 0x2dc]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x1000e7e1
lea edx, [ebp - 0x2e0]
mov dword [ebp - 0x2e4], esi
push edx
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2e8], edi
lea edx, [ebp - 0x2e4]
mov dword [ebp - 0x2e0], eax
mov eax, dword [ecx]
push edx
lea edx, [ebp - 0x2e8]
push edx
call dword [eax + 8]
inc ebx
jmp 0x1000e6f0
mov byte [ebp - 0x2d1], 0
test ebx, ebx
jne 0x1000e6e0
mov ecx, dword [ebp - 0x2ec]
mov ecx, dword [ecx + 0x24]
test ecx, ecx
je 0x1000e808
mov eax, dword [ecx]
call dword [eax + 8]
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0
push eax
push 0
push 0
push 0x81a
push esi
call ebx
push eax
call dword [sym.imp.ntdll.dll_NtGetNextThread]
mov edi, eax
test esi, esi
je 0x1000e841
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
js 0x1000e86b
mov esi, dword [ebp - 0x2d8]
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadId]
mov edi, eax
test edi, edi
je 0x1000e810
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x1000e810
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x1000e810
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10047d8e
mov esp, ebp
pop ebp
ret
Function at 0x1000e880
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068f80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x100ee080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000e8db
mov byte [esi + 0xc], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x28]
mov dword [esi], 0
mov ecx, edi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
cmp esi, edx
je 0x1000e90b
mov dword [esi], edi
xor edi, edi
mov dword [esi + 4], ebx
xor ebx, ebx
mov dword [esi + 8], eax
xor eax, eax
xor ecx, ecx
mov byte [esi + 0xc], 1
mov dword [ebp - 4], 0
test ecx, ecx
je 0x1000e927
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret