joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ab30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467eb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00460d30
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a4d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00460c5e
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045d522
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045d522
push 1
push 0
push 0
mov ecx, esi
call fcn.0045d4ca
push 1
push 0
push 1
mov ecx, esi
call fcn.0045d4ca
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460da2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43acb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467ed8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00460d30
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a4d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00460c5e
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43ad74
cmp dword [esp + 0x40], 1
jne 0x43ad72
cmp ecx, eax
jge 0x43ad74
mov eax, ecx
cmp eax, 0xc8
jge 0x43ad80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ab30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00460da2
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b500
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x467f43
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045b942
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00460fd8
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004624f4
test eax, eax
je 0x43b61c
mov ecx, dword [esp + 0x3c]
call fcn.00461005
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b5e0
push edi
mov ecx, esi
call fcn.0045e669
mov ecx, esi
call fcn.0043b780
cmp dword [esp + 0x38], 1
jne 0x43b615
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045e7a4
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e040
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e073
push esi
call fcn.00441130
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e06c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e0f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e0e2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e097
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e0de
cmp eax, 2
je 0x43e0e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e08a
cmp eax, 3
je 0x43e0bd
cmp eax, 1
jne 0x43e08a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e08a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e08a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e120
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e108
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e120
add esp, 4
pop esi
ret

Function at 0x45c738
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45c770
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045a7ec
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a7c4
jmp 0x45c77c
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45de26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45de68
call fcn.004638df
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45de68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45de5f
xor eax, eax
jmp 0x45de70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045de76
pop edi
pop esi
pop ebx
ret 4

Function at 0x463e0f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x463e3d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x463e5b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00463d75
jmp 0x463e5b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x463e5b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00463d75
test edi, edi
mov eax, edi
jne 0x463e45
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10002240
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c04a
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1005801c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], 0x1004f274
mov dword [edi + 4], 0x1004f260
mov dword [ebp - 4], 6
mov eax, dword [edi + 0x6c]
cmp eax, 0xffffffff
je 0x10002295
push 0
push eax
call dword [sym.imp.kernel32.dll_TerminateThread]
mov ecx, dword [edi + 0x50]
push edi
mov eax, dword [ecx]
call dword [eax + 0xc]
mov byte [ebp - 4], 5
lea esi, [edi + 0x64]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 5
mov ecx, esi
mov eax, dword [esi]
push dword [eax + 4]
push esi
call fcn.10003180
push 0x30
push dword [esi]
call fcn.1001fd76
add esp, 8
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x60]
test esi, esi
je 0x100022e2
mov ecx, esi
call fcn.10005300
push 0x6c
push esi
call fcn.1001fd76
add esp, 8
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x1000230f
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x1000230f
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, ebx
lock xadd dword [esi + 8], eax
jne 0x1000230f
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 2
mov esi, dword [edi + 0x54]
test esi, esi
je 0x10002338
mov eax, ebx
lock xadd dword [esi + 4], eax
jne 0x10002338
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], ebx
dec ebx
jne 0x10002338
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 1
lea ecx, [edi + 0x38]
call fcn.10002930
mov byte [ebp - 4], 0
lea ecx, [edi + 0x20]
call fcn.10002930
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 8]
call fcn.10002930
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 0x100038b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c37f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1005801c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 0
call fcn.1001ca90
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
mov byte [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov byte [ebp - 4], 3
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov byte [ebp - 4], 4
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov byte [ebp - 4], 5
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
mov eax, dword [ebp + 8]
test eax, eax
je 0x10003961
push eax
push esi
call fcn.1001cd73
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push str.bad_locale_name
call fcn.1001c999
int3
Function at 0x10007380
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x100073b1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100073a0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x1000eb80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003cbb0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x1005801c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0
je 0x1000ebce
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
jb 0x1000ebb8
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
push 0
push 0x1004f9a0
lea ecx, [esi + 0x20]
call fcn.10006330
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x1000ebe2
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x1c], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1000ebf6
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1000ec0a
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x1000ec1e
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1000ec32
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10012f40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e78d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x1005801c]
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
mov eax, dword [ebp + 8]
mov ecx, 0x1015a11c
mov dword [ebp - 0x14], eax
mov al, 1
xchg byte [ecx], al
test al, al
je 0x10012f88
mov eax, 1
jmp 0x100130aa
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.100133e0
mov dword [ebp - 4], 0
cmp eax, 0x1015a210
je 0x10012fce
mov ecx, dword [eax]
mov dword [eax], 0
mov esi, dword [0x1015a210]
mov dword [0x1015a210], ecx
test esi, esi
je 0x10012fce
mov ecx, esi
call fcn.10012cf0
push 0x91
push esi
call fcn.1001fd76
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x10012ff1
mov ecx, esi
call fcn.10012cf0
push 0x91
push esi
call fcn.1001fd76
add esp, 8
mov ecx, dword [0x1015a210]
call fcn.10019840
mov ebx, eax
call fcn.1001baf0
xor esi, esi
mov ecx, 1
mov edi, 0x1015a164
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
je 0x10013044
mov edi, dword [sym.imp.kernel32.dll_Sleep]
nop
cmp esi, 0x20
jae 0x10013029
push 0
jmp 0x1001302b
push 1
call edi
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x1015a164
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10013020
mov edi, edx
cmp dword [0x1015a168], 0
jne 0x1001305e
push 0
push 0
push 0
call dword [sym.imp.kernel32.dll_HeapCreate]
mov dword [0x1015a168], eax
xor eax, eax
xchg dword [edi], eax
mov esi, dword [0x1015a210]
mov dword [0x1015a210], 0
test esi, esi
je 0x1001308b
mov ecx, esi
call fcn.10012cf0
push 0x91
push esi
call fcn.1001fd76
add esp, 8
cmp ebx, 1
jne 0x1001309f
push 0
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
xor al, al
mov ecx, 0x1015a11c
xchg byte [ecx], al
xor eax, eax
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.1001fb3b
mov esp, ebp
pop ebp
ret 4
Function at 0x10017680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1015a15c], 0
jne 0x100176a5
push dword [ebp + 0x14]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
pop ebp
ret 0x10
push 0x18
call fcn.1001fd46
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [eax + 0xc], 0
push dword [ebp + 0x14]
mov dword [eax + 0x14], 0
push 0
push eax
push dword [0x1015a15c]
mov dword [eax + 8], ecx
mov ecx, dword [ebp + 0xc]
push 0
push 0
mov dword [eax], 0x584f5250
mov dword [eax + 4], 0x20202059
mov dword [eax + 0x10], ecx
call dword [sym.imp.kernel32.dll_CreateThread]
pop ebp
ret 0x10
Function at 0x1001b7b1
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1005801c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.kernel32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1001b889
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.kernel32.dll_Thread32First]
jmp 0x1001b87a
cmp dword [ebp - 0x20], 0x10
jb 0x1001b868
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1001b868
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1001b868
mov edx, dword [esi]
test edx, edx
jne 0x1001b836
push 0x200
push edx
push dword [0x1015a168]
mov dword [esi + 4], 0x80
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x1001b882
jmp 0x1001b85c
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1001b85c
shl eax, 3
push eax
push edx
push 0
push dword [0x1015a168]
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x1001b882
shl dword [esi + 4], 1
mov dword [esi], edx
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 0x1001b7f1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001fb3b
leave
ret

