joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022760
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.1400a5340
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140022809
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x1400227ce
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400227c0
test rax, rax
je 0x1400b625e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x1400227a8
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140022838
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140022850
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x1400228f1
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x1400228b6
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x1400228a8
test rax, rax
je 0x1400b6264
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140022890
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400430c0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140022760
test rax, rax
je 0x1400431f0
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14004313e
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140043130
test rax, rax
je 0x1400b62fe
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x140043120
mov rcx, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call qword [sym.imp.python312.dll_PyThreadState_Get]
mov rcx, qword [0x1400dabe0]
mov rsi, rax
mov rax, qword [0x1400c91e0]
mov rbx, qword [rax + 0x1b8]
test rcx, rcx
je 0x140043265
mov rdx, rbx
call fcn.140010e60
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140037350
mov rdx, qword [rbx]
test edx, edx
js 0x1400431d7
sub rdx, 1
mov qword [rbx], rdx
je 0x14004324d
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400da4a8]
lea rsi, [0x1400da4a8]
test bl, bl
je 0x140043210
mov rax, qword [0x1400da4b0]
lea rsi, [0x1400da4b0]
test rax, rax
jne 0x1400431d7
cmp byte [0x1400da6c2], 0
jne 0x140043226
movzx ecx, bl
call fcn.140012ab0
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400da4c0]
call qword [sym.imp.python312.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14004328f
mov edx, dword [rax]
add edx, 1
je 0x1400431d7
mov dword [rax], edx
jmp 0x1400431d7
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [sym.imp.python312.dll__Py_Dealloc]
mov rax, qword [rsp + 0x28]
jmp 0x1400431d7
mov rcx, qword [0x1400dab58]
mov rdi, qword [rax + 0x1a8]
test rcx, rcx
je 0x14004329a
mov rdx, rdi
call fcn.140010e60
mov qword [0x1400dabe0], rax
mov rcx, rax
jmp 0x1400431ae
call qword [sym.imp.python312.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400c0cc3]
call qword [sym.imp.python312.dll_PyImport_ImportModule]
mov qword [0x1400dab58], rax
mov rcx, rax
test rax, rax
je 0x1400b62fe
jmp 0x140043278
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
Function at 0x1400a1a00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400da489], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400a1a88
lea rdx, [0x1400c5202]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400a1af0
mov rbx, qword [0x1400da340]
jmp 0x1400a1a45
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400a1a40
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14008eb40
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400da340], rax
mov ebx, dword [rax]
mov qword [0x1400da340], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400da340], rdx
call fcn.1400a0b30
cmp eax, ebx
jne 0x1400a1b58
mov byte [0x1400da489], 1
jmp 0x1400a1a1c
cmp byte [0x1400da488], 0
jne 0x1400a1a33
mov rbx, qword [sym.imp.python312.dll_PyDict_New]
call rbx
mov qword [0x1400dade8], rax
call rbx
mov qword [0x1400dade0], rax
call rbx
mov qword [0x1400dadd8], rax
call rbx
mov qword [0x1400dadd0], rax
call rbx
mov qword [0x1400dadc8], rax
call rbx
mov qword [0x1400dadc0], rax
call rbx
mov qword [0x1400dadb8], rax
call rbx
mov byte [0x1400da488], 1
mov qword [0x1400dadb0], rax
jmp 0x1400a1a33
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x1400a4020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400b57b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400b57b0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400a4cf2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400db2a8]
test eax, eax
je 0x1400a4d8a
lea rax, [0x1400db280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400db2b0]
mov qword [rbp - 8], rax
jmp 0x1400a4d6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400a4d62
cmp qword [rbp - 0x10], 0
je 0x1400a4d62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400a4d28
lea rax, [0x1400db280]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a4d8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a4e90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400a4eb8
mov eax, 0
jmp 0x1400a4f06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400a4ee1
mov eax, 0
jmp 0x1400a4f06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400a4f01
mov eax, 0
jmp 0x1400a4f06
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400a4f0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400a4f8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a4f81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400a4f81
mov rax, qword [rbp - 8]
jmp 0x1400a4f9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400a4f54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400014c0
Capabilities:
Query environment variable
Terminate process
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x490
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, rcx
mov qword [rsp + 0x58], rcx
xor ebp, ebp
mov qword [rcx + 8], rbp
lea rax, vtable.asio3_controller.0
mov qword [rcx], rax
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, str._temp_AsusCertService.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x103
ja 0x140001688
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140001665
mov dword [rsp + 0x60], ebp
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x60]
mov r8d, 0x88418
lea rdx, [0x1400072e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001665
cmp dword [rsp + 0x60], 0x88418
jne 0x140001665
lea rdx, [rsp + 0x70]
call fcn.140001130
mov rsi, rax
test rax, rax
je 0x1400016ab
mov ebx, ebp
nop word [rax + rax]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1f01ff
lea rcx, [0x1400044e0]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001618
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 5
jl 0x1400015d0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp rdi, 0xffffffffffffffff
je 0x1400016ce
mov qword [r14 + 8], rdi
mov rax, r14
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140002e10
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
lea rdx, str.Failed_to_write_AsusCertService.exe_to_disk_
lea rcx, [rsp + 0x40]
call fcn.140001000
lea rdx, [0x140005588]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_resolve_AsusCertService.exe_path_
lea rcx, [rsp + 0x40]
call fcn.140001000
lea rdx, [0x140005588]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_unlock_AsIO3.sys_
lea rcx, [rsp + 0x40]
call fcn.140001000
lea rdx, [0x140005588]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_open_handle_to_Asusgio3_
lea rcx, [rsp + 0x40]
call fcn.140001000
lea rdx, [0x140005588]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140001fe0
Capabilities:
Execute command

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor edi, edi
lea ecx, [rdi + 0x20]
call fcn.140002e64
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov rcx, rax
call fcn.140001c50
mov rbx, rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
lea r9d, [rdi + 8]
lea r8, [rsp + 0x28]
mov rdx, qword [rbx + 8]
call qword [rax + 0x18]
test al, al
je 0x140002083
lea rdx, str.Successfully_disabled_revocation_check__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002150
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x28], rax
mov rcx, qword [rbx + 0x18]
mov rax, qword [rcx]
lea r9d, [rdi + 8]
lea r8, [rsp + 0x28]
mov rdx, qword [rbx + 8]
call qword [rax + 0x18]
nop
cmp qword [rbx + 0x18], 0
je 0x1400020b4
mov rdi, qword [rbx + 0x18]
lea rax, vtable.i_memory_controller.0
mov qword [rdi], rax
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400020a7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rdi
call fcn.140002e30
mov edx, 0x20
mov rcx, rbx
call fcn.140002e30
nop
xor eax, eax
jmp 0x1400020cb
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140002e10
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140002ba0
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r14, rcx
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov dword [rsp + 0x38], r15d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea ecx, [rdx + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x140002cbd
lea r12, vtable.std::_Ref_count_struct__RTL_PROCESS_MODULES_.0
lea esi, [r15 - 1]
cmp eax, 0xc0000004
je 0x140002c16
cmp eax, 0xc0000023
jne 0x140002cf7
mov ecx, dword [rsp + 0x38]
call fcn.140002ea0
mov rbp, rax
mov qword [rsp + 0x28], rax
mov ecx, 0x18
call fcn.140002e64
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], r12
mov qword [rax + 0x10], rbp
mov edx, 0x130
xor ecx, ecx
call fcn.140002e30
mov qword [rsp + 0x40], rbp
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rdi
test rbx, rbx
je 0x140002c9d
mov eax, esi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140002c9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140002c9d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
lea r9, [rsp + 0x38]
mov r8d, dword [rsp + 0x38]
mov rdx, rbp
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x140002c04
mov rax, qword [rsp + 0x40]
mov qword [r14], rax
mov rax, qword [rsp + 0x48]
mov qword [r14 + 8], rax
mov rax, r14
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140002e10
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14], r15
mov qword [r14 + 8], r15
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140002cce
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140002cce
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x140002cce
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 8]
jmp 0x140002cce

Function at 0x1400037a8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400037f2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400037f2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400037f2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400037f2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400037f2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400037f4
xor al, al
add rsp, 0x28
ret
Function at 0x140002a24
Capabilities:
Connect socket
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rcx, qword [rsp + 0x200]
call fcn.14001e518
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x200]
mov qword [rcx + 0x220], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1401db520
mov eax, 2
mov word [rsp + 0x38], ax
lea r8, [rsp + 0x3c]
mov rdx, qword [str.127.0.0.1]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov cx, 0x2328
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x220]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140002aec
xor r8d, r8d
xor edx, edx
lea rcx, str.connect
call fcn.14001e9f4
xor r8d, r8d
xor edx, edx
lea rcx, [0x14023fb88]
call fcn.14001e9f4
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
lea rcx, [0x140002900]
call fcn.140021e68
mov eax, 1
add rsp, 0x1f8
ret

Function at 0x1400062bc
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x1f8
mov rcx, qword [rsp + 0x200]
call fcn.14001e518
lea rdx, [rsp + 0x50]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x200]
mov qword [rcx + 0x4e0], rax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.1401db520
mov eax, 2
mov word [rsp + 0x38], ax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
mov cx, 0x2328
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rsp + 0x30], eax
mov edx, 0x7fffffff
mov rax, qword [rsp + 0x200]
mov rcx, qword [rax + 0x4e0]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x200]
lea rcx, [0x1400060fc]
call fcn.140021e68
mov eax, 1
add rsp, 0x1f8
ret
Function at 0x14000978c
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub rsp, 0x308
mov ecx, 0x208
call fcn.140022cb8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400097db
xor eax, eax
jmp 0x14000989b
mov dword [rsp + 0x30], 0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x88]
call fcn.14000b7a0
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
lea r8, [0x140240634]
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x68]
call fcn.14000cea8
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14000b6fc
lea rdx, [rsp + 0xb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
call fcn.14000b718
nop
lea rcx, [rsp + 0x88]
call fcn.14000b718
cmp qword [rsp + 0x38], 0xffffffffffffffff
je 0x14000988b
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x14000985f
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [rsp + 0x30], 0xa
jg 0x140009896
xor eax, eax
jmp 0x14000989b
mov eax, 1
add rsp, 0x308
ret