joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov edx, 1
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx + 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140001059
mov byte [rax], 0xfc
xor r9d, r9d
xor eax, eax
mov r8, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140001064
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, 1
add rsp, 0x30
pop rbx
ret
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x1400017fc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001846
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001846
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001846
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001846
cmp dword [rcx + 0x84], 0xe
jbe 0x140001846
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001848
xor al, al
add rsp, 0x28
ret
Function at 0x140001050
Capabilities:
Enumerate threads

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14001c0a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000108f
lea eax, [rdi + 2]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ede0
add rsp, 0x50
pop rdi
ret
lea rdx, [rsp + 0x20]
mov rcx, rax
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, eax
test eax, eax
je 0x1400010c4
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
mov ebx, eax
test eax, eax
jne 0x1400010b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14000ede0
add rsp, 0x50
pop rdi
ret

Function at 0x1400013e0
Capabilities:
Link function at runtime on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x14001c0a8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
mov qword [r11 - 0x40], rdx
test rcx, rcx
jne 0x1400014b9
mov rcx, qword [rdx + 0x18]
cmp rcx, 0x10
jb 0x140001425
mov rdx, qword [rdx]
mov rax, qword [rbx + 0x10]
lea r8, [rdx + rax]
cmp rcx, 0x10
jb 0x140001438
mov rdx, qword [rbx]
jmp 0x14000143b
mov rdx, rbx
mov qword [rsp + 0x48], 7
xor edi, edi
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
lea rcx, [rsp + 0x30]
call fcn.14000eab0
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
cmp qword [rsp + 0x48], 8
jb 0x140001486
mov rcx, qword [rsp + 0x30]
call fcn.14000efa0
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rdi
mov word [rsp + 0x30], di
cmp qword [rbx + 0x18], 0x10
jb 0x1400014a8
mov rcx, qword [rbx]
call fcn.14000efa0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], rdi
mov byte [rbx], 0
jmp 0x1400014ec
cmp qword [rdx + 0x18], 0x10
jb 0x1400014c3
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
cmp qword [rbx + 0x18], 0x10
jb 0x1400014db
mov rcx, qword [rbx]
call fcn.14000efa0
mov qword [rbx + 0x18], 0xf
xor edi, edi
mov qword [rbx + 0x10], rdi
mov byte [rbx], dil
mov rax, rsi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14000ede0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000fb43
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14001c0a8]
jne 0x14000edfa
rol rcx, 0x10
test cx, 0xffff
jne 0x14000edf6
repz ret
ror rcx, 0x10
jmp 0x14000fa9c
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001d0e0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14001d1d8]
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 0x14000fb21
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, [0x14001d0e0]
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 0x14000fb43
mov rax, qword [rsp + 0x88]
mov qword [0x14001d1d8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001d178], rax
mov rax, qword [0x14001d1d8]
mov qword [0x14001d050], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001d160], rax
mov dword [0x14001d040], 0xc0000409
mov dword [0x14001d044], 1
mov rax, qword [0x14001c0a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14001c0b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001d0d8], eax
mov ecx, 1
call fcn.1400128e8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140017370]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001d0d8], 0
jne 0x14000fbca
mov ecx, 1
call fcn.1400128e8
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 0x1400118ac
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.14001171c
Function at 0x140013e64
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 [0x14001c0a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.140010ca8
xor ebx, ebx
cmp qword [0x14001e088], rbx
mov rdi, rax
jne 0x140013f77
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14001404e
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001404e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001e088], 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 [0x14001e090], 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 [0x14001e098], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x14001e0a8], rax
test rax, rax
je 0x140013f6e
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 [0x14001e0a0], rax
jmp 0x140013f7e
mov rax, qword [0x14001e0a0]
jmp 0x140013f85
mov rax, qword [0x14001e0a0]
mov r11, qword [0x14001e0a8]
cmp rax, rdi
je 0x140013fec
cmp r11, rdi
je 0x140013fec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x14001e0a8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x140013fec
test rax, rax
je 0x140013fec
call rsi
test rax, rax
je 0x140013fe6
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 0x140013fe6
test byte [rsp + 0x40], 1
jne 0x140013fec
bts ebp, 0x15
jmp 0x14001402c
mov rcx, qword [0x14001e090]
cmp rcx, rdi
je 0x14001402c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001402c
call rax
mov rbx, rax
test rax, rax
je 0x14001402c
mov rcx, qword [0x14001e098]
cmp rcx, rdi
je 0x14001402c
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001402c
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001e088]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14001404e
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x140014050
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14000ede0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x28
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x140002a01
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140004690]
syscall
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000f890]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000f8a0]
mov dword [rax], 1
mov rax, qword [0x14000f8b0]
mov dword [rax], 1
mov rax, qword [0x14000f7f0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000f880]
mov dword [0x14001200c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000f960]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000f940]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x14000f7d0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140001687
Capabilities:
Query environment variable

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov dword [0x140012038], 1
mov eax, dword [0x140012038]
mov dword [0x14001205c], eax
mov eax, dword [0x14001205c]
mov dword [0x140012058], eax
mov qword [0x140012040], 0
lea rax, str.POSIXLY_CORRECT
mov rcx, rax
call sym.getenv
mov qword [0x140012050], rax
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2d
jne 0x1400016f2
mov dword [0x140012048], 2
add qword [rbp + 0x10], 1
jmp 0x140001730
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
cmp al, 0x2b
jne 0x14000170e
mov dword [0x140012048], 0
add qword [rbp + 0x10], 1
jmp 0x140001730
mov rax, qword [0x140012050]
test rax, rax
je 0x140001726
mov dword [0x140012048], 0
jmp 0x140001730
mov dword [0x140012048], 1
mov rax, qword [rbp + 0x10]
add rsp, 0x20
pop rbp
ret
Function at 0x140002911
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Create process suspended

