joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e2850
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x178
mov rax, qword [0x140668b00]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov dword [rsp + 0x30], 0x130
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0xffffffffffffffff
jne 0x1400e2898
xor eax, eax
jmp 0x1400e2917
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32First
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x188]
call fcn.1400e23c0
test eax, eax
jne 0x1400e28ce
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400e2917
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x1400e290a
lea rdx, [rsp + 0x5c]
mov rcx, qword [rsp + 0x188]
call fcn.1400e23c0
test eax, eax
jne 0x1400e2908
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400e2917
jmp 0x1400e28ce
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14019e430
add rsp, 0x178
ret
Function at 0x1400edb00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400edb39
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400edc91
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0
jle 0x1400edc39
cmp qword [rsp + 0x28], 0
jle 0x1400edc39
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x70], rax
jge 0x1400edb81
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x1400edbec
mov qword [rsp + 0x30], 0
jmp 0x1400edbb7
mov rax, qword [rsp + 0x30]
inc rax
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x30], rax
je 0x1400edbea
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
movzx ecx, byte [rcx]
mov byte [rax], cl
jmp 0x1400edbaa
jmp 0x1400edc00
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x70], 0
jle 0x1400edc81
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400edc81
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x1400fa2f0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x140668b00]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x30], 0x238
xor edx, edx
mov ecx, 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32FirstW
cmp eax, 1
jne 0x1400fa379
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_Process32NextW
cmp eax, 1
jne 0x1400fa379
mov rdx, qword [rsp + 0x290]
lea rcx, [rsp + 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1400fa377
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x38]
jmp 0x1400fa386
jmp 0x1400fa33b
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14019e430
add rsp, 0x288
ret
Function at 0x140118960
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x140668b00]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
lea rdx, [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x14011899f
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [rsp + 0x24], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x24]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x28], eax
jne 0x1401189cf
mov dword [rsp + 0x20], 1
jmp 0x1401189d7
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14019e430
add rsp, 0x48
ret
Function at 0x140134140
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x208
mov rax, qword [0x140668b00]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
lea rax, [rsp + 0x1e0]
mov rdi, rax
xor eax, eax
mov ecx, Ordinal_27
rep stosb byte [rdi], al
lea rax, [rsp + 0x21]
mov qword [rsp + 0x50], rax
lea rdx, str.Cheat_Engine_7.5
lea rcx, [rsp + 0xb0]
call fcn.1400c8ab0
nop
lea rdx, [0x1401b15bc]
lea rcx, [rsp + 0xd0]
call fcn.1400c8ab0
nop
lea rdx, [0x1401b15c8]
lea rcx, [rsp + 0xf0]
call fcn.1400c8ab0
nop
lea rdx, str.x64dbg
lea rcx, [rsp + 0x110]
call fcn.1400c8ab0
nop
lea rdx, str.FileGrab
lea rcx, [rsp + 0x130]
call fcn.1400c8ab0
nop
lea rdx, str.Nigger
lea rcx, [rsp + 0x150]
call fcn.1400c8ab0
nop
lea rdx, str.Beammer
lea rcx, [rsp + 0x170]
call fcn.1400c8ab0
nop
lea rdx, str.Process_Hacker
lea rcx, [rsp + 0x190]
call fcn.1400c8ab0
nop
lea rdx, str.dexzunpacker
lea rcx, [rsp + 0x1b0]
call fcn.1400c8ab0
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x90]
lea rcx, [rsp + 0x78]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0xa0]
lea rcx, [rsp + 0x90]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x1e0]
call fcn.1400f3ed0
nop
lea r9, [fcn.1400c8fa0]
mov r8d, 9
mov edx, reloc.WLDAP32.dll_Ordinal_32
lea rcx, [rsp + 0xb0]
call fcn.14019e4c0
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 8]
mov qword [rsp + 0x58], rax
jmp 0x1401342fd
mov rax, qword [rsp + 0x28]
add rax, 0x20
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x28], rax
je 0x1401343c1
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax + 0x18], 7
jbe 0x140134341
mov dword [rsp + 0x24], 1
jmp 0x140134349
mov dword [rsp + 0x24], 0
movzx eax, byte [rsp + 0x24]
mov byte [rsp + 0x20], al
movzx eax, byte [rsp + 0x20]
test eax, eax
je 0x140134372
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.1401189f0
movzx eax, al
test eax, eax
je 0x1401343bc
mov rcx, qword [rsp + 0x48]
call fcn.140135e90
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x88], rax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
jmp 0x1401342ef
lea rcx, [rsp + 0x1e0]
call fcn.1401349a0
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.14019e430
add rsp, 0x208
pop rdi
pop rsi
ret
Function at 0x1401361d0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140136420
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1401362ea
mov rax, qword [0x140668a40]
cmp qword [rsp + 0x20], rax
jb 0x140136234
mov rax, qword [0x140668a48]
cmp qword [rsp + 0x20], rax
ja 0x140136234
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1401361f6
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140136265
jmp 0x1401362ea
cmp dword [rsp + 0x50], 0x10000
jne 0x1401362cd
cmp qword [rsp + 0x48], 0x10000
jb 0x1401362cd
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401362ab
mov rax, qword [rsp + 0x28]
jmp 0x1401362ec
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1401362bb
xor eax, eax
jmp 0x1401362ec
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1401362e5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140136420
mov qword [rsp + 0x20], rax
jmp 0x1401361f6
xor eax, eax
add rsp, 0x68
ret

