joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180087860
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x1800878de
lea rcx, [rbx + 0xd0]
cmp qword [rcx + 0x20], 0
je 0x180087895
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
lea rbp, [rbx + 0x68]
mov rbx, qword [rbp + 0x60]
test rbx, rbx
je 0x1800878ce
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800878ce
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800878ce
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, rbp
call fcn.18005ea70
mov qword [rsi + 0x10], 0
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x180087928
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087917
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087917
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x18008793d
inc ecx
inc rax
cmp rax, 2
jl 0x180087905
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rsi + 8], 0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x108]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
jmp 0x180087920

Function at 0x180087950
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x18008798c
lea rcx, [rbx + 0x140]
cmp qword [rcx + 0x20], 0
je 0x18008797b
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
lea rcx, [rbx + 0x70]
call fcn.18005e630
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x1800879d6
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1800879c5
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1800879c5
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x1800879e1
inc ecx
inc rax
cmp rax, 2
jl 0x1800879b3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x178]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180087a10
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x180087a6d
lea rcx, [rbx + 0x108]
cmp qword [rcx + 0x20], 0
je 0x180087a3b
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
lea rcx, [rbx + 0xb0]
call fcn.18005ea70
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180087a65
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180087a65
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087ab7
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087aa6
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087aa6
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180087ac2
inc ecx
inc rax
cmp rax, 2
jl 0x180087a94
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x140]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180087af0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x180087b4a
lea rcx, [rbx + 0x110]
cmp qword [rcx + 0x20], 0
je 0x180087b1b
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
lea rcx, [rbx + 0x60]
call fcn.18005e9b0
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180087b42
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180087b42
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087b94
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087b83
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087b83
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180087b9f
inc ecx
inc rax
cmp rax, 2
jl 0x180087b71
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x148]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180087bd0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x180087c2d
lea rcx, [rbx + 0x210]
cmp qword [rcx + 0x20], 0
je 0x180087bfb
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
lea rcx, [rbx + 0x150]
call fcn.18005edc0
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180087c25
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180087c25
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087c77
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087c66
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087c66
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180087c82
inc ecx
inc rax
cmp rax, 2
jl 0x180087c54
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x248]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180087cb0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, qword [rcx + 0x10]
test rbx, rbx
je 0x180087d0d
lea rcx, [rbx + 0x218]
cmp qword [rcx + 0x20], 0
je 0x180087cdb
mov rax, qword [rcx + 0x18]
call qword [rax]
nop
lea rcx, [rbx + 0x150]
call fcn.18005ee30
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180087d05
mov eax, 0xffffffff
lock xadd dword [rcx + 0xc], eax
cmp eax, 1
jne 0x180087d05
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x180087d57
mov ecx, dword [0x1800c7f90]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x180087d46
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180087d46
xor ecx, ecx
xor eax, eax
cmp qword [rdx + rax*8], 0
je 0x180087d62
inc ecx
inc rax
cmp rax, 2
jl 0x180087d34
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll__aligned_free]
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x250]
mov byte [rbx], al
movsxd rax, ecx
mov qword [rdx + rax*8], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18008b9d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, r9
mov dword [rsp + 0x28], 1
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov esi, ecx
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008ba4d
mov dword [rdi], 0
cmp esi, 0x17
jne 0x18008ba3a
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov edx, 0x29
mov dword [rsp + 0x20], 4
mov r8d, 0x1b
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.180046bf0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rsi, qword [rsp + 0x58]
mov dword [rsp + 0x30], eax
mov rax, 0xffffffffffffffff
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
mov rbx, qword [rsp + 0x50]
movups xmmword [rdi], xmm0
add rsp, 0x40
pop rdi
ret
Function at 0x18008c090
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rbx, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x18008c0ca
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rbx
jmp fcn.18007d620
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x18008c0f2
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rbx + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rbx
jmp fcn.18007d620
mov eax, dword [rsp + 0x70]
lea r9, [rsp + 0x78]
xor edx, edx
mov dword [rsp + 0x50], eax
mov qword [rsp + 0x30], rdx
lea rax, [rsp + 0x50]
mov dword [rsp + 0x78], edx
mov r8d, r10d
mov qword [rsp + 0x58], rsi
mov rdx, r11
mov qword [rsp + 0x60], rdi
mov rdi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x40
jne 0x18008c14b
mov eax, 0x2746
jmp 0x18008c158
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test esi, esi
mov rsi, qword [rsp + 0x58]
je 0x18008c187
cmp eax, 0x3e5
je 0x18008c187
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.18007d620
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rbx + 8]
mov rdx, rdi
call fcn.18007e720
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbx
ret

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

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 8]
mov r10, r9
mov r11, r8
mov rdi, rcx
lock inc dword [rax + 0x30]
cmp byte [rsp + 0x78], 0
je 0x18008c32a
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rcx + 8]
xor r8d, r8d
add rsp, 0x40
pop rdi
jmp fcn.18007d620
mov rcx, qword [rdx]
cmp rcx, 0xffffffffffffffff
jne 0x18008c352
mov rdx, qword [rsp + 0x80]
xor r9d, r9d
mov rcx, qword [rdi + 8]
mov r8d, 0x2719
add rsp, 0x40
pop rdi
jmp fcn.18007d620
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x78]
mov dword [rsp + 0x78], eax
mov r8d, r10d
mov eax, dword [rsp + 0x70]
mov rdx, r11
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x80]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x4d2
mov ecx, 0x274d
cmove eax, ecx
test ebx, ebx
mov rbx, qword [rsp + 0x50]
je 0x18008c3d1
cmp eax, 0x3e5
je 0x18008c3d1
mov r9d, dword [rsp + 0x78]
mov r8d, eax
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.18007d620
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rdi + 8]
mov rdx, rsi
call fcn.18007e720
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800970c4
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1800970fe
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x180097103
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18009714c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x18009714c
dec r8
sub rdx, 1
jne 0x180097132
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001548
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xfb8]
mov eax, 0x10b0
call fcn.1400139b0
sub rsp, rax
mov rax, qword [0x140069658]
xor rax, rsp
mov qword [rbp + 0xfa0], rax
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.140007f30
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000159b
lea ecx, [rax + 6]
jmp 0x1400016dc
call fcn.1400099e4
mov rbx, rax
call fcn.1400093ac
mov qword [rsp + 0x28], rbx
lea r8, [0x140062148]
mov ebx, 0x400
mov dword [rsp + 0x20], 0x5c
mov edx, ebx
lea rcx, [rbp + 0x7a0]
mov r9, rax
call fcn.140009a68
mov r9d, dword [rsp + 0x30]
lea r8, [0x140062158]
mov edx, ebx
lea rcx, [rbp - 0x60]
call fcn.140009a68
and qword [rsp + 0x70], 0
lea rax, str.JavaWSSplashScreen
mov qword [rsp + 0x50], rax
lea r8, [rsp + 0x50]
lea rax, [0x140062188]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x58], rax
lea rdx, [rbp + 0x7a0]
lea rax, [rbp - 0x60]
xor ecx, ecx
mov qword [rsp + 0x60], rax
call fcn.1400092b0
mov rcx, rdi
test eax, eax
jne 0x1400016d5
xorps xmm0, xmm0
mov dword [rsp + 0x34], reloc.WSOCK32.dll_recv
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x38]
movups xmmword [rsp + 0x38], xmm0
call qword [sym.imp.WSOCK32.dll_accept]
cmp eax, 0xffffffff
jne 0x140001667
mov rcx, rdi
call fcn.1400091a0
mov ecx, 6
jmp 0x1400016dc
xor r9d, r9d
movsxd rbx, eax
lea rdx, [rbp - 0x70]
mov rcx, rbx
lea r8d, [r9 + 6]
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 6
je 0x14000169a
mov rcx, rbx
call fcn.1400091a0
mov rcx, rdi
call fcn.1400091a0
mov ecx, 7
jmp 0x1400016dc
lea rcx, [rbp - 0x70]
call fcn.140029678
mov dword [0x140062140], eax
mov rcx, rbx
test eax, eax
jg 0x1400016c4
call fcn.1400091a0
mov rcx, rdi
call fcn.1400091a0
mov ecx, 8
jmp 0x1400016dc
call fcn.1400091a0
mov rcx, rdi
call fcn.1400091a0
xor eax, eax
jmp 0x1400016e1
call fcn.1400091a0
xor ecx, ecx
call fcn.14000b4e4
mov rcx, qword [rbp + 0xfa0]
xor rcx, rsp
call fcn.140013a10
lea r11, [rsp + 0x10b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140007b78
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140069658]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rcx
mov dword [rsp + 0x40], 0x1fe
xor ebx, ebx
lea rcx, [rsp + 0x48]
and qword [rsp + 0x48], rbx
lea r8, str.FORCED_FX_ROOT
xor edx, edx
xor edi, edi
call fcn.140029a10
cmp qword [rsp + 0x48], rbx
je 0x140007c1e
test eax, eax
jne 0x140007c1e
lea edx, [rdi + 0x40]
lea ecx, [rdi + 1]
call fcn.14002ac78
lea rcx, str.2.0
mov rbx, rax
call fcn.14001a794
lea rdx, [rbx + 0x10]
mov qword [rbx + 8], rax
mov rcx, rax
call fcn.1400077c4
mov rcx, qword [rsp + 0x48]
call fcn.14001a794
mov qword [rbx], rax
mov rcx, qword [rsp + 0x48]
call fcn.14002ac80
jmp 0x140007cfc
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareOracleJavaFX
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140007c50
xor eax, eax
jmp 0x140007cff
and qword [rsp + 0x38], 0
lea r9, [rsp + 0x40]
and qword [rsp + 0x30], 0
lea r8, [rbp - 0x70]
and qword [rsp + 0x28], 0
mov edx, edi
mov rcx, qword [rsp + 0x50]
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test eax, eax
jne 0x140007cdf
test r14, r14
je 0x140007c99
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.140007910
test eax, eax
je 0x140007cdf
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x70]
call fcn.1400077c4
test rbx, rbx
je 0x140007cc3
lea rdx, [rbx + 0x10]
lea rcx, [rsp + 0x58]
call fcn.1400078a8
test eax, eax
je 0x140007cdf
mov rdx, rbx
jmp 0x140007cd6
mov edx, 0x40
lea ecx, [rdx - 0x3f]
call fcn.14002ac78
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140007d64
inc edi
mov dword [rsp + 0x40], 0x1fe
test esi, esi
je 0x140007c50
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140013a10
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140007d64
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1160]
mov eax, 0x1260
call fcn.1400139b0
sub rsp, rax
mov rax, qword [0x140069658]
xor rax, rsp
mov qword [rbp + 0x1150], rax
mov qword [rsp + 0x28], rcx
lea rax, [0x140063e00]
mov rbx, rdx
mov qword [rsp + 0x20], rax
mov rdi, rcx
lea r9, [0x140063e30]
mov edx, 0x1000
lea rcx, [rbp + 0x150]
or r8, 0xffffffffffffffff
call fcn.1400048dc
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x150]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140007e38
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x30], 0x208
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Path
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x38]
test eax, eax
je 0x140007e5e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov rcx, qword [rbp + 0x1150]
xor rcx, rsp
call fcn.140013a10
lea r11, [rsp + 0x1260]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x34], 1
jne 0x140007e38
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140007e79
call fcn.14002ac80
mov rcx, rdi
call fcn.14001a794
lea rdx, [rbx + 0x10]
mov qword [rbx + 8], rax
mov rcx, rax
call fcn.1400077c4
mov rcx, qword [rbx]
test rcx, rcx
je 0x140007e9e
call fcn.14002ac80
lea rcx, [rsp + 0x40]
call fcn.14001a794
mov qword [rbx], rax
mov eax, 1
jmp 0x140007e3a

