joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001d74
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 [0x1400090d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov ebx, 1
mov rdi, rcx
xor r9d, r9d
lea r15d, [rbx + 1]
lea r8d, [rbx + 5]
mov edx, ebx
mov ecx, r15d
mov dword [rsp + 0x28], ebx
and dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140001ecd
lea r9, [rbp - 0x1c]
lea edx, [rbx + 5]
mov r8d, ebx
mov rcx, rax
mov dword [rbp - 0x1c], ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140001ecd
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x20]
lea r8d, [rbx - 6]
mov edx, 0xffff
mov dword [rbp - 0x20], ebx
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 0x140001ee1
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 0x140001e47
and dword [rbp - 0x14], ebx
jmp 0x140001e55
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 0x140001eb9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140001ecd
mov rcx, qword [rdi + 0x38]
and dword [rbp - 0x20], 0
lea r9, [rbp - 0x20]
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 0x140001ecd
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140001ee1
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.140005310
mov rbx, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r15, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x140001f0c
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 [0x1400090d0]
xor rax, rsp
mov qword [rbp - 8], rax
mov r14d, 1
xor esi, esi
mov rdi, rcx
mov dword [r11 - 0x50], r14d
lea ebx, [rsi + 6]
lea r12d, [r14 + 0x16]
xor r9d, r9d
mov edx, r14d
mov r8d, ebx
mov ecx, r12d
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x38], rax
cmp rax, 0xffffffffffffffff
je 0x140002072
lea r9, [rbp - 0x2c]
mov r8d, r14d
mov edx, ebx
mov rcx, rax
mov dword [rbp - 0x2c], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140002072
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
lea r8d, [r14 - 6]
mov edx, 0xffff
mov dword [rbp - 0x30], r14d
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 0x140002086
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 0x140001fea
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]
mov r14d, 0x1c
lea rdx, [rbp - 0x28]
mov r8d, r14d
mov word [rbp - 0x26], ax
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x14000205e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271d
jne 0x140002072
mov rcx, qword [rdi + 0x38]
lea r9, [rbp - 0x30]
lea r8d, [r14 - 0x21]
mov edx, 0xffff
mov dword [rbp - 0x30], esi
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 0x140002072
mov rcx, qword [rdi + 0x38]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x140002086
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.140005310
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 0x1400020b4
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 0x1400020d5
xor eax, eax
jmp 0x14000214b
call fcn.1400022d8
mov edi, eax
test eax, eax
jne 0x140002141
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [rsp + 0x40]
mov rcx, rbx
cmp byte [rbx + 0x4b], dil
je 0x1400020ff
call fcn.140001f0c
jmp 0x140002104
call fcn.140001d74
mov edi, eax
test eax, eax
jne 0x140002141
lea ebp, [rsi + rsi*2]
mov byte [rbx + 0x48], 1
mov esi, ebp
test ebp, ebp
jle 0x14000212b
mov rcx, rbx
call fcn.140001cec
mov edi, eax
test eax, eax
jne 0x140002141
dec esi
test esi, esi
jg 0x140002117
lea rdx, [0x140007524]
mov r8d, ebp
mov ecx, 0x40000434
call sub.webengine4.dll_XspLogEvent
jmp 0x140002149
mov rcx, rbx
call fcn.140002168
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 0x1400022d8
Capabilities:
Query or enumerate registry value

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
lea rax, [rsp + 0x68]
mov rdi, rcx
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
xor ebx, ebx
mov r9d, 0x20019
xor r8d, r8d
and qword [rsp + 0x68], rbx
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea esi, [rbx + 0xf]
test eax, eax
jne 0x140002410
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x60]
lea rdx, str.SocketTimeout
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140002420
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x140002430
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 0x140002440
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140002447
mov dword [rdi + 0x20], esi
mov eax, ebx
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002458
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 [0x1400090d0]
xor rax, rsp
mov qword [rbp + 0xf0], rax
and qword [rsp + 0x38], 0
mov rdi, rcx
mov byte [rcx + 0x4b], 0
call fcn.140001124
mov ebx, eax
test eax, eax
jne 0x1400025df
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400024c6
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1400025df
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov byte [rdi + 4], 1
call qword [sym.imp.KERNEL32.dll_CreateEventW]
test rax, rax
je 0x1400025cf
mov qword [rdi + 0x40], rax
mov eax, 0xa5b8
lea rdx, str.SYSTEMCurrentControlSetServices_aspnet_stateParameters
mov word [rdi + 0x30], ax
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400025ae
mov rcx, qword [rsp + 0x38]
lea ebx, [rax + 4]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
lea rdx, str.Port
xor r8d, r8d
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000256e
mov ecx, dword [rsp + 0x40]
lea eax, [rcx - 1]
cmp eax, 0xfffe
ja 0x14000256e
mov word [rdi + 0x30], cx
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x44]
lea rdx, str.UseIPV6
xor r8d, r8d
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400025ae
cmp dword [rsp + 0x44], eax
je 0x1400025ae
mov byte [rdi + 0x4b], 1
call fcn.140004ee4
mov ebx, eax
test eax, eax
jne 0x1400025df
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 0x1400025d8
call fcn.14000594c
mov ebx, eax
jmp 0x1400025df
call sub.webengine4.dll_PerfCounterInitialize
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400025ef
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.140005310
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400027bc
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.140002398
lea r8, [0x1400027a8]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x140002801
call fcn.14000594c
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x140002b70
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
jmp 0x140003f38
mov rcx, qword [rcx + 0x30]
jmp 0x140006084
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400060b0
xor eax, eax
jmp 0x140006112
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor edi, edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rdi
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400060ea
lea eax, [rdi + 1]
jmp 0x140006112
cmp eax, 0xffffffff
je 0x1400060ac
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.140005310
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
lea rax, [fcn.14000446c]
mov rsi, rcx
xor ebx, ebx
mov qword [rcx + 0x20], rax
lea ecx, [rbx + 0x40]
mov ebp, r8d
mov r14, rdx
call fcn.1400059b8
test rax, rax
je 0x140004595
mov rdx, rsi
mov rcx, rax
call fcn.1400034e0
mov rdi, rax
jmp 0x140004598
mov rdi, rbx
test rdi, rdi
jne 0x1400045a7
mov ebx, 0x8007000e
jmp 0x140004659
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, dword [rsi + 0xd8]
mov rcx, qword [0x1400099b8]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x88], ebx
mov dword [rsp + 0x70], ebx
call fcn.140004b04
lea rcx, [rsi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsi + 0x30]
lea rax, [rdi + 8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea r9, [rsp + 0x88]
lea rdx, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x140004659
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp eax, 0x3e5
je 0x140004659
mov edx, dword [rsi + 0xd8]
mov rcx, qword [0x1400099b8]
call fcn.140004b60
mov qword [rsi + 0x20], rbx
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
movzx ebx, bp
or ebx, 0x80070000
test ebp, ebp
cmovle ebx, ebp
mov rcx, rdi
call fcn.140006068
lea r8, str.Tracker::Read
mov edx, ebx
mov rcx, rsi
call fcn.140004690
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400048b0
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 0x140004ae6
mov rbp, qword [rsp + 0xb8]
mov byte [rcx + 0x110], r12b
test rbp, rbp
je 0x140004904
mov r13d, dword [rbp + 4]
jmp 0x140004907
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.14000597c
mov r15, rax
test rax, rax
je 0x140004ad6
and qword [rsp + 0x38], r14
and qword [rsp + 0x30], r14
mov r8, qword [rsp + 0x98]
mov r9d, ebx
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and qword [rsp + 0x38], r14
and qword [rsp + 0x30], r14
mov r9d, dword [rsp + 0xb0]
mov r8, qword [rsp + 0xa8]
movsxd rbx, eax
mov ecx, esi
sub ecx, ebx
lea rax, [r15 + rbx]
xor edx, edx
mov dword [rsp + 0x28], ecx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r9d, 0xa
mov ecx, r13d
movups xmm0, xmmword [str.Content_Length:]
add ebx, eax
movsxd rax, ebx
add ebx, 0x10
movsxd rsi, ebx
add rsi, r15
mov rdx, rsi
movdqu xmmword [rax + r15], xmm0
mov eax, dword [rsp + 0x90]
sub eax, ebx
movsxd r8, eax
call qword [sym.imp.MSVCR110_CLR0400.dll__itoa_s]
test eax, eax
jne 0x140004ad6
jmp 0x1400049d8
add rsi, r12
cmp byte [rsi], r14b
jne 0x1400049d5
mov dword [rsi], 0xa0d0a0d
sub esi, r15d
lea rbx, [rdi + 0xe8]
add esi, 4
mov qword [rdi + 0xf0], r15
mov dword [rbx], esi
xor esi, esi
mov r15d, esi
test r13d, r13d
jle 0x140004a25
mov qword [rdi + 0x108], rbp
lock add dword [rbp], r12d
lea rax, [rbp + 8]
mov dword [rdi + 0xf8], r13d
lea r12d, [rsi + 2]
mov qword [rdi + 0x100], rax
lea rax, [0x1400044ec]
mov ecx, 0x40
mov qword [rdi + 0x20], rax
call fcn.1400059b8
test rax, rax
je 0x140004a4d
mov rdx, rdi
mov rcx, rax
call fcn.1400034e0
mov r14, rax
test r14, r14
je 0x140004ad6
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x1400099b8]
call fcn.140004b04
lea rcx, [rdi + 0xdc]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rdi + 0x30]
lea rax, [r14 + 8]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x40]
mov r8d, r12d
mov rdx, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x140004ad6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x140004ad6
mov edx, dword [rdi + 0xd8]
mov rcx, qword [0x1400099b8]
call fcn.140004b60
mov qword [rdi + 0x20], rsi
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_recv]
mov rcx, r14
call fcn.140006068
mov rcx, r15
call fcn.1400059f8
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 0x140005a98
Capabilities:
Check os version
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov ebx, 0x114
lea rcx, [rsp + 0x20]
xor edx, edx
mov r8d, ebx
call sub.MSVCR110_CLR0400.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x140005bbd
cmp dword [rsp + 0x30], 2
jne 0x140005bbd
cmp dword [rsp + 0x24], 6
jb 0x140005bbd
lea rcx, [rbp + 0x40]
xor edx, edx
mov r8d, 0x20a
call sub.MSVCR110_CLR0400.dll_memset
lea edx, [rbx - 0x10]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140005bbd
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jl 0x140005bbd
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, 0x105
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x3e], 0x5c
je 0x140005b68
lea r8, [0x140007a60]
lea rcx, [rbp + 0x40]
mov edx, ebx
call fcn.140004c7c
test eax, eax
jne 0x140005bbd
lea r8, str.kernel32.dll
lea rcx, [rbp + 0x40]
mov rdx, rbx
call fcn.140004c7c
test eax, eax
jne 0x140005bbd
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140005bbd
lea rdx, str.HeapSetInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140005bb4
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140005310
mov rbx, qword [rsp + 0x370]
add rsp, 0x360
pop rbp
ret

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

