joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14152a83b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14151e7c0]
jne 0x14152839e
rol rcx, 0x10
test cx, 0xffff
jne 0x14152839a
repz ret
ror rcx, 0x10
jmp 0x14152a794
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1415225e0]
call qword [sym.imp.kernel32.dll_RtlCaptureContext]
mov rax, qword [0x1415226d8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.kernel32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14152a819
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1415225e0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.kernel32.dll_RtlVirtualUnwind
jmp 0x14152a83b
mov rax, qword [rsp + 0x88]
mov qword [0x1415226d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x141522678], rax
mov rax, qword [0x1415226d8]
mov qword [0x141522550], rax
mov rax, qword [rsp + 0x90]
mov qword [0x141522660], rax
mov dword [0x141522540], 0xc0000409
mov dword [0x141522544], 1
mov rax, qword [0x14151e7c0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14151e7c8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1415225d8], eax
mov ecx, 1
call fcn.1415283a4
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea rcx, str.__RA
call qword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1415225d8], 0
jne 0x14152a8c2
mov ecx, 1
call fcn.1415283a4
call qword [sym.imp.kernel32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.kernel32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14152a95c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x14151e7c0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.141525a5c
xor ebx, ebx
cmp qword [0x141522ab8], rbx
mov rdi, rax
jne 0x14152aa6f
lea rcx, str.USER32.DLL
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14152ab46
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14152ab46
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x141522ab8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x141522ac0], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x141522ac8], rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov r11, rax
mov qword [0x141522ad8], rax
test rax, rax
je 0x14152aa66
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.kernel32.dll_EncodePointer]
mov qword [0x141522ad0], rax
jmp 0x14152aa76
mov rax, qword [0x141522ad0]
jmp 0x14152aa7d
mov rax, qword [0x141522ad0]
mov r11, qword [0x141522ad8]
cmp rax, rdi
je 0x14152aae4
cmp r11, rdi
je 0x14152aae4
mov rcx, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov rcx, qword [0x141522ad8]
mov rsi, rax
call qword [sym.imp.kernel32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x14152aae4
test rax, rax
je 0x14152aae4
call rsi
test rax, rax
je 0x14152aade
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14152aade
test byte [rsp + 0x40], 1
jne 0x14152aae4
bts ebp, 0x15
jmp 0x14152ab24
mov rcx, qword [0x141522ac0]
cmp rcx, rdi
je 0x14152ab24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x14152ab24
call rax
mov rbx, rax
test rax, rax
je 0x14152ab24
mov rcx, qword [0x141522ac8]
cmp rcx, rdi
je 0x14152ab24
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x14152ab24
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x141522ab8]
call qword [sym.imp.kernel32.dll_DecodePointer]
test rax, rax
je 0x14152ab46
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14152ab48
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.141528384
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001591
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x1400015cd
lea rcx, str.WSAStartup_failed_
call sub.msvcrt.dll_perror
mov eax, 1
jmp 0x1400015d2
mov eax, 1
add rsp, 0x1c0
pop rbp
ret

Function at 0x1400015db
Capabilities:
Resolve dns

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rcx, qword [rbp + 0x10]
mov rax, qword [sym.imp.WS2_32.dll_gethostbyname]
call rax
add rsp, 0x20
pop rbp
ret

Function at 0x1400015fa
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
lea rax, [rbp - 0x30]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov word [rbp - 0x30], 2
mov ecx, 0
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
movzx eax, ax
mov dword [rbp - 0x2c], eax
mov ecx, 0
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x2e], ax
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jns 0x140001684
lea rcx, str.Create_Socket_Failed____n
call fcn.140001540
mov eax, 0xffffffff
jmp 0x140001769
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rbp - 0x30]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
test eax, eax
je 0x1400016b9
lea rcx, str.Client_Bind_Port_Failed____n
call fcn.140001540
mov eax, 0xffffffff
jmp 0x140001769
lea rax, [rbp - 0x20]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov word [rbp - 0x20], 2
mov rcx, qword [rbp + 0x10]
call fcn.1400015db
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x1400016f1
mov eax, 0xffffffff
jmp 0x140001769
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov eax, dword [rax]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp - 0x1c]
test eax, eax
jne 0x14000171b
lea rcx, str.Server_IP_Address_Error__n
call fcn.140001540
mov eax, 0xffffffff
jmp 0x140001769
mov eax, dword [rbp + 0x18]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rbp - 0x20]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
test eax, eax
jns 0x140001766
mov rdx, qword [rbp + 0x10]
lea rcx, str.Can_Not_Connect_To__s__n
call fcn.140001540
mov eax, 0xffffffff
jmp 0x140001769
mov eax, dword [rbp - 4]
add rsp, 0x50
pop rbp
ret
Function at 0x14000176f
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x1400017b5
mov edx, dword [rbp + 0x10]
lea rcx, str.Error_:_Could_not_create_socket___port___d__._n
call fcn.140001540
mov eax, 0xffffffff
jmp 0x140001823
mov word [rbp - 0x20], 2
mov dword [rbp - 0x1c], 0
mov eax, dword [rbp + 0x10]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rbp - 0x20]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_bind]
call rax
test eax, eax
jns 0x14000180c
mov edx, dword [rbp + 0x10]
lea rcx, str.Error_:_bind_port__d_._n
call fcn.140001540
mov eax, 0xffffffff
jmp 0x140001823
mov eax, dword [rbp - 4]
cdqe
mov edx, dword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_listen]
call rax
mov eax, dword [rbp - 4]
add rsp, 0x40
pop rbp
ret