Function at 0x140007f30
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140069658]
xor rax, rsp
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
movups xmmword [rsp + 0x28], xmm0
mov rdi, rcx
call fcn.1400090c0
mov ebx, 2
lea rcx, [0x140063eb0]
mov word [rsp + 0x28], bx
call qword [sym.imp.WSOCK32.dll_inet_addr]
xor r8d, r8d
lea edx, [rbx - 1]
mov ecx, ebx
mov dword [rsp + 0x2c], eax
call qword [sym.imp.WSOCK32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007ff4
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x140007fec
lea r8, [rsp + 0x20]
mov rcx, rbx
lea rdx, [rsp + 0x28]
call qword [sym.imp.WSOCK32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140007fec
mov edx, 0x7fffffff
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
je 0x140007fec
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WSOCK32.dll_ntohs]
movzx eax, ax
mov dword [rdi], eax
mov rax, rbx
jmp 0x140007ff8
mov rcx, rbx
call fcn.1400091a0
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140013a10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1400080d8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140069658]
xor rax, rsp
mov qword [rsp + 0x30], rax
and qword [rsp + 0x28], 0
mov ebx, ecx
call fcn.1400090c0
mov edi, 2
movzx ecx, bx
mov word [rsp + 0x20], di
call qword [sym.imp.WSOCK32.dll_htons]
lea rcx, [0x140063ed0]
mov word [rsp + 0x22], ax
call qword [sym.imp.WSOCK32.dll_inet_addr]
xor r8d, r8d
lea edx, [rdi - 1]
mov ecx, edi
mov dword [rsp + 0x24], eax
call qword [sym.imp.WSOCK32.dll_socket]
or rdi, 0xffffffffffffffff
mov rbx, rax
cmp rax, rdi
jne 0x140008146
mov rax, rdi
jmp 0x14000816b
mov r8d, reloc.WSOCK32.dll_recv
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.WSOCK32.dll_connect]
cmp eax, edi
jne 0x140008168
mov rcx, rbx
call fcn.1400091a0
jmp 0x140008141
mov rax, rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140013a10
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

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