Disassembly:
jmp 0x140003f38
mov rcx, qword [rcx + 0x30]
jmp 0x140006084
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x1400090d0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rcx
cmp rcx, 0xffffffffffffffff
jne 0x1400060b0
xor eax, eax
jmp 0x140006112
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x20], rcx
xor edi, edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x38], rdi
call qword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x1400060ea
lea eax, [rdi + 1]
jmp 0x140006112
cmp eax, 0xffffffff
je 0x1400060ac
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.140005310
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret
Function at 0x14000dc00
Capabilities:
Create thread
Encode data using xor
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14008e080]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rcx, [0x1401403f0]
call fcn.14001b000
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
movdqa xmm1, xmmword [0x140083330]
movdqu xmmword [rbp + 0x37], xmm1
mov byte [rbp + 0x27], 0
xor ebx, ebx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
lea r8, [0x140006ec0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x2ee
mov edx, 0x64
mov r9d, 0x5dc
mov r8d, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
mov dword [rbp - 9], 0xc1d7ccc4
mov dword [rbp - 5], 0xcdcc86d7
mov dword [rbp - 1], 0xa68b90d0
mov word [rbp + 3], 0x100
nop dword [rax + rax]
lea eax, [rbx - 0x5f]
xor byte [rbp + rbx - 9], al
inc rbx
cmp rbx, 0xc
jb 0x14000dcb0
mov byte [rbp + 4], 0
lea rcx, [rbp - 9]
call fcn.140001a80
lea rdx, [rbp + 0x27]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.14000f4e0
lea rdx, [rbp + 0x27]
lea rcx, [rbp + 7]
call fcn.1400044d0
mov rdx, rax
lea rcx, [0x1401403f0]
call fcn.14001c820
cmp byte [0x140140600], 0
jne 0x14000dd0e
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call fcn.14000d420
int3

Function at 0x14000e300
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14000e321
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000e34e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000e350
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14000e3a9
test ecx, ecx
jle 0x14000e389
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14000e3a9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14000e3a9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
ror byte [rdi], 0x45
fnstenv [rbx]
rcr byte [rsi - 0x7b], 0xdb
pop rdi
setne al
pop rbx
mov esp, ebp
pop rbp
ret
Function at 0x14000e3d0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14000e3f2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14000e401
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000e424
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000e426
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000e462
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000e4fe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000e49d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000e4de
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000e4fe
cmp rbx, rax
ja 0x14000e4b0
test rbx, rbx
je 0x14000e4fe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
invalid