joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007e50
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
mov eax, 0x2110
call fcn.14000b660
sub rsp, rax
mov rax, qword [0x140037030]
xor rax, rsp
mov qword [rsp + 0x2100], rax
add rcx, 0x10
lea rdx, [rsp + 0x100]
mov r8d, 0x1000
call fcn.140008340
mov edi, 1
lea rcx, [0x1400079c0]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
xor ebx, ebx
mov dword [rsp + 0x58], 0x18
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x60], rbx
mov dword [rsp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xorps xmm0, xmm0
mov qword [rsp + 0x98], rbx
xor ecx, ecx
movdqa xmmword [rsp + 0xa0], xmm0
mov dword [rsp + 0xcc], 0x101
mov word [rsp + 0xd0], di
call fcn.140010d10
mov rcx, rax
call fcn.140015760
mov ecx, eax
call fcn.140013abc
cmp rax, 0xffffffffffffffff
mov ecx, edi
cmove rax, rbx
mov qword [rsp + 0xe0], rax
call fcn.140010d10
mov rcx, rax
call fcn.140015760
mov ecx, eax
call fcn.140013abc
cmp rax, 0xffffffffffffffff
lea ecx, [rdi + 1]
cmove rax, rbx
mov qword [rsp + 0xe8], rax
call fcn.140010d10
mov rcx, rax
call fcn.140015760
mov ecx, eax
call fcn.140013abc
cmp rax, 0xffffffffffffffff
cmove rax, rbx
mov qword [rsp + 0xf0], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor r9d, r9d
lea r8, [rsp + 0x58]
mov rdx, rax
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140007fcd
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x50]
jmp 0x140007fe5
lea rdx, str.Failed_to_create_child_process__n
lea rcx, [0x140027738]
call fcn.1400029d0
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2100]
xor rcx, rsp
call fcn.14000b480
mov rbx, qword [rsp + 0x2128]
add rsp, 0x2110
pop rdi
ret
Function at 0x140014e78
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140014ca4
Function at 0x140001dc4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r15
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, 1
mov rdi, rcx
mov dword [rsp + 0x28], ebx
xor r9d, r9d
and dword [rsp + 0x20], 0
mov edx, ebx
lea r15d, [rbx + 1]
mov ecx, r15d
lea r8d, [rbx + 5]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140001f1d
lea r9, [rbp - 0x1c]
mov dword [rbp - 0x1c], ebx
mov r8d, ebx
mov dword [rsp + 0x20], 4
lea edx, [rbx + 5]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140001f1d
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
mov edx, 0xffff
mov dword [rbp - 0x20], ebx
lea r8d, [rbx - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x140001f31
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x18], r15w
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x16], ax
cmp byte [rdi + 0x4a], bl
je 0x140001e97
and dword [rbp - 0x14], ebx
jmp 0x140001ea5
mov ecx, 0x7f000001
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbp - 0x14], eax
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140001f09
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140001f1d
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
and dword [rbp - 0x20], 0
mov edx, 0xffff
mov r8d, 0xfffffffb
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x18]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x140001f1d
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140001f31
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400053e0
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140001f54
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
push r12
push r14
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
xor esi, esi
mov rdi, rcx
mov dword [r11 - 0x50], r14d
xor r9d, r9d
mov dword [rsp + 0x20], esi
mov edx, r14d
lea ebx, [rsi + 6]
lea r12d, [r14 + 0x16]
mov r8d, ebx
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x1400020ba
lea r9, [rbp - 0x2c]
mov dword [rbp - 0x2c], r14d
mov r8d, r14d
mov dword [rsp + 0x20], 4
mov edx, ebx
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400020ba
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], r14d
lea r8d, [r14 - 6]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
call sub.webengine4.dll_AttachHandleToThreadPool
mov ebx, eax
test eax, eax
jne 0x1400020ce
xor eax, eax
mov word [rbp - 0x26], si
mov dword [rbp - 0x24], esi
mov dword [rbp - 0x10], esi
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
cmp byte [rdi + 0x4a], sil
jne 0x140002032
mov byte [rbp - 0x11], r14b
movzx ecx, word [rdi + 0x30]
mov word [rbp - 0x28], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r14d, 0x1c
mov word [rbp - 0x26], ax
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1400020a6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x1400020ba
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
mov edx, 0xffff
mov dword [rbp - 0x30], esi
lea r8d, [r14 - 0x21]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x38]
lea rdx, [rbp - 0x28]
mov r8d, r14d
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400020ba
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1400020ce
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400053e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rbp
ret
Function at 0x1400020f8
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
cmp byte [rcx + 0x48], 0
mov rbx, rcx
je 0x140002119
xor eax, eax
jmp 0x14000218f
call fcn.1400022f8
mov edi, eax
test eax, eax
jne 0x140002185
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rbx
mov esi, dword [rsp + 0x40]
cmp byte [rbx + 0x4b], dil
je 0x140002143
call fcn.140001f54
jmp 0x140002148
call fcn.140001dc4
mov edi, eax
test eax, eax
jne 0x140002185
lea ebp, [rsi + rsi*2]
mov byte [rbx + 0x48], 1
mov esi, ebp
test ebp, ebp
jle 0x14000216f
mov rcx, rbx
call fcn.140001d44
mov edi, eax
test eax, eax
jne 0x140002185
dec esi
test esi, esi
jg 0x14000215b
mov r8d, ebp
lea rdx, [0x1400075bc]
mov ecx, 0x40000434
call sub.webengine4.dll_XspLogEvent
jmp 0x14000218d
mov rcx, rbx
call fcn.1400021a4
mov eax, edi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400022f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [r11 + 0x20]
xor ebx, ebx
mov qword [r11 - 0x18], rax
and qword [r11 + 0x20], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000236e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.AllowRemoteConnection
lea rax, [rsp + 0x50]
mov dword [rsp + 0x48], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14000237e
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002388
cmp dword [rsp + 0x50], ebx
setne al
mov byte [rdi + 0x4a], al
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140002398
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1400023a2
mov byte [rdi + 0x4a], 0
xor ebx, ebx
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400023b0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
lea rax, [rsp + 0x68]
xor ebx, ebx
mov qword [rsp + 0x20], rax
and qword [rsp + 0x68], rbx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov rcx, 0xffffffff80000002
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 0xf]
test eax, eax
jne 0x140002428
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rdx, str.SocketTimeout
lea rax, [rsp + 0x58]
mov dword [rsp + 0x60], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140002438
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002448
mov eax, dword [rsp + 0x58]
test eax, eax
cmovle eax, esi
mov dword [rsp + 0x58], eax
mov dword [rdi + 0x20], eax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140002458
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x14000245f
mov dword [rdi + 0x20], esi
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x14000246c
Capabilities:
Initialize winsock library
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
and qword [rsp + 0x38], 0
mov rdi, rcx
mov byte [rcx + 0x4b], 0
call fcn.14000119c
mov ebx, eax
test eax, eax
jne 0x1400025f3
mov ecx, 0x202
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400024da
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400025f3
xor r9d, r9d
mov byte [rdi + 4], 1
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x1400025e3
mov qword [rdi + 0x40], rax
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov eax, 0xa5b8
mov r9d, 0x20019
mov word [rdi + 0x30], ax
xor r8d, r8d
lea rax, [rsp + 0x38]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400025c2
mov rcx, qword [rsp + 0x38]
lea ebx, [rax + 4]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Port
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140002582
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x140002582
mov word [rdi + 0x30], cx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x30], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.UseIPV6
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400025c2
cmp dword [rsp + 0x44], eax
je 0x1400025c2
mov byte [rdi + 0x4b], 1
call fcn.140004fc4
mov ebx, eax
test eax, eax
jne 0x1400025f3
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov qword [rdi + 0x18], rax
test rax, rax
jne 0x1400025ec
call fcn.140005974
mov ebx, eax
jmp 0x1400025f3
call sub.webengine4.dll_PerfCounterInitialize
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002603
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400053e0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400027cc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
mov byte [rcx + 0x10], dil
call fcn.1400023b0
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea r8, [0x1400027c0]
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140002811
call fcn.140005974
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002b80
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x14000400c
mov rcx, qword [rcx + 0x30]
jmp 0x140006078
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400060a4
xor eax, eax
jmp 0x140006106
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rcx
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400060de
lea eax, [rdi + 1]
jmp 0x140006106
cmp eax, 0xffffffff
je 0x1400060a0
mov r9d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
seta dil
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400053e0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

