joyce8/EMBER2024-capa huggingface dataset:
Function at 0x510739
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x510771
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.0050e74b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050e723
jmp 0x51077d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5120bc
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 0x5120fe
call fcn.00518cd4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5120fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5120f5
xor eax, eax
jmp 0x512106
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0051210c
pop edi
pop esi
pop ebx
ret 4

Function at 0x519204
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 0x519232
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x519250
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0051916a
jmp 0x519250
mov eax, dword [esi + 0x14]
test eax, eax
je 0x519250
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0051916a
test edi, edi
mov eax, edi
jne 0x51923a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x51bff8
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x51c020
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x51c031
push 2
call edi
test ax, ax
jge 0x51c031
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0050fd6f
cmp dword [esi + 0x30], ebx
jne 0x51c10b
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.0050fd6f
cmp eax, dword [esp + 0x34]
jne 0x51c10b
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x51c0a7
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x51c0ec
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x51c10b
cmp eax, 0x205
je 0x51c10b
cmp eax, 0x201
je 0x51c10b
cmp eax, 0x204
je 0x51c10b
cmp eax, ebx
jne 0x51c0d2
cmp dword [esp + 0x1c], 0x1b
je 0x51c10b
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x5ec8f8]
jbe 0x51c101
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x51c064
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x33d6704a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x33d6c00b
call fcn.33d6b669
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
call dword [0x33d6e7b4]
xor ebx, ebx
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x33d67106
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
push 2
push eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x42c]
push eax
call fcn.33d655ee
test eax, eax
jl 0x33d67106
mov edi, dword [ebp - 0x42c]
cmp edi, 0x400
jg 0x33d670e8
push edi
call fcn.33d64033
test al, al
je 0x33d670e8
mov eax, edi
call fcn.33d6b549
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x33d670f4
push edi
lea ecx, [ebp - 0x428]
call fcn.33d655ee
push dword [ebp - 0x424]
push edi
push esi
push eax
call fcn.33d655ee
cmp eax, ebx
jne 0x33d6713d
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x33d6711f
lea ecx, [ebp - 0x418]
call fcn.33d63f65
lea ecx, [ebp - 0x428]
call fcn.33d63e95
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.33d6b6c2
ret 0x10
push 2
push ebx
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x424], edi
jne 0x33d6715f
call fcn.33d6356e
mov esi, eax
jmp 0x33d67252
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x33d67182
call fcn.33d6356e
jmp 0x33d67244
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 0x41c], eax
je 0x33d67178
push esi
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x420], esi
jae 0x33d671db
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x33d671c4
lea ecx, [ebp - 0x418]
call fcn.33d63f65
mov esi, 0x8007000e
lea ecx, [ebp - 0x428]
call fcn.33d63e95
mov eax, esi
jmp 0x33d6712f
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.33d655ee
mov dword [ebp - 4], 1
jmp 0x33d67202
cmp dword [ebp - 0x418], ebx
jne 0x33d67211
mov esi, 0x8007000e
jmp 0x33d67246
push esi
push dword [ebp - 0x41c]
push esi
push dword [ebp - 0x418]
call fcn.33d655ee
mov eax, dword [ebp - 0x418]
add esp, 0x10
push dword [ebp + 0x14]
mov byte [eax + esi], bl
push dword [ebp - 0x418]
lea ecx, [ebp - 0x434]
call fcn.33d655ee
mov esi, eax
push dword [ebp - 0x424]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x33d671c9
lea ecx, [ebp - 0x418]
call fcn.33d63f65
jmp 0x33d671c9
Function at 0x425450
Capabilities:
Encrypt data using blowfish

Disassembly:
push esi
push edi
mov dword [0x4299ac], 0x10
mov esi, 0x42655c
mov edi, 0x428924
mov ecx, 0x422
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret

Function at 0x425714
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x1004], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4257ba
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1000]
mov ecx, 0x20
mov edx, 0x1000
call fcn.0040305c
cmp ebx, 0xff
jne 0x42576d
lea eax, [ebp - 0x1000]
push eax
push 0x1000
call sub.kernel32.dll_GetTempPathA
jmp 0x42577e
push 0
push ebx
lea eax, [ebp - 0x1000]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathA
lea eax, [ebp - 0x1004]
lea edx, [ebp - 0x1000]
mov ecx, 0x1000
call fcn.00404550
mov eax, dword [ebp - 0x1004]
mov edx, esi
call fcn.00407c7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4257c1
lea eax, [ebp - 0x1004]
call fcn.00404460
ret

Function at 0x43b65a
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
or ecx, ebx
call fcn.0043b685
inc ebx
xor dword [edx], esi
sub ecx, 0x15a9054e
inc edx
add ebx, ecx
or ebx, ecx
cmp edx, eax
jne fcn.0043b65a
mov ebx, 0x744d1f66
add ecx, ebx
ret
Function at 0x401000
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
xor edi, edi
push edi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
je 0x40105c
push edi
push edi
push edi
push edi
push edi
push dword [ebp + 8]
mov esi, 0xf01ff
push 1
push 2
push 0x110
push esi
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40105c
push esi
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, edi
je 0x40105c
push edi
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4010da
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 2
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, 0x40aeb0
jl 0x401109
push dword [eax + 4]
push esi
call fcn.00401910
pop ecx
pop ecx
mov edi, 0x40ae78
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1f4
lea eax, [ebp - 0x1fc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.WinMicrosoft
mov ebx, 0x40ac80
push ebx
call fcn.00401910
push esi
push 0x40816c
call fcn.004018b9
add esp, 0x10
test eax, eax
je 0x401181
push esi
push 0x408168
call fcn.004018b9
pop ecx
pop ecx
test eax, eax
je 0x401181
push 0
push 0
push 0x4010c7
call fcn.0040166b
add esp, 0xc
push 0x40a004
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x401190
lea eax, [ebp - 0x1fc]
push ebx
push eax
call fcn.00401000
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401a08
leave
ret

Function at 0x401a08
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a020]
jne 0x401a12
repz ret
jmp fcn.00403d57
Function at 0x10005737
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x10005746
pop dword [ebp - 8]
mov eax, 0x10005746
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x88c676e8
sub dword [ebp - 0x18], 0x3a74319d
mov dword [ebp - 0x14], 0xef8ada53
sub dword [ebp - 0x14], 0xbd578e0e
mov dword [ebp - 0x10], 0x2d5fd84d
sub dword [ebp - 0x10], 0xe113941f
mov dword [ebp - 0xc], 0x43b98f64
add dword [ebp - 0xc], 0xbc46709c
lea eax, [ebp - 0x18]
push eax
mov eax, 0x328fbb0d
sub eax, 0x228bb9f9
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x23f44235
sub dword [ebp - 0x18], 0xaf81d8df
mov dword [ebp - 0x14], 0x2610c43c
add dword [ebp - 0x14], 0x1b5b9d39
mov dword [ebp - 0x10], 0x7ff5abd1
sub dword [ebp - 0x10], 0x1c863f65
mov dword [ebp - 0xc], 0xac629675
sub dword [ebp - 0xc], 0xac629675
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xf42579d5
add eax, 0x1bde8783
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3b049
push 0
call eax
mov ecx, 0x496cf078
add ecx, 0xb69356c3
xor edx, edx
add edx, eax
mov ebx, 0x1fdc524e
add ebx, 0xf02cf7b2
add ebx, dword [ebp - 8]
mov edi, 0xd1c9f643
add edi, 0xa09848fd
sub dword [ebp - 4], 0x19524bce
mov esi, dword [ebx]
xor dword [ebp - 4], 0x4d301731
add esi, edi
mov dword [edx], esi
xor dword [ebp - 4], 0xababc385
add edx, 0xba30cef4
sub edx, 0xba30cef0
add ebx, 0xa4091ac6
add ebx, 0x5bf6e53e
loop 0x10005865
add eax, 0x10fbf
mov ebx, eax
add eax, 5
mov ecx, 0x8aabc7f
sub ecx, 0xf8aabc7f
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x100058e1
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x24], 0
and dword [eax + 0x20], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret
Function at 0x100289e0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], edx
cmp ebx, eax
je 0x10028b51
mov eax, dword [edx + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [ebx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 9]
push esi
push edi
mov edi, dword [edx + 0xc]
mov esi, ebx
xor ecx, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.10028d30
push 0x2c
push edi
call fcn.1003168d
mov edx, dword [ebp - 0x14]
add esp, 8
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x10]
je 0x10028aad
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x10028a60
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x10028b47
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [edi], esi
mov dword [ecx], esi
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x10028ac1
mov eax, dword [ebp - 0x18]
mov ecx, eax
mov dword [edi], eax
jmp 0x10028ac4
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], ecx
cmp esi, eax
je 0x10028b47
nop
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.10028d30
push 0x2c
push edi
call fcn.1003168d
mov edx, dword [ebp - 0x14]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x10]
je 0x10028b58
cmp esi, eax
jne 0x10028b17
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
cmp esi, eax
jne 0x10028ad0
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002e1d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x1002e201
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, 1
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.1002ddf0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1002e30c
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [ebx + 0xc]
imul edi, edi, 0x1000193
and edi, dword [ebx + 0x18]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x1002e28f
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1002e302
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x1002e2c9
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x1002e2c1
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x1002e2ff
cmp edi, edx
je 0x1002e2dc
nop dword [eax]
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x1002e315
cmp edi, edx
jne 0x1002e2d0
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x1002e240
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1002e2ff
Function at 0x1002f050
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1003d380]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x1002f1cc
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1002f1b9
cmp dword [ebp - 0x28], 0x10
jb 0x1002f19d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.10031c1a
cmp dword [ebp - 0x1c], eax
jne 0x1002f19d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.10031c1a
cmp dword [ebp - 0x20], eax
je 0x1002f19d
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1002f124
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x10050dd4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.10031c1a
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x1002f122
jmp 0x1002f1b9
jmp 0x1002f17d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x1002f17d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10050dd4]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.10031c1a
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1002f167
jmp 0x1002f1b9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
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 - 0x20]
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 - 0x28], 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1002f0a3
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10031c1a
push edx
mov ecx, ebp
push eax
lea edx, [0x1002f1f8]
call fcn.10031bc6
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003120d
add esp, 0x30
cmp ebp, esp
call fcn.10031c1a
mov esp, ebp
pop ebp
ret
Function at 0x1002f210
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
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.1002f050
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x1002f2db
mov dword [ebp - 4], 0
jmp 0x1002f26c
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 0x1002f2db
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10031c1a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002f2d9
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.10031c1a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.1002ee70
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10031c1a
jmp 0x1002f263
pop esi
add esp, 8
cmp ebp, esp
call fcn.10031c1a
mov esp, ebp
pop ebp
ret

Function at 0x1002f2f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x1002f39b
mov dword [ebp - 4], 0
jmp 0x1002f323
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 0x1002f37e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.10031c1a
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1002f37c
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.10031c1a
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.10031c1a
jmp 0x1002f31a
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10050dd4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.10031c1a
pop esi
add esp, 8
cmp ebp, esp
call fcn.10031c1a
mov esp, ebp
pop ebp
ret