Disassembly:
push rbp
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0xe0]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp - 8], 0
mov dword [rbp - 0x90], 0x68
mov qword [rbp - 0x88], 0
mov qword [rbp - 0x78], 0
mov qword [rbp - 0x80], 0
mov dword [rbp - 0x64], 0
mov eax, dword [rbp - 0x64]
mov dword [rbp - 0x68], eax
mov eax, dword [rbp - 0x68]
mov dword [rbp - 0x6c], eax
mov eax, dword [rbp - 0x6c]
mov dword [rbp - 0x70], eax
mov word [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov word [rbp - 0x4e], 0
mov dword [rbp - 0x54], 0x101
mov rax, qword [rbp + 0x20]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x38], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rbx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rax, [rbp - 0x90]
lea rdx, [rax + 0x60]
mov rax, qword [rbp + 0x28]
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 2
mov r9, rdx
mov r8, rbx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_DuplicateHandle]
call rax
mov rax, qword [0x14000f9c0]
mov rax, qword [rax]
lea rdx, [rbp - 0x20]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp - 0x90]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
mov r9d, 0
mov r8d, 0
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x140002a68
mov rax, qword [rbp - 0x20]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
jmp 0x140002ac1
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sym.itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.Failed_to_execute_shell__error___s
mov rcx, rax
call sym.holler
mov rax, qword [rbp - 8]
add rsp, 0xe8
pop rbx
pop rbp
ret
Function at 0x140002acf
Capabilities:
Download and write a file
Read and send data from client to server
Read file on windows
Read pipe
Receive and write data from server to client
Receive data
Receive data on socket
Send data
Send data on socket
Write file on windows