Function at 0x140004618
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
lea rax, [fcn.140004520]
mov rbp, rcx
mov qword [rcx + 0x20], rax
xor edi, edi
mov r14d, r8d
mov r15, rdx
lea ecx, [rdi + 0x40]
call fcn.1400059d8
test rax, rax
je 0x14000465b
mov rdx, rbp
mov rcx, rax
call fcn.140003670
mov rsi, rax
jmp 0x14000465e
mov rsi, rdi
test rsi, rsi
jne 0x14000466d
mov edi, 0x8007000e
jmp 0x140004742
mov rax, qword [rsi]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140005cf0]
mov rcx, rsi
call rbx
mov edx, dword [rbp + 0xd8]
mov rcx, qword [0x14000a9c0]
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x80], edi
call fcn.140004c14
lea rcx, [rbp + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rbp + 0x30]
lea rax, [rsi + 8]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x40]
lea rax, [rsp + 0x80]
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140004742
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r14d, eax
cmp eax, 0x3e5
je 0x140004742
mov edx, dword [rbp + 0xd8]
mov rcx, qword [0x14000a9c0]
call fcn.140004c68
mov qword [rbp + 0x20], rdi
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140005cf0]
mov rcx, rsi
call rbx
movzx edi, r14w
or edi, 0x80070000
test r14d, r14d
cmovle edi, r14d
mov rcx, rsi
call fcn.140006044
lea r8, str.Tracker::Read
mov edx, edi
mov rcx, rbp
call fcn.140004774
mov rbx, qword [rsp + 0x88]
mov eax, edi
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400049a8
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor r14d, r14d
mov ebx, r8d
mov rdi, rcx
mov r12d, 1
cmp byte [rcx + 0x110], r14b
jne 0x140004bf9
mov rbp, qword [rsp + 0xb8]
mov byte [rcx + 0x110], r12b
test rbp, rbp
je 0x1400049fc
mov r13d, dword [rbp + 4]
jmp 0x1400049ff
xor r13d, r13d
mov eax, dword [rsp + 0xb0]
add eax, ebx
lea esi, [rax*2 + 0x3e]
movsxd rcx, esi
mov dword [rsp + 0x90], esi
call fcn.1400059a0
mov r15, rax
test rax, rax
je 0x140004be9
and qword [rsp + 0x38], r14
mov r9d, ebx
and qword [rsp + 0x30], r14
xor edx, edx
mov r8, qword [rsp + 0x98]
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r9d, dword [rsp + 0xb0]
mov ecx, esi
mov r8, qword [rsp + 0xa8]
xor esi, esi
movsxd rbx, eax
xor edx, edx
sub ecx, ebx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], ecx
xor ecx, ecx
lea rax, [r15 + rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movups xmm0, xmmword [str.Content_Length:]
add ebx, eax
mov r9d, 0xa
movsxd rax, ebx
mov ecx, r13d
add ebx, 0x10
movsxd rsi, ebx
add rsi, r15
movdqu xmmword [rax + r15], xmm0
mov eax, dword [rsp + 0x90]
mov rdx, rsi
sub eax, ebx
movsxd r8, eax
call qword [sym.imp.MSVCR120_CLR0400.dll__itoa_s]
test eax, eax
jne 0x140004be9
jmp 0x140004ad2
add rsi, r12
cmp byte [rsi], r14b
jne 0x140004acf
mov dword [rsi], 0xa0d0a0d
sub esi, r15d
add esi, 4
mov qword [rdi + 0xf0], r15
xor r15d, r15d
mov dword [rdi + 0xe8], esi
test r13d, r13d
jle 0x140004b1a
mov qword [rdi + 0x108], rbp
lock add dword [rbp], r12d
lea rax, [rbp + 8]
mov dword [rdi + 0xf8], r13d
mov qword [rdi + 0x100], rax
lea r12d, [r15 + 2]
lea rax, [0x1400045a0]
mov ecx, 0x40
mov qword [rdi + 0x20], rax
call fcn.1400059d8
test rax, rax
je 0x140004b42
mov rdx, rdi
mov rcx, rax
call fcn.140003670
mov r14, rax
test r14, r14
je 0x140004be9
mov rax, qword [r14]
mov rbx, qword [rax + 8]
mov rcx, rbx
call qword [fcn.140005cf0]
mov rcx, r14
call rbx
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x14000a9c0]
call fcn.140004c14
lea rcx, [rdi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rdi + 0x30]
lea rax, [r14 + 8]
xor esi, esi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rsi
lea rdx, [rdi + 0xe8]
mov qword [rsp + 0x28], rax
mov r8d, r12d
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140004be9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140004be9
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x14000a9c0]
call fcn.140004c68
mov qword [rdi + 0x20], rsi
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.140005cf0]
mov rcx, r14
call rbx
mov rcx, r14
call fcn.140006044
mov rcx, r15
call fcn.140005a10
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400051a4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14000b808], rcx
je 0x1400051da
cmp rax, rcx
jne 0x1400051d8
mov ebx, 1
mov edi, ebx
jmp 0x1400051df
jmp 0x1400051bd
mov ebx, 1
mov eax, dword [0x14000b810]
cmp eax, ebx
jne 0x1400051f5
mov ecx, 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
jmp 0x14000522c
mov eax, dword [0x14000b810]
test eax, eax
jne 0x140005226
mov dword [0x14000b810], ebx
lea rdx, [0x140007430]
lea rcx, [0x140007410]
call sub.MSVCR120_CLR0400.dll__initterm_e
test eax, eax
je 0x14000522c
mov eax, 0xff
jmp 0x14000531d
mov dword [0x14000a9e8], ebx
mov eax, dword [0x14000b810]
cmp eax, ebx
jne 0x140005253
lea rdx, [0x140007408]
lea rcx, [0x1400073c8]
call sub.MSVCR120_CLR0400.dll__initterm
mov dword [0x14000b810], 2
test edi, edi
jne 0x140005260
xor eax, eax
xchg qword [0x14000b808], rax
cmp qword [0x14000b828], 0
je 0x140005298
lea rcx, [0x14000b828]
call fcn.140005600
test eax, eax
je 0x140005298
mov rbx, qword [0x14000b828]
mov rcx, rbx
mov rax, qword [fcn.140005cf0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov rcx, qword [0x14000aa00]
mov rax, qword [sym.imp.MSVCR120_CLR0400.dll___winitenv]
mov qword [rax], rcx
mov r8, qword [0x14000aa00]
mov rdx, qword [0x14000a9f8]
mov ecx, dword [0x14000a9f4]
call fcn.140002a34
mov dword [0x14000a9ec], eax
cmp dword [0x14000a9f0], 0
jne 0x1400052d9
mov ecx, eax
call qword [sym.imp.MSVCR120_CLR0400.dll_exit]
cmp dword [0x14000a9e8], 0
jne 0x1400052ee
call qword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x14000a9ec]
jmp 0x14000531d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.14017b000
add rsp, 0x28
jmp 0x1400051a4
Function at 0x140005aa4
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov ebx, 0x114
lea rcx, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
call sub.MSVCR120_CLR0400.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140005bda
cmp dword [rsp + 0x30], 2
jne 0x140005bda
cmp dword [rsp + 0x24], 6
jb 0x140005bda
xor edx, edx
lea rcx, [rbp + 0x40]
mov r8d, 0x20a
call sub.MSVCR120_CLR0400.dll_memset
lea edx, [rbx - 0x10]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140005bda
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x140005bda
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
mov ebx, 0x105
cmp word [rbp + rcx*2 + 0x3e], 0x5c
je 0x140005b79
lea r8, [0x140007af0]
mov edx, ebx
lea rcx, [rbp + 0x40]
call fcn.140004d70
test eax, eax
jne 0x140005bda
lea r8, str.kernel32.dll
mov rdx, rbx
lea rcx, [rbp + 0x40]
call fcn.140004d70
test eax, eax
jne 0x140005bda
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140005bda
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x140005bd1
mov rcx, rax
call qword [fcn.140005cf0]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.1400053e0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x140006078
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x14000400c
mov rcx, qword [rcx + 0x30]
jmp 0x140006078
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x14000a0d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400060a4
xor eax, eax
jmp 0x140006106
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x20], rcx
xor edi, edi
xor ecx, ecx
mov qword [rsp + 0x38], rdi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400060de
lea eax, [rdi + 1]
jmp 0x140006106
cmp eax, 0xffffffff
je 0x1400060a0
mov r9d, 2
lea rdx, [rsp + 0x30]
mov rcx, rbx
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
inc eax
cmp eax, 1
seta dil
mov eax, edi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400053e0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret