joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40117b
Capabilities:
Check for time delay via queryperformancecounter
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
push 0x3ff
push 0x40b6a0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x4011bc
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0x40b6a0
call section..text
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push 0x40b6a0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov dword [ebp - 0xac], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
cmp dword [ebp - 0xac], 0xffffffff
je 0x401394
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push 2
push 0
push 0xfffffffffffffff0
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
push 4
push 0x40baa8
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x94]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push dword [ebp - 0xc]
push dword [ebp - 0x94]
push dword [ebp - 0x98]
push dword [0x40baa8]
push str._d__d__d__d
lea eax, [ebp - 0x8c]
push eax
call fcn.0040370f
add esp, 0x18
cmp dword [ebp - 0xc], 0x221c
jne 0x40135d
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x94]
mov dword [0x40500c], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 0x98]
mov dword [0x405008], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
jmp 0x401379
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
jmp 0x4013b6
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
leave
ret
Function at 0x402ab1
Capabilities:
Check for time delay via queryperformancecounter
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
and dword [ebp - 0x14], 0
jmp 0x402b05
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402ca3
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402c14
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
cmp dword [ebp - 4], 0
jle 0x402c0f
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
call fcn.0040199f
add esp, 0xc
jmp 0x402af5
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.00401961
add esp, 0xc
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
jmp 0x402af5
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
leave
ret
Function at 0x402f04
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0xa0
mov dword [ebp - 0xc], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0
jbe 0x4030df
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jbe 0x4030df
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
add eax, 8
mov dword [ebp - 0x18], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
and dword [ebp - 8], 0
jmp 0x402fbb
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
cmp dword [ebp - 8], eax
jae 0x40309d
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
sar eax, 0xc
mov dword [ebp - 0x20], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
and eax, 0xfff
mov dword [ebp - 0x24], eax
push 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x403040
cmp dword [ebp - 0x28], 3
je 0x403042
jmp 0x40308b
jmp 0x403098
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
jmp 0x403098
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
jmp 0x402fac
mov eax, dword [0x405018]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x405018], eax
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 4]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
jmp 0x402f6e
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
leave
ret
Function at 0x403793
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4037bc
cmp al, 0x22
je 0x4037b4
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4037a8
cmp byte [esi], 0x22
jne 0x4037c6
inc esi
jmp 0x4037c6
cmp al, 0x20
jle 0x4037c6
inc esi
cmp byte [esi], 0x20
jg 0x4037c0
mov al, byte [esi]
test al, al
je 0x4037d0
cmp al, 0x20
jle 0x4037b9
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.0040383e
push 0x405004
push section..data
call fcn.00403824
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403800
movzx eax, word [ebp - 0x14]
jmp 0x403803
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00403856
push esi
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x10002894
Capabilities:
Terminate process

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
call fcn.1001f500
mov edx, dword [esp + 0x14]
lea ecx, [esp]
call fcn.10018000
mov edx, dword [esp]
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f3a0
lea eax, [esp + 8]
push eax
call fcn.1001f400
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
push dword [esp + 0xc]
call fcn.1001cea7
call fcn.1001f490
lea edx, [0x10027028]
call fcn.100191a0
mov ecx, eax
call fcn.100191b0
je 0x10002920
mov edx, dword [esp + 4]
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f3a0
lea edx, str..dll
push edx
call fcn.1001f3a0
lea eax, [esp + 8]
push eax
call fcn.1001f400
cmp dword [esp + 0x18], 0
je 0x1000295b
mov edx, dword [0x10031934]
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f3a0
lea edx, [0x100275d6]
push edx
call fcn.1001f3a0
mov edx, dword [esp + 8]
push edx
call fcn.1001f3a0
lea eax, [esp + 8]
push eax
call fcn.1001f400
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_LoadLibraryW
mov dword [esp + 8], eax
mov ebx, dword [esp + 8]
and ebx, ebx
jne 0x100029be
push edx
call fcn.1001f360
pop edx
push eax
push 0xffffffff
push edx
call fcn.1001f360
pop edx
push eax
lea edx, str.Failed_load_original_dll:_n
push edx
call fcn.1001f3a0
mov edx, dword [esp + 0xc]
push edx
call fcn.1001f3a0
call fcn.10019202
add dword [esp], edx
call fcn.1000d36c
call fcn.10019220
push 0
call sub.KERNEL32.dll_GetCurrentProcess
push eax
call sub.KERNEL32.dll_TerminateProcess
mov eax, dword [esp + 8]
jmp 0x100029c6
push dword [esp + 4]
call fcn.1001f560
push dword [esp]
call fcn.1001f560
add esp, 0xc
pop ebx
ret 8
Function at 0x1000b48c
Capabilities:
Get file attributes

