joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4063d0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x462729
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4847b0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4847b0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
mov byte [esp + 0x2b], cl
mov dword [esp + 0x18], eax
mov byte [esp + 0x24], 0x4d
mov byte [esp + 0x25], 0x74
mov byte [esp + 0x26], 0x24
mov byte [esp + 0x27], 0x31
mov byte [esp + 0x28], 0x76
mov byte [esp + 0x29], 0x73
mov byte [esp + 0x2a], 0x64
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x406446
sub eax, ecx
shr eax, 3
mov esi, eax
push esi
call fcn.004264dc
mov edi, eax
lea eax, [esi - 1]
cdq
and edx, 7
add eax, edx
sar eax, 3
lea ebx, [eax*8 + 8]
lea ecx, [ebx + 1]
push ecx
mov dword [esp + 0x28], ebx
call fcn.004264dc
push ebx
push 0
push edi
mov ebp, eax
call fcn.0044da30
push ebx
push 0
push ebp
call fcn.0044da30
add esp, 0x20
xor ecx, ecx
test esi, esi
jle 0x4064ee
mov eax, dword [esp + 0x18]
add eax, 2
mov dl, 0xd0
add byte [eax - 2], dl
add byte [eax - 1], dl
add byte [eax], dl
add byte [eax + 1], dl
add byte [eax + 2], dl
add byte [eax + 3], dl
add byte [eax + 4], dl
add byte [eax + 5], dl
mov bl, byte [eax - 2]
add bl, bl
add bl, byte [eax - 1]
inc ecx
add bl, bl
add bl, byte [eax]
add eax, 8
add bl, bl
add bl, byte [eax - 7]
add bl, bl
add bl, byte [eax - 6]
add bl, bl
add bl, byte [eax - 5]
add bl, bl
add bl, byte [eax - 4]
add bl, bl
add bl, byte [eax - 3]
cmp ecx, esi
mov byte [ecx + edi - 1], bl
jl 0x4064a2
mov ebx, dword [esp + 0x20]
push 1
lea edx, [esp + 0x28]
push edx
push esi
mov ecx, ebp
mov edx, edi
call fcn.0041d190
add esp, 0xc
mov byte [ebx + ebp], 0
call fcn.0042efde
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406520
push 0x80004005
call fcn.00401590
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
mov esi, dword [esp + 0x14]
add eax, 0x10
mov dword [esi], eax
push ebp
push 0x46d904
mov dword [esp + 0x40], 0
push esi
mov dword [esp + 0x28], 1
call fcn.00404580
push ebp
call fcn.004264d1
push edi
call fcn.004264d1
add esp, 0x14
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044ae7b
add esp, 0x28
ret 8
Function at 0x401cc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401d8f
mov eax, 0x42c894
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401d05
sub eax, edx
sar eax, 1
je 0x401d8f
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00429234]
push 0x42c894
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004148ea
push 0x42c8b0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00414e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401d8f
push eax
push 1
push 0x200
push esi
call fcn.0041512e
mov eax, dword [esp + 0x14]
push eax
call fcn.004151c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret

Function at 0x401db0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cc0
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0x401eb5
mov eax, 0x42c7e0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401df5
sub eax, edx
sar eax, 1
je 0x401eb5
cmp dword [0x433fbc], 3
jne 0x401e3c
push 0x104
lea edx, [esp + 0x10]
push edx
call dword [fcn.00429214]
push 0x42c8b8
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.004148ea
add esp, 0xc
jmp 0x401e4c
lea ecx, [esp + 0xc]
push ecx
push 0x104
call dword [fcn.00429234]
push 0x42c7e0
lea edx, [esp + 0x10]
push 0x104
push edx
call fcn.004148ea
push 0x42c8b0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00414e3b
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0x401eb5
push eax
push 1
push 0x200
push esi
call fcn.0041512e
mov edx, dword [esp + 0x14]
push edx
call fcn.004151c2
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
Function at 0x4025c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
or eax, 0xffffffff
push ebx
mov ebx, 1
push ebp
push esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x74], eax
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
call fcn.004149e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e4b0]
fadd qword [0x42e4c8]
call fcn.004189e0
mov ebp, eax
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4026e0
call fcn.004149e8
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fmul qword [0x42e4b0]
fmul qword [0x42e4c0]
fadd qword [0x42e4b8]
call fcn.004189e0
mov ecx, eax
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jle 0x4026c8
lea esp, [esp]
add ecx, ebx
cmp ecx, 0x1a
jne 0x4026b9
xor ecx, ecx
mov eax, dword [esp + ecx*4 + 0x18]
add eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, ebx
jg 0x4026b0
add esi, dword [esp + ecx*4 + 0x18]
mov eax, dword [esp + 0x84]
add ecx, 0x61
mov word [eax + edi*2], cx
add edi, ebx
cmp edi, ebp
jl 0x402677
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret

Function at 0x402780
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push 0x206
xor esi, esi
lea ecx, [esp + 0x12]
xor eax, eax
push esi
push ecx
mov word [esp + 0x18], ax
call fcn.00416cc0
add esp, 0xc
cmp edi, esi
je 0x402868
mov eax, 0x42c790
mov dword [esp + 4], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4027c5
sub eax, edx
sar eax, 1
je 0x4027ef
push 0x42c924
lea edx, [esp + 8]
push 0x42c790
push edx
call fcn.00414e3b
add esp, 0xc
jmp 0x40282a
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [fcn.00429234]
push 0x42c894
lea ecx, [esp + 0x10]
push 0x104
push ecx
call fcn.004148ea
push 0x42c924
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00414e3b
add esp, 0x18
mov eax, dword [esp + 4]
cmp eax, esi
je 0x40284d
push eax
push 1
push 0x200
push edi
call fcn.00415401
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004151c2
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004148db
add esp, 0x214
ret
Function at 0x402880
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push 0x42c8b0
push eax
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 0
call fcn.00414e3b
add esp, 0xc
test eax, eax
je 0x4028a4
xor eax, eax
pop ecx
ret
mov edx, dword [esp]
push ebx
push ebp
push esi
push edi
push 2
push 0
push edx
call fcn.0041550d
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041572f
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call fcn.0041550d
lea ebp, [esi + 0x32]
push ebp
call fcn.004157ec
mov edx, dword [esp + 0x30]
push edx
push 1
mov edi, eax
push esi
push edi
call fcn.0041512e
mov eax, dword [esp + 0x40]
push eax
call fcn.004151c2
lea ebx, [edi + esi]
mov eax, 0x32
call fcn.00402950
mov ecx, dword [esp + 0x4c]
push 0x42c924
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.00414e3b
add esp, 0x40
test eax, eax
je 0x402922
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.00415401
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004151c2
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x404570
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.00419170
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x1008], eax
mov edx, dword [edi]
mov eax, dword [esp + 0x1010]
push ebx
push ebp
mov ebp, dword [0x4293d4]
xor ebx, ebx
push ebx
push 4
lea ecx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x1c], eax
call ebp
cmp eax, 4
je 0x4045c8
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1008]
xor ecx, esp
call fcn.004148db
add esp, 0x100c
ret
cmp dword [esp + 8], ebx
jbe 0x404607
push esi
nop
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [esp + 0x1c]
push eax
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x404606
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
push esi
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00415401
add ebx, esi
add esp, 0x10
cmp ebx, dword [esp + 0xc]
jb 0x4045d0
pop esi
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
push eax
call fcn.004151c2
mov ecx, dword [esp + 0x1014]
add esp, 4
cmp ebx, dword [esp + 8]
pop ebp
sbb eax, eax
pop ebx
xor ecx, esp
inc eax
call fcn.004148db
add esp, 0x100c
ret
Function at 0x408080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x408087
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x408164
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x42de80]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4080a0
pop edi
test edx, edx
je 0x40818b
jmp 0x408170
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x42de80]
inc ecx
sub edx, 1
jne 0x408170
not eax
pop esi
ret

Function at 0x408190
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x42de80]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x42de80]
mov dword [edx + 8], ecx
ret

Function at 0x4081e0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x42de80]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x42de80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0x10001440
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10006018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x18]
push 0
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003684
mov esp, ebp
pop ebp
ret
Function at 0x100014c0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10006018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1bc]
push eax
xor ebx, ebx
push 0x202
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x10001523
cmp dword [ebp + 0x1c], 0x10
jb 0x1000151c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x10001656
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x1dc], eax
mov dword [ebp - 0x1d8], eax
mov dword [ebp - 0x1d4], eax
mov dword [ebp - 0x1e0], eax
mov dword [ebp - 0x1d0], eax
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1c8], eax
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c0], ebx
mov dword [ebp - 0x1dc], ebx
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x1d4], 6
cmp dword [ebp + 0x1c], esi
jae 0x10001585
lea eax, [ebp + 8]
lea edx, [ebp - 0x1c0]
push edx
lea ecx, [ebp - 0x1e0]
push ecx
push ebx
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 0x1c0]
cmp eax, ebx
jne 0x100015c2
cmp dword [ebp + 0x1c], esi
jb 0x1000151c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
jmp 0x10001656
mov eax, dword [eax + 0x18]
mov ecx, dword [eax]
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x100015e5
sub ecx, esi
mov edi, ecx
mov esi, 0x10006264
call fcn.10001a70
cmp dword [0x10006278], 0x10
mov eax, dword [0x10006264]
jae 0x1000160a
mov eax, esi
mov ecx, dword [0x10006274]
push ecx
push eax
lea ebx, [ebp - 0x2c]
call fcn.10001040
add esp, 8
mov edi, eax
mov esi, 0x10006280
mov byte [ebp - 4], 1
call fcn.10001a00
cmp dword [ebp - 0x18], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x10001642
mov edx, dword [ebp - 0x2c]
push edx
call esi
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x10001651
mov eax, dword [ebp + 8]
push eax
call esi
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003684
mov esp, ebp
pop ebp
ret
Function at 0x10002580
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10006018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10002664
lea eax, [ebp - 0x20]
push eax
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1000265d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x20], 0x10
jb 0x10002642
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10002642
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10002642
mov eax, dword [esi]
test eax, eax
jne 0x10002607
mov ecx, dword [0x10006654]
push 0x200
push eax
push ecx
mov dword [esi + 4], 0x80
call edi
mov dword [esi], eax
test eax, eax
je 0x1000265c
jmp 0x10002634
mov ecx, dword [esi + 4]
cmp dword [esi + 8], ecx
jb 0x10002634
lea edx, [ecx*8]
push edx
push eax
mov eax, dword [0x10006654]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1000265c
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x18]
mov dword [eax + edx*4], ecx
inc dword [esi + 8]
lea edx, [ebp - 0x20]
push edx
push ebx
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100025c7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10003684
mov esp, ebp
pop ebp
ret