Disassembly:
sub rsp, 0x28
xor r9d, r9d
mov byte [rsp + 0x38], dl
lea rdx, [rsp + 0x38]
lea r8d, [r9 + 1]
call qword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rdi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140008339
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x1400082ce
lea eax, [rax*2 + 6]
movsxd r14, eax
lea rcx, [r14 + r14]
call fcn.14002ac94
mov rsi, rax
test rax, rax
je 0x140008339
mov r9, rdi
lea r8, str._s_r_n
mov rdx, r14
mov rcx, rax
call fcn.140009a68
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rsi + rcx*2], bx
jne 0x14000830b
lea r8d, [rcx + rcx]
xor r9d, r9d
mov rcx, rbp
mov rdx, rsi
call qword [sym.imp.WSOCK32.dll_send]
cmp eax, 0xffffffff
mov rcx, rsi
setne bl
call fcn.14002ac80
mov eax, ebx
jmp 0x14000833b
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
Function at 0x14000835c
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
lea r12, [0x140076a30]
mov edi, r15d
mov r14d, r15d
mov ebx, r15d
mov esi, r15d
mov rdx, r12
mov rbp, rcx
jmp 0x1400083d3
test eax, eax
je 0x140008410
movzx ecx, word [r12 + rdi*2]
cmp cx, 0xa
je 0x140008410
cmp cx, 0xd
lea eax, [rbx + 1]
cmove eax, ebx
cmp eax, 0x3ff
jge 0x140008406
movsxd rbx, eax
lea rdi, [r14 + 1]
cmp cx, 0xd
mov rsi, rbx
mov rcx, rbp
cmove rdi, r14
mov r14, rdi
lea rdx, [r12 + rbx*2]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WSOCK32.dll_recv]
cmp eax, 0xffffffff
jne 0x140008397
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov word [0x14007722e], r15w
jmp 0x140008422
lea rcx, [rsi + rsi]
cmp rcx, 0x800
jae 0x140008427
mov word [rcx + r12], r15w
mov rax, r12
jmp 0x1400083e7
call fcn.140013b38
int3

Function at 0x1400090c0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x140069658]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x140078a50], 0
jne 0x140009150
lea rcx, str.ws2_32.dll
mov edi, 1
call fcn.14000ddec
mov rbx, rax
test rax, rax
jne 0x140009117
lea rcx, str.wsock32.dll
call fcn.14000ddec
xor edi, edi
mov rbx, rax
test rax, rax
je 0x140009171
mov ecx, 2
lea rdx, [rsp + 0x20]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x140009184
test edi, edi
je 0x140009146
lea rdx, str.WSASendDisconnect
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140078a48], rax
mov dword [0x140078a50], 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140013a10
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
mov ecx, reloc.WSOCK32.dll_listen
call fcn.14000b4e4
mov rcx, rax
call fcn.140008fe4
int3
mov ecx, ntohs
call fcn.14000b4e4
mov rcx, rax
call fcn.140008fe4
int3