Disassembly:
push ebx
xor eax, eax
push eax
call fcn.1001f500
mov edx, dword [esp + 0xc]
lea ecx, [esp]
call fcn.10018000
mov eax, dword [esp]
push eax
call sub.KERNEL32.dll_GetFileAttributesW
mov ebx, eax
and ebx, 0x10
and ebx, ebx
jne 0x1000b4ba
mov eax, 1
jmp 0x1000b4bc
xor eax, eax
jmp 0x1000b4c0
push dword [esp]
call fcn.1001f560
add esp, 4
pop ebx
ret 4
Function at 0x10010375
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x1a
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x1001037c
call fcn.1001f500
mov edx, dword [esp + 0x74]
lea ecx, [esp]
call fcn.10018000
mov edx, dword [esp + 0x78]
lea ecx, [esp + 4]
call fcn.10018000
mov edx, dword [esp + 0x80]
lea ecx, [esp + 8]
call fcn.10018000
mov dword [esp + 0x60], 0x4000200
lea ebp, [esp + 0xc]
mov dword [ebp], 0x44
mov edx, dword [esp]
xor ecx, ecx
call fcn.100191b0
jne 0x1001044b
push edx
call fcn.1001f360
pop edx
push eax
lea edx, [0x10027226]
push edx
call fcn.1001f3a0
mov edx, dword [esp + 4]
push edx
call fcn.1001f3a0
lea edx, [0x10027226]
push edx
call fcn.1001f3a0
lea eax, [esp + 0x68]
push eax
call fcn.1001f400
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.100191b0
jne 0x10010449
mov edx, dword [esp + 0x64]
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f3a0
lea edx, [0x1002721e]
push edx
call fcn.1001f3a0
mov edx, dword [esp + 8]
push edx
call fcn.1001f3a0
lea eax, [esp + 0x68]
push eax
call fcn.1001f400
jmp 0x10010467
mov edx, dword [esp + 4]
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f3a0
lea eax, [esp + 0x68]
push eax
call fcn.1001f400
mov ebx, dword [esp + 0x7c]
and ebx, 2
and ebx, ebx
je 0x10010483
lea ebp, [esp + 0xc]
mov dword [ebp + 0x2c], 1
mov word [ebp + 0x30], 0
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push dword [esp + 0x70]
push 0
push 0
push 0
mov eax, dword [esp + 0x84]
push eax
push 0
call sub.KERNEL32.dll_CreateProcessW
and eax, eax
je 0x100104f4
mov ebx, dword [esp + 0x7c]
and ebx, 1
and ebx, ebx
je 0x100104dc
push 0xffffffff
lea ebp, [esp + 0x54]
push dword [ebp]
call sub.KERNEL32.dll_WaitForSingleObject
lea ebp, [esp + 0x50]
push dword [ebp]
call sub.KERNEL32.dll_CloseHandle
lea ebp, [esp + 0x50]
push dword [ebp + 4]
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
push dword [esp + 0x64]
call fcn.1001f560
push dword [esp + 8]
call fcn.1001f560
push dword [esp]
call fcn.1001f560
push dword [esp + 4]
call fcn.1001f560
add esp, 0x68
pop ebx
pop ebp
ret 0x10

Function at 0x10012d2b
Capabilities:
Print debug messages

Disassembly:
xor eax, eax
push eax
call fcn.1001f500
mov edx, dword [esp + 8]
lea ecx, [esp]
call fcn.10018000
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
lea edx, str.PORT:
push edx
call fcn.1001f3a0
mov edx, dword [esp + 8]
push edx
call fcn.1001f3a0
call fcn.10019202
add dword [esp], edx
call sub.KERNEL32.dll_OutputDebugStringW
call fcn.10019220
xor eax, eax
push dword [esp]
call fcn.1001f560
add esp, 4
ret 4
Function at 0x10014dd2
Capabilities:
Get common file path