Function at 0x1001b897
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.1001b7b1
cmp dword [esi], ebx
je 0x1001b8f7
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x1001b8f6
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.kernel32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001b8ed
push ebx
call dword [sym.imp.kernel32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1001b65e
pop ecx
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x1001b8bd
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001b8fb
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x1001b949
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1001b939
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.kernel32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1001b930
push ebx
call dword [sym.imp.kernel32.dll_ResumeThread]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1001b90d
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x1015a168]
call dword [sym.imp.kernel32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x1001b94b
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x1015a240]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x1001b971
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1001b995
push 0xa
pop eax
jmp 0x1001ba14
test edi, edi
je 0x1001b9b6
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x1001b9d5
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1001b9d5
test byte [esi + 0x14], 1
je 0x1001b9ca
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x1001b9d5
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov al, byte [esi + 0x14]
and dl, 1
mov cl, dl
and al, 0xfd
add cl, cl
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [esi + 0x14], cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001c097
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x1015a230]
push esi
xor esi, esi
jmp 0x1001c0a9
cmp dword [edx + 4], esi
jne 0x1001c102
mov edx, dword [edx]
test edx, edx
jne 0x1001c0a2
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1001c106
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x1001c0d2
mov eax, dword [0x1015a230]
mov dword [edx], eax
mov dword [0x1015a230], edx
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
test edx, edx
jne 0x1001c0f5
xor eax, eax
pop esi
ret
Function at 0x1001e3ea
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1005801c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x1001e40f
xor eax, eax
jmp 0x1001e46b
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x1001e43c
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x1001e43c
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x1001e4f2
cmp dword [edi + 0x4c], 0
je 0x1001e465
mov ecx, edi
call fcn.1001dec9
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x1001e47b
push dword [edi + 0x4c]
push ebx
call fcn.1001d5ca
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x1001e46a
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1001fb3b
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x10041200]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x1001e4c5
sub eax, 1
je 0x1001e4c5
dec eax
sub eax, 1
jne 0x1001e465
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1001e457
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x1001e4e2
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.10028490
add esp, 0x10
cmp esi, eax
jne 0x1001e465
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x1001e465
mov ax, bx
jmp 0x1001e46a

Function at 0x1002fd1c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002f9cd

Function at 0x1002fd27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002fb57