Function at 0x140136300
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.140136460
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140136416
mov rax, qword [0x140668a40]
cmp qword [rsp + 0x20], rax
jb 0x14013635b
mov rax, qword [0x140668a48]
cmp qword [rsp + 0x20], rax
ja 0x14013635b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x14013631d
mov r8d, Ordinal_50
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_50
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x14013638c
jmp 0x140136416
cmp dword [rsp + 0x50], 0x10000
jne 0x1401363f4
cmp qword [rsp + 0x48], 0x10000
jb 0x1401363f4
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1401363d2
mov rax, qword [rsp + 0x28]
jmp 0x140136418
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1401363e2
xor eax, eax
jmp 0x140136418
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140136411
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140136460
mov qword [rsp + 0x20], rax
jmp 0x14013631d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1401364b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140136a40
mov qword [rsp + 0x28], 0
cmp qword [0x140670318], 0
jne 0x1401364f8
cmp qword [0x140670310], 0
je 0x1401364f8
mov rax, qword [0x140670310]
mov qword [0x140670318], rax
cmp qword [0x140670318], 0
je 0x14013659e
mov rax, qword [0x140670318]
cmp qword [rax + 0x10], 0
je 0x14013659e
mov rax, qword [0x140670318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14013659e
mov rax, qword [0x140670318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14013659e
mov rax, qword [0x140670318]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140136564
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x14013656b
xor eax, eax
jmp 0x140136715
mov rax, qword [0x140670318]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x140136715
mov rax, qword [0x140670310]
mov qword [0x140670318], rax
jmp 0x1401365c0
mov rax, qword [0x140670318]
mov rax, qword [rax + 8]
mov qword [0x140670318], rax
cmp qword [0x140670318], 0
je 0x14013660d
cmp qword [0x140670318], 0
je 0x14013660b
mov rax, qword [0x140670318]
cmp qword [rax + 0x10], 0
je 0x14013660b
mov rax, qword [0x140670318]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x14013660b
mov rax, qword [0x140670318]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x14013660b
jmp 0x14013653c
jmp 0x1401365ae
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140136720
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140136713
mov rax, qword [rsp + 0x48]
mov qword [0x140670318], rax
mov rax, qword [0x140670318]
mov dword [rax], 0x52727464
mov rax, qword [0x140670318]
mov qword [rax + 0x10], 0
mov rax, qword [0x140670318]
mov rcx, qword [0x140670310]
mov qword [rax + 8], rcx
mov rax, qword [0x140670318]
mov qword [0x140670310], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x140670318]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1401366c4
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1401366fe
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x1401366ba
mov rax, qword [0x140670318]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x14013653c
xor eax, eax
add rsp, 0x58
ret
Function at 0x140137430
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, Ordinal_50
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140137477
xor al, al
jmp 0x140137519
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x1401374a1
xor al, al
jmp 0x140137519
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x140137511
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x140137511
mov al, 1
jmp 0x140137519
jmp 0x140137517
xor al, al
add rsp, 0x78
ret

Function at 0x140137820
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140670310]
mov qword [rsp + 0x28], rax
jmp 0x140137840
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14013786f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x14013786d
call sub.KERNEL32.dll_GetLastError
jmp 0x140137871
jmp 0x140137832
xor eax, eax
add rsp, 0x38
ret
Function at 0x140137f30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140670328], eax
je 0x140137f5d
mov eax, 0x10dd
jmp 0x140138176
cmp dword [0x14067032c], 0
je 0x140137f71
mov eax, dword [0x14067032c]
jmp 0x140138176
cmp qword [rsp + 0x78], 0
jne 0x140137f83
mov eax, 0x57
jmp 0x140138176
cmp qword [rsp + 0x70], 0
jne 0x140137f95
mov eax, 6
jmp 0x140138176
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x140137fc7
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x14067032c], eax
mov rax, qword [rsp + 0x70]
mov qword [0x140670330], rax
mov eax, dword [rsp + 0x20]
jmp 0x140138176
mov ecx, Ordinal_50
call fcn.14019e090
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140138039
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x14067032c], eax
cmp qword [rsp + 0x30], 0
je 0x140138024
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x50]
call fcn.14019e0d4
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x140670330], rax
mov eax, dword [rsp + 0x20]
jmp 0x140138176
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.140137f00
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.140137f00
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x140138096
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x1401380b3
mov dword [rsp + 0x20], 9
cmp dword [0x140670320], 0
je 0x1401380ae
jmp 0x140137ffa
jmp 0x140137ff0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1401380e0
mov dword [rsp + 0x20], 9
cmp dword [0x140670320], 0
je 0x1401380db
jmp 0x140137ffa
jmp 0x140137ff0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x140138117
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140137ff0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x140670340]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x140670340], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x140138180
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x140670328], eax
je 0x14013819b
mov eax, 0x10dd
jmp 0x1401382c0
mov rax, qword [0x140670340]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140138245
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140138210
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140138210
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140136b80
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, Ordinal_50
mov rcx, qword [rsp + 0x38]
call fcn.14019e0d4
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1401381a7
mov qword [0x140670340], 0
call fcn.1401375e0
mov rax, qword [0x140670338]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401382a9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x48]
call fcn.14019e0d4
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x140138261
mov qword [0x140670338], 0
mov dword [0x140670328], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1401387f0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x14067032c], 0
je 0x14013880d
mov eax, dword [0x14067032c]
jmp 0x1401388d3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140138820
xor eax, eax
jmp 0x1401388d3
mov ecx, reloc.WS2_32.dll_recv
call fcn.14019e090
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14013888e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140138873
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rsp + 0x38]
call fcn.14019e0d4
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x14067032c], eax
mov qword [0x140670330], 0
mov eax, dword [rsp + 0x20]
jmp 0x1401388d3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1401388a8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140138849
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x140670338]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x140670338], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x1401388e0
Capabilities:
Terminate process

Disassembly:
push rdi
sub rsp, 0x30
mov r9d, 4
mov r8d, 0x1000
mov edx, 0x4d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140138997
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x28]
xor eax, eax
mov ecx, 0x4d0
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x20]
mov dword [rax + 0x30], 0x100010
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdx, qword [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x140138984
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x48], 0
jne 0x14013897c
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x50], 0
jne 0x14013897c
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x58], 0
jne 0x14013897c
mov rax, qword [rsp + 0x20]
cmp qword [rax + 0x60], 0
je 0x140138984
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add rsp, 0x30
pop rdi
ret