joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d070
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], edi
mov edx, dword [ebp + 0x10]
test dl, 0x1f
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ebx
jne 0x1002d156
mov dword [ebp - 0x30], 0x20
mov ecx, dword [esi + 0xe10]
shl ecx, 5
mov dword [ebp - 0x2c], ecx
mov eax, dword [esi + 0xe0c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add ecx, 0x20
and ecx, 0x3e0
movq mm0, qword [ebx + ecx]
movq mm1, qword [ebx + ecx + 8]
movq mm2, qword [ebx + ecx + 0x10]
movq mm3, qword [ebx + ecx + 0x18]
add ecx, 0x20
and ecx, 0x3e0
pxor mm0, qword [ebx + ecx]
pxor mm1, qword [ebx + ecx + 8]
pxor mm2, qword [ebx + ecx + 0x10]
pxor mm3, qword [ebx + ecx + 0x18]
add ecx, 0x280
and ecx, 0x3e0
pxor mm0, qword [ebx + ecx]
pxor mm1, qword [ebx + ecx + 8]
pxor mm2, qword [ebx + ecx + 0x10]
pxor mm3, qword [ebx + ecx + 0x18]
pxor mm0, qword [ebx + eax]
pxor mm1, qword [ebx + eax + 8]
pxor mm2, qword [ebx + eax + 0x10]
pxor mm3, qword [ebx + eax + 0x18]
movq qword [ebx + eax], mm0
movq qword [ebx + eax + 8], mm1
movq qword [ebx + eax + 0x10], mm2
movq qword [ebx + eax + 0x18], mm3
add eax, 0x20
and eax, 0x3e0
dec edi
jne 0x1002d0c0
mov ecx, 0x7f7f7f7f
lea eax, [esi + edx + 0x268]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x20], eax
xor eax, eax
test dl, 0x10
setne al
shl eax, 9
add eax, dword [esi + 0xe0c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov esi, dword [esi]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
movq mm7, qword [ebp - 0x38]
movq mm2, qword [eax]
movq mm3, qword [eax + 8]
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
paddsb mm2, qword [ebx + 0x10]
paddsb mm3, qword [ebx + 0x18]
psrlq mm2, 1
psrlq mm3, 1
movq mm0, qword [ecx]
movq mm1, qword [ecx + 8]
pand mm2, mm7
pand mm3, mm7
paddusb mm0, mm2
paddusb mm1, mm3
movq mm2, qword [ebx]
movq mm3, qword [ebx + 8]
psubusb mm0, mm2
psubusb mm1, mm3
movq qword [ecx], mm0
movq qword [ecx + 8], mm1
add ebx, 0x20
add ecx, edx
dec edi
jne 0x1002d1b0
movq qword [eax], mm2
movq qword [eax + 8], mm3
emms
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x10038278
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100612e0
cmp edx, dword [eax]
je 0x1003829a
add eax, 8
inc ecx
cmp eax, 0x10061370
jl 0x1003828b
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100612e0]
jne 0x100383c8
mov eax, dword [0x10064fac]
cmp eax, 1
je 0x100383a2
test eax, eax
jne 0x100382cb
cmp dword [0x10064fb0], 1
je 0x100383a2
cmp edx, 0xfc
je 0x100383c8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10038302
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1003a160
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.1003a250
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10038345
lea eax, [ebp - 0x1a4]
push eax
call fcn.1003a250
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1004f684
push edi
call fcn.1003a750
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1003a160
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1003a170
lea eax, [ebp - 0xa0]
push 0x1004f664
push eax
call fcn.1003a170
push dword [esi + 0x100612e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.1003a170
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1003a6bf
add esp, 0x2c
pop edi
jmp 0x100383c8
lea eax, [ebp + 8]
lea esi, [esi + 0x100612e4]
push 0
push eax
push dword [esi]
call fcn.1003a250
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10029210
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012b990
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10149040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x3c]
and ecx, 1
je 0x1002930c
mov edx, dword [ebp - 0x1c]
add edx, 0x40
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx]
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
je 0x1002927f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x30]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x20], edx
jmp 0x10029298
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ecx]
add ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0x1000
jb 0x100292f5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.10022470
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.1012a324
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0xc]
mov dword [edx], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], 0
xor edx, edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x2c]
mov dword [ecx], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov dword [edx], 0
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x30]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x3c]
and edx, 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x3c], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10129ea9
mov esp, ebp
pop ebp
ret
Function at 0x100375c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10149040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10037678
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x138]
call fcn.10028910
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], 0
push str.config_
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003dc70
add esp, 0xc
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.10029480
nop
mov eax, dword [ebp + 8]
jmp 0x10037697
push 0x10136566
mov ecx, dword [ebp + 8]
call fcn.10028910
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10129ea9
mov esp, ebp
pop ebp
ret