Disassembly:
push rbp
sub rsp, 0x2e0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x270], rcx
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x248], rax
jmp 0x140002c04
mov byte [rbp + 0x257], 0
mov eax, dword [rbp - 0x34]
test eax, eax
je 0x140002b50
mov rax, qword [rbp + 0x248]
mov rcx, qword [rax]
lea rdx, [rbp - 0x34]
lea rax, [rbp + 0x180]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0xc8
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp + 0x25c], 0
mov dword [rbp + 0x258], 0
jmp 0x140002bcb
mov ecx, 0x32
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x140002c04
mov eax, dword [rbp + 0x25c]
movzx eax, byte [rbp + rax + 0x180]
cmp al, 0xa
jne 0x140002b94
cmp byte [rbp + 0x257], 0xd
je 0x140002b94
mov eax, dword [rbp + 0x258]
lea edx, [rax + 1]
mov dword [rbp + 0x258], edx
mov eax, eax
mov byte [rbp + rax - 0x30], 0xd
mov eax, dword [rbp + 0x258]
lea edx, [rax + 1]
mov dword [rbp + 0x258], edx
mov edx, dword [rbp + 0x25c]
movzx edx, byte [rbp + rdx + 0x180]
mov ecx, eax
mov byte [rbp + rcx - 0x30], dl
mov eax, eax
movzx eax, byte [rbp + rax - 0x30]
mov byte [rbp + 0x257], al
add dword [rbp + 0x25c], 1
mov eax, dword [rbp - 0x34]
cmp dword [rbp + 0x25c], eax
jb 0x140002b63
mov edx, dword [rbp + 0x258]
mov rax, qword [rbp + 0x248]
mov rcx, qword [rax + 0x18]
lea rax, [rbp - 0x30]
mov r9d, 0
mov r8d, edx
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
test eax, eax
jle 0x140002c4a
mov rax, qword [rbp + 0x248]
mov rcx, qword [rax]
lea rdx, [rbp - 0x34]
lea rax, [rbp + 0x180]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, rdx
mov r8d, 0xc8
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
call rax
test eax, eax
jne 0x140002af9
jmp 0x140002c4b
nop
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x6d
je 0x140002cb2
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov ecx, eax
mov r8d, 0xa
lea rax, [0x140012060]
mov rdx, rax
call sym.itoa
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rdx, rax
lea rax, str.SessionReadShellThreadFn_exitted__error___s
mov rcx, rax
call sym.holler
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop
Function at 0x140002cc1
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push rbp
sub rsp, 0x120
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb0], rcx
mov rax, qword [rbp + 0xb0]
mov qword [rbp + 0x90], rax
mov dword [rbp + 0x9c], 0
jmp 0x140002dbf
mov edx, dword [rbp + 0x9c]
lea eax, [rdx + 1]
mov dword [rbp + 0x9c], eax
movzx eax, byte [rbp + 0x8f]
mov edx, edx
mov byte [rbp + rdx - 0x40], al
movzx eax, byte [rbp + 0x8f]
cmp al, 0xd
jne 0x140002d32
mov eax, dword [rbp + 0x9c]
lea edx, [rax + 1]
mov dword [rbp + 0x9c], edx
mov eax, eax
mov byte [rbp + rax - 0x40], 0xa
lea rax, [rbp - 0x40]
mov r8d, 6
lea rdx, str.exit_r_n
mov rcx, rax
call sym.strnicmp
test eax, eax
jne 0x140002d5d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
movzx eax, byte [rbp + 0x8f]
cmp al, 0xa
je 0x140002d7f
movzx eax, byte [rbp + 0x8f]
cmp al, 0xd
je 0x140002d7f
cmp dword [rbp + 0x9c], 0xc7
jbe 0x140002dbf
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax + 8]
lea rdx, [rbp - 0x44]
mov r8d, dword [rbp + 0x9c]
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], 0
mov r9, rdx
mov rdx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x140002df3
mov dword [rbp + 0x9c], 0
mov rax, qword [rbp + 0x90]
mov rcx, qword [rax + 0x18]
lea rax, [rbp + 0x8f]
mov r9d, 0
mov r8d, 1
mov rdx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
test eax, eax
jne 0x140002cf5
jmp 0x140002df4
nop
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_ExitThread]
call rax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140002e96
Capabilities:
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov word [rbp + 0x13e], 0x101
movzx eax, word [rbp + 0x13e]
lea rdx, [rbp - 0x60]
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
mov dword [rbp + 0x138], eax
cmp dword [rbp + 0x138], 0
jne 0x140002ef3
movzx eax, word [rbp - 0x60]
cmp al, 1
jne 0x140002ee8
movzx eax, word [rbp - 0x60]
shr ax, 8
cmp al, 1
je 0x140002ef4
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
jmp 0x140002ef4
nop
add rsp, 0x1c0
pop rbp
ret
Function at 0x1400044a4
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov dword [rbp + 0x20], ecx
mov qword [rbp + 0x28], rdx
mov rdx, qword [0x1400121c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
je 0x1400044fd
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov eax, dword [rax]
mov edx, eax
lea rax, str.udptest_first_write_failed___errno__d
mov rcx, rax
call sym.holler
mov eax, dword [0x140012218]
test eax, eax
je 0x14000451a
mov eax, dword [0x140012218]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__sleep]
call rax
jmp 0x140004590
mov word [0x140012214], 0
mov dword [0x140012218], 5
mov rax, qword [rbp + 0x28]
mov r9d, 0
mov r8d, 0
mov edx, 0x7a69
mov rcx, rax
call sym.doconnect
mov ebx, eax
test ebx, ebx
jle 0x140004566
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_shutdown]
call rax
movsxd rax, ebx
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov dword [0x140012218], 0
movzx eax, word [0x140012214]
add eax, 1
mov word [0x140012214], ax
mov rax, qword [sym.imp.msvcrt.dll__errno]
call rax
mov dword [rax], 0
mov rdx, qword [0x1400121c8]
mov eax, dword [rbp + 0x20]
cdqe
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_send]
call rax
mov ebx, eax
cmp ebx, 1
jne 0x1400045cf
mov eax, dword [rbp + 0x20]
jmp 0x1400045fb
mov eax, dword [rbp + 0x20]
cdqe
mov edx, 2
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_shutdown]
call rax
mov eax, dword [rbp + 0x20]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov eax, 0xffffffff
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x140006100
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140006170
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400122a4]
test esi, esi
mov rbx, rcx
jle 0x1400062a0
mov rax, qword [0x1400122a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400061bb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140006245
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400061a0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x1400062c2
mov rax, qword [0x1400122a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400122a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400062a7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000623e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140006250
add dword [0x1400122a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400122a8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000623e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x1400061c8
mov rax, qword [0x1400122a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140006830
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140012300]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400122e0]
test rbx, rbx
je 0x14000688c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140006883
test rsi, rsi
je 0x140006883
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140006868
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]