Disassembly:
xor eax, eax
push eax
call fcn.1001f500
mov eax, dword [0x1003151c]
mov dword [0x10031b74], eax
cmp dword [section..share], 0
jne 0x10014df3
inc dword [0x10031bbc]
inc dword [section..share]
push dword [0x10031b74]
call sub.KERNEL32.dll_DisableThreadLibraryCalls
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
push 0x7fff
call fcn.1001b630
lea eax, [esp + 4]
push eax
call fcn.1001f400
push 0x7fff
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1001ece0
push 0x10031e04
call fcn.1001f400
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
push 1
push dword [0x10031e04]
call fcn.1001d113
push 0x1003216c
call fcn.1001f400
push 0x7fff
mov eax, dword [esp + 4]
push eax
push dword [0x10031b74]
call sub.KERNEL32.dll_GetModuleFileNameW
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
mov eax, dword [esp + 8]
push eax
call fcn.1001ece0
push 0x10031590
call fcn.1001f400
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
push 1
push dword [0x10031590]
call fcn.1001d113
push 0x10031830
call fcn.1001f400
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
push dword [0x10031590]
call fcn.1001d1d0
push 0x100321a8
call fcn.1001f400
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
lea eax, [0x100275d6]
push eax
push dword [0x100321a8]
call fcn.1001bc70
push 0x10031980
call fcn.1001f400
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetWindowsDirectoryW
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
lea eax, [0x100275d6]
push eax
push dword [esp + 0xc]
call fcn.1001bc70
push 0x10031cec
call fcn.1001f400
push 0x7fff
mov eax, dword [esp + 4]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
lea eax, [0x100275d6]
push eax
push dword [esp + 0xc]
call fcn.1001bc70
push 0x10031934
call fcn.1001f400
mov eax, dword [esp]
push eax
push 0x7fff
call sub.KERNEL32.dll_GetTempPathW
push edx
call fcn.1001f360
pop edx
push eax
push edx
call fcn.1001f360
pop edx
push eax
lea eax, [0x100275d6]
push eax
push dword [esp + 0xc]
call fcn.1001bc70
push 0x10031cc8
call fcn.1001f400
xor eax, eax
push dword [esp]
call fcn.1001f560
add esp, 4
ret
Function at 0x1001953c
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
cmp eax, 0xffffffff
je 0x100196da
mov esi, eax
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
je 0x10019722
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
jmp 0x10019615
mov dword [ebx + 4], pe_nt_image_headers32
mov dword [esp + 8], 0x200
mov dword [esp + 4], 0
mov eax, dword [0x100326e0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x100196f9
mov edx, dword [ebx]
mov eax, dword [ebx + 8]
lea ecx, [eax + 1]
mov dword [ebx + 8], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edx + eax*4], ecx
mov dword [esp + 0x24], 0x1c
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
je 0x100196ee
cmp dword [esp + 0x24], 0xf
jbe 0x100195f2
mov edi, dword [esp + 0x30]
call ebp
cmp edi, eax
jne 0x100195f2
mov edi, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp edi, eax
je 0x100195f2
mov edx, dword [ebx]
test edx, edx
je 0x100195ae
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
jb 0x100195e0
lea ecx, [eax + eax]
mov dword [ebx + 4], ecx
shl eax, 3
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [0x100326e0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
sub esp, 0x10
test eax, eax
je 0x100196f9
mov dword [ebx], eax
jmp 0x100195e0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
sub esp, 4
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
call fcn.100193b2
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add esi, 1
cmp dword [ebx + 8], esi
jbe 0x100196d3
mov eax, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov edi, eax
test eax, eax
jne 0x1001967f
jmp 0x100196a6
mov eax, 0
jmp 0x100196df
mov eax, 9
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0
jmp 0x100196df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x10019735
mov eax, dword [ebx]
test eax, eax
je 0x10019722
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x100326e0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
mov dword [ebx], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov eax, 9
jmp 0x100196df
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp dword [ebx], 0
je 0x1001975c
cmp dword [ebx + 8], 0
je 0x100196e7
mov esi, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x100196ae
mov eax, 0
jmp 0x100196df
Function at 0x10019766
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, edx
imul eax, eax, 0x2c
add eax, dword [0x1003274c]
mov ebx, eax
mov esi, dword [eax]
mov ebp, 5
test byte [eax + 0x14], 1
je 0x1001978f
sub esi, 5
mov ebp, 7
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov edx, 0xa
test eax, eax
je 0x1001982f
test edi, edi
je 0x10019839
mov byte [esi], 0xe9
lea eax, [esi + 5]
mov ecx, dword [ebx + 4]
sub ecx, eax
mov dword [esi + 1], ecx
test byte [ebx + 0x14], 1
je 0x100197d9
mov eax, dword [ebx]
mov byte [eax], 0xeb
mov byte [eax + 1], 0xf9
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
sub esp, 0xc
and edi, 1
lea edx, [edi + edi]
movzx eax, byte [ebx + 0x14]
and eax, 0xfffffff9
shl edi, 2
or eax, edx
or eax, edi
mov byte [ebx + 0x14], al
mov edx, 0
mov eax, edx
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [ebx + 0x14], 1
je 0x10019855
mov edx, dword [ebx + 0xc]
mov dword [esi], edx
movzx edx, word [ebx + 0x10]
mov word [esi + 4], dx
movzx eax, byte [ebx + 0x12]
mov byte [esi + 6], al
jmp 0x100197d9
mov eax, dword [ebx + 0xc]
mov dword [esi], eax
movzx eax, byte [ebx + 0x10]
mov byte [esi + 4], al
jmp 0x100197d9

Function at 0x10019866
Capabilities:
Resume thread

Disassembly:
cmp dword [eax], 0
je 0x100198f7
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov edi, eax
cmp dword [eax + 8], 0
je 0x100198d0
mov ebx, 0
mov ebp, dword [sym.imp.KERNEL32.dll_OpenThread]
jmp 0x100198ab
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
add ebx, 1
cmp dword [edi + 8], ebx
jbe 0x100198d0
mov eax, dword [edi]
mov eax, dword [eax + ebx*4]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x5a
call ebp
sub esp, 0xc
mov esi, eax
test eax, eax
jne 0x1001988b
jmp 0x100198a3
mov eax, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [0x100326e0]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
sub esp, 0xc
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
ret