Function at 0x10002680
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.10002580
cmp dword [esi], ebx
je 0x100026db
cmp dword [esi + 8], ebx
jbe 0x100026db
push edi
mov eax, dword [esi]
mov ecx, dword [eax + ebx*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100026d4
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push edx
push edi
call fcn.10002400
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x100026a0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100026e0
Capabilities:
Resume thread

Disassembly:
cmp dword [ebx], 0
je 0x1000272d
push edi
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x1000271b
push esi
mov edi, edi
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10002714
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebx + 8]
jb 0x100026f0
pop esi
mov edx, dword [ebx]
mov eax, dword [0x10006654]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
ret
Function at 0x10002730
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x10006670]
push ebx
push esi
lea eax, [eax + eax*4]
test byte [ecx + eax*8 + 0x14], 1
lea esi, [ecx + eax*8]
push edi
mov edi, dword [esi]
mov ebx, 5
je 0x10002758
sub edi, ebx
mov ebx, 7
lea edx, [ebp - 4]
push edx
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002776
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
je 0x10002799
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 0x100027ba
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100027ba
mov ecx, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], ecx
je 0x100027b4
mov dx, word [esi + 0x10]
mov word [edi + 4], dx
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100027ba
mov dl, byte [esi + 0x10]
mov byte [edi + 4], dl
mov ecx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
and eax, 1
mov edx, eax
and edx, 0xfffffffd
add eax, eax
or edx, eax
add edx, edx
and ecx, 0xfffffff9
or edx, ecx
pop edi
mov dword [esi + 0x14], edx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10002800
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x10006678]
push ebx
push esi
xor edx, edx
xor esi, esi
mov ebx, eax
mov dword [ebp - 4], edx
test ecx, ecx
je 0x100028f2
mov eax, dword [0x10006670]
add eax, 0x14
push edi
mov edi, dword [eax]
shl edi, 0x1e
sar edi, 0x1f
cmp edi, ebx
jne 0x10002845
inc esi
add eax, 0x28
cmp esi, ecx
jb 0x10002828
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1000283c
xor eax, eax
test ebx, ebx
setne al
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
call fcn.10002680
add esp, 8
cmp esi, dword [0x10006678]
jae 0x100028a2
lea edi, [esi + esi*4]
add edi, edi
add edi, edi
add edi, edi
mov ecx, dword [0x10006670]
mov edx, dword [edi + ecx + 0x14]
shl edx, 0x1e
sar edx, 0x1f
cmp edx, ebx
je 0x10002896
push ebx
mov eax, esi
call fcn.10002730
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
jne 0x100028a2
inc esi
add edi, 0x28
cmp esi, dword [0x10006678]
jb 0x10002870
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100028e8
xor edi, edi
cmp dword [ebp - 8], edi
jbe 0x100028d8
mov eax, dword [ebx + edi*4]
push eax
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x100028d2
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 8]
jb 0x100028b0
mov ecx, dword [0x10006654]
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1000666c]
push esi
xor esi, esi
cmp eax, esi
je 0x10002ecb
lea esp, [esp]
cmp dword [eax + 4], esi
jne 0x10002f13
mov eax, dword [eax]
cmp eax, esi
jne 0x10002ec0
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, esi
je 0x10002f13
lea ecx, [eax + 0x20]
mov edx, ecx
mov dword [eax + 4], esi
mov dword [eax + 8], esi
sub edx, eax
nop
mov esi, dword [eax + 4]
mov dword [ecx], esi
mov dword [eax + 4], ecx
add edx, 0x20
add ecx, 0x20
cmp edx, 0xfe0
jbe 0x10002ef0
mov ecx, dword [0x1000666c]
mov dword [eax], ecx
mov dword [0x1000666c], eax
pop esi
ret
Function at 0x10003684
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10006018]
jne 0x1000368e
repz ret
jmp fcn.10003b3b