Function at 0x140001829
Capabilities:
Get socket status

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1e0], ecx
mov dword [rbp + 0x1e8], edx
mov dword [rbp + 0x1f0], r8d
mov dword [rbp + 0x1c8], 1
mov dword [rbp - 0x40], 0
mov dword [rbp + 0x1cc], 0
jmp 0x140001888
mov eax, dword [rbp + 0x1cc]
mov rdx, qword [rbp + rax*8 - 0x38]
mov eax, dword [rbp + 0x1e0]
cdqe
cmp rdx, rax
je 0x140001895
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1cc], eax
jb 0x140001869
jmp 0x140001896
nop
mov eax, dword [rbp - 0x40]
cmp dword [rbp + 0x1cc], eax
jne 0x1400018c6
mov eax, dword [rbp - 0x40]
cmp eax, 0x3f
ja 0x1400018c6
mov eax, dword [rbp + 0x1e0]
movsxd rdx, eax
mov eax, dword [rbp + 0x1cc]
mov qword [rbp + rax*8 - 0x38], rdx
mov eax, dword [rbp - 0x40]
add eax, 1
mov dword [rbp - 0x40], eax
mov eax, dword [rbp + 0x1e8]
mov dword [rbp - 0x48], eax
mov eax, dword [rbp + 0x1f0]
mov dword [rbp - 0x44], eax
mov eax, dword [rbp + 0x1e0]
lea ecx, [rax + 1]
lea rax, [rbp - 0x40]
lea rdx, [rbp - 0x48]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_select]
call rax
mov dword [rbp + 0x1c8], eax
cmp dword [rbp + 0x1c8], 0
jle 0x14000193b
mov eax, dword [rbp + 0x1e0]
cdqe
lea rdx, [rbp - 0x40]
mov rcx, rax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x140001934
mov eax, 2
jmp 0x140001950
mov eax, 1
jmp 0x140001950
cmp dword [rbp + 0x1c8], 0
jne 0x14000194b
mov eax, 0
jmp 0x140001950
mov eax, 0xffffffff
add rsp, 0x250
pop rbp
ret

Function at 0x140001a8a
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov eax, dword [rbp + 0x10]
cdqe
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
add rsp, 0x20
pop rbp
ret
Function at 0x140001ac4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov eax, dword [rbp + 0x10]
cdqe
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
add rsp, 0x20
pop rbp
ret

Function at 0x140002bfd
Capabilities:
Create thread

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov dword [rbp + 0x20], ecx
mov dword [rbp + 0x28], edx
mov dword [rbp + 0x30], r8d
mov eax, dword [rbp + 0x30]
mov ecx, eax
call fcn.140001c5a
mov ebx, dword [rbp + 0x28]
call fcn.140001c71
mov edx, eax
mov eax, dword [rbp + 0x20]
mov r9d, ebx
mov r8d, edx
mov edx, eax
lea rcx, str.rcsocks_0.0.0.0:_d______4d_usec_____0.0.0.0:_d_n
call fcn.140002a90
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
lea r8, [0x140002ae1]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
lea rax, [rbp + 0x28]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140002bc5]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov ecx, 0xf4240
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140002cba
Function at 0x140002e6c
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov dword [rbp + 0x28], r9d
mov eax, dword [rbp + 0x30]
mov ecx, eax
call fcn.140001c5a
mov r8d, 0x12c
mov rdx, qword [rbp + 0x10]
lea rcx, [0x14001d060]
call sub.msvcrt.dll_strncpy
mov rax, qword [rbp + 0x20]
mov r8d, 0x12c
mov rdx, rax
lea rcx, [0x14001d1a0]
call sub.msvcrt.dll_strncpy
mov eax, dword [rbp + 0x18]
mov dword [0x14001d2cc], eax
mov eax, dword [rbp + 0x28]
mov dword [0x14001d2d0], eax
mov eax, dword [0x14001d2d0]
mov edx, dword [0x14001d2cc]
mov ecx, dword [rbp + 0x30]
mov dword [rsp + 0x28], eax
lea rax, [0x14001d1a0]
mov qword [rsp + 0x20], rax
mov r9d, ecx
mov r8d, edx
lea rdx, [0x14001d060]
lea rcx, str.lcx_slave__s:_d______4d_usec______s:_d_n
call fcn.140002a90
mov eax, dword [0x14001d2cc]
mov edx, eax
lea rcx, [0x14001d060]
call fcn.140001ec5
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x140002f2d
mov eax, 0xffffffff
jmp 0x140002ff1
lea rdx, [rbp - 0xe]
mov eax, dword [rbp - 4]
mov r8d, 6
mov ecx, eax
call fcn.140001ac4
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 6
jne 0x140002fb4
movzx eax, byte [rbp - 0xe]
cmp al, 1
jne 0x140002fb4
movzx eax, byte [rbp - 0xd]
cmp al, 3
jne 0x140002fb4
lea rax, [rbp - 0xe]
add rax, 2
mov edx, 4
mov rcx, rax
call fcn.140001bbe
mov dword [rbp - 0x14], eax
lea rax, [rbp - 0x14]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x140002db2]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140002fde
mov r8d, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x20]
mov eax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x30]
mov dword [rsp + 0x20], edx
mov r9d, r8d
mov r8, rcx
mov edx, eax
mov rcx, qword [rbp + 0x10]
call fcn.140002e6c
mov eax, 1
jmp 0x140002ff1
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140002f2d
add rsp, 0x50
pop rbp
ret