Function at 0x100376b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c3f0
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x10149040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x118], 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x10037768
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x138]
call fcn.10028910
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0x120], edx
mov dword [ebp - 4], 0
push str.config_sounds_
mov eax, dword [ebp - 0x120]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.1003dc70
add esp, 0xc
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.10029480
nop
mov eax, dword [ebp + 8]
jmp 0x10037787
push 0x10136566
mov ecx, dword [ebp + 8]
call fcn.10028910
mov eax, dword [ebp - 0x118]
or eax, 1
mov dword [ebp - 0x118], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10129ea9
mov esp, ebp
pop ebp
ret

Function at 0x100377a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10149040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100375c0
add esp, 4
push 0
lea ecx, [ebp - 0x1c]
call fcn.10028820
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100377d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
call fcn.10029480
nop
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10129ea9
mov esp, ebp
pop ebp
ret
Function at 0x1003bb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x10149040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x38], 0
je 0x1003bb77
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1003bb7e
mov al, 1
jmp 0x1003bc84
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x48], 0xffffffff
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
push ecx
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x54], 0xffffffff
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x5c]
jne 0x1003bbc1
mov dword [ebp - 0x40], 1
jmp 0x1003bbc8
mov dword [ebp - 0x40], 0
mov cl, byte [ebp - 0x40]
mov byte [ebp - 0x31], cl
movzx edx, byte [ebp - 0x31]
test edx, edx
je 0x1003bbdd
xor al, al
jmp 0x1003bc84
mov dword [ebp - 0x64], 0x20
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x60], ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x30]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x1003bc20
cmp dword [ebp - 0x38], 1
je 0x1003bc27
cmp dword [ebp - 0x38], 3
je 0x1003bc77
jmp 0x1003bc82
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x3c], ecx
je 0x1003bc57
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x3c], eax
je 0x1003bc57
xor al, al
jmp 0x1003bc84
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x1003bc6b
mov dword [ebp - 0x44], 1
jmp 0x1003bc72
mov dword [ebp - 0x44], 0
mov al, byte [ebp - 0x44]
jmp 0x1003bc84
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x1003bc84
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10129ea9
mov esp, ebp
pop ebp
ret
Function at 0x1004d1d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x1004d1ee
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 4
jae 0x1004d20f
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
xor eax, dword [ebp - 4]
mov dword [ebp - 4], eax
imul ecx, dword [ebp - 4], 0x1000193
mov dword [ebp - 4], ecx
jmp 0x1004d1e5
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x1004ff90
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x1c]
call fcn.100568a0
nop
cmp dword [0x101b2b6c], 0
jne 0x1004ffb0
jmp 0x100500eb
mov eax, dword [0x101b2b6c]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov edx, 8
shl edx, 2
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x18]
call dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x10050017
jmp 0x100500eb
jmp 0x10050022
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x100500eb
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0x811c9dc5
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x20]
add edx, dword [ebp - 8]
movsx eax, byte [edx]
test eax, eax
je 0x1005006a
jmp 0x10050052
xor ecx, ecx
je 0x10050077
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0xc], 0
jmp 0x10050095
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x48]
jae 0x100500b4
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0xc]
movsx edx, byte [ecx]
xor edx, dword [ebp - 0x10]
imul eax, edx, 0x1000193
mov dword [ebp - 0x10], eax
jmp 0x1005008c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
push ecx
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.10058520
mov eax, dword [eax]
add eax, 0xc
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
mov dword [ecx], edx
jmp 0x10050019
mov esp, ebp
pop ebp
ret
Function at 0x1006e9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101498f8]
mov dword [ebp - 4], eax
jmp 0x1006e9d8
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1006e9ee
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1006e9ec
mov eax, dword [ebp - 4]
jmp 0x1006ea69
jmp 0x1006e9d0
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1006ea66
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x1006ea28
mov edx, dword [ebp - 4]
mov eax, dword [0x101498f8]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x101498f8], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x1006fb80
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10149040]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], 0
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x1006fd1f
mov dword [ebp - 0x20], 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1006fd14
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0x10
jb 0x1006fcb4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1006fcb4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1006fcb4
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1006fc3f
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
push edx
push 0
mov eax, dword [0x1014990c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1006fc3d
mov dword [ebp - 0x24], 0
jmp 0x1006fcd1
jmp 0x1006fc94
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1006fc94
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 2
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x1014990c]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x1006fc8c
mov dword [ebp - 0x24], 0
jmp 0x1006fcd1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x20], 0x1c
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x1006fbd2
cmp dword [ebp - 0x24], 0
je 0x1006fce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1006fce9
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
jne 0x1006fd14
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1006fd14
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x1014990c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10129ea9
mov esp, ebp
pop ebp
ret
Function at 0x1006fd30
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.1006fb80
add esp, 4
test eax, eax
jne 0x1006fd73
mov dword [ebp - 0xc], 9
jmp 0x1006fde2
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1006fde2
mov dword [ebp - 4], 0
jmp 0x1006fd8d
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x1006fde2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1006fde0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1006f9f0
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1006fd84
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x1006fdf0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1006fe66
mov dword [ebp - 4], 0
jmp 0x1006fe10
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x1006fe51
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1006fe4f
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1006fe07
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x1014990c]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov esp, ebp
pop ebp
ret