Function at 0x14000398b
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov ecx, 4
call sub.msvcrt.dll_malloc
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, dword [rbp + 0x10]
mov dword [rax], edx
mov eax, dword [rbp + 0x10]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 2
mov rcx, rax
lea rdx, [0x14001d2e4]
mov eax, dword [rbp + 0x18]
mov dword [rcx + rdx], eax
mov eax, dword [rbp + 0x10]
movsxd rdx, eax
mov rax, rdx
shl rax, 2
add rax, rdx
shl rax, 2
mov rdx, rax
lea rax, [0x14001d2ec]
mov dword [rdx + rax], 2
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400034bf]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov eax, 1
add rsp, 0x40
pop rbp
ret
Function at 0x140004135
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rbp + 0x10]
lea r8, [0x14000406c]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x140004269
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov dword [rbp + 0x10], ecx
mov dword [rbp + 0x18], edx
mov eax, dword [rbp + 0x18]
mov ecx, eax
call fcn.140001c5a
mov edx, 0x12c
mov ecx, dword [rbp + 0x10]
call fcn.14000176f
mov dword [rbp - 4], eax
mov dword [rbp - 0xc], 0x10
call fcn.140001c71
mov r8d, eax
mov edx, dword [rbp + 0x10]
lea rcx, str.ssocksd_0.0.0.0:_d______4d_usec_____socks_server_n
call fcn.140004180
jmp 0x1400042fe
mov eax, dword [rbp - 8]
mov dword [rbp - 0x10], eax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400041d1]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov dword [rbp - 8], 0xffffffff
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [rbp - 4]
cdqe
lea rcx, [rbp - 0xc]
lea rdx, [rbp - 0x30]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_accept]
call rax
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jns 0x1400042b1
cmp dword [rbp - 8], 0
jns 0x14000433c
lea rcx, str.accept_failed
call sub.msvcrt.dll_puts
mov eax, 0xffffffff
jmp 0x14000434d
lea rcx, str.ssocksd_close_______n
call fcn.140004180
mov eax, 0
add rsp, 0x60
pop rbp
ret

Function at 0x1400046e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015240
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015240
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140004750
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140022194]
mov r12, rcx
test ebx, ebx
jle 0x140004880
mov rax, qword [0x140022198]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000479c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004823
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140004780
mov rcx, r12
call fcn.1400050f0
mov rsi, rax
test rax, rax
je 0x1400048a2
mov rax, qword [0x140022198]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140005220
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140022198]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004887
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000481c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140004830
add dword [0x140022194], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140022198]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000481c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400046e0
nop dword [rax]
xor ebx, ebx
jmp 0x1400047a7
mov rax, qword [0x140022198]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400046e0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.1400046e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140004d60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140022200]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400221e0]
test rbx, rbx
je 0x140004db4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x140004dab
test r12, r12
je 0x140004dab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140004d90
lea rcx, [0x140022200]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400050f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140018e60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140005110
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140005118
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140005110
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140005165
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000515c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140005110
add rax, 0x28
cmp rax, r9
jne 0x140005148
xor eax, eax
ret

Function at 0x140005170
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140018e60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140005190
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140005198
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140005190
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140005220
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140018e60]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140005240
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140005248
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140006a10
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x140018ef0]
mov rax, qword [rsi]
test rax, rax
je 0x140006aa0
cmp qword [rax + 0x30], 0
jne 0x140006ac0
lea rbx, [0x140016498]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x140006a70
cmp qword [rax + 0x30], 0
jne 0x140006a90
lea rdx, [0x140016498]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x1400153e0
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.14000b910
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140006a52
test rax, rax
jne 0x140006a90
call fcn.14000b910
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x140006a60
call fcn.14000b910
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x140006a30
test rax, rax
jne 0x140006ac0
call fcn.14000b910
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x140006a3b
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x140006ad0
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x140006be2
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x140006bba
add rax, 1
cmp rax, 0x6b
je 0x140006bd7
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x140006bb0
cmp edx, 0x6a
je 0x140006bd7
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x140006bcb