joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400a3811
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401ab850
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140283b89]
call fcn.1400a8dd4
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x1401ab8a8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1401ab9ba
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1401ab953
cmp qword [rbp + 0x28], 0
jle 0x1401ab953
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x1401ab8f1
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400a87ee
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x1401ab9a9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x1401ab9a9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

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

Disassembly:
jmp 0x14011bd60
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x20]
lea rcx, [0x1402837e0]
call fcn.1400a8dd4
nop
mov rax, qword [rbp + 0xf0]
mov rax, qword [rax + 0x18]
mov rcx, qword [rbp + 0xf0]
mov rcx, qword [rcx + 0x10]
mov rdx, qword [rbp + 0xf0]
mov rdx, qword [rdx + 8]
mov r8, qword [rbp + 0xf0]
mov r8, qword [r8]
mov qword [rbp + 0xc0], r8
mov r9d, dword [rax]
mov r8d, dword [rcx]
mov rdx, qword [rdx]
mov rax, qword [rbp + 0xc0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_recv]
lea rsp, [rbp + 0xd8]
pop rdi
pop rbp
ret
Function at 0x1400a3947
Capabilities:
Create thread

Disassembly:
jmp 0x14017b9b0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x140283ae5]
call fcn.1400a8dd4
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400a6d1d
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400a9482
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400a931f
nop
lea rcx, [rbp + 0x108]
call fcn.1400a84bf
nop
lea rax, [0x1400a3c67]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400a7ec5
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14017bab3
lea rcx, [rbp + 8]
call fcn.1400a39ce
nop
jmp 0x14017bacc
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400a451d
nop
lea rcx, [rbp + 8]
call fcn.1400a84bf
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400a7dda
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x1400a3f78
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x14018f150
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140283b9f]
call fcn.1400a8dd4
nop
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x270
jne 0x14018f18e
mov rcx, qword [rbp + 0x100]
call fcn.1400a425c
nop
jmp 0x14018f1aa
mov rax, qword [rbp + 0x100]
cmp dword [rax], 0x4e0
jb 0x14018f1aa
mov rcx, qword [rbp + 0x100]
call fcn.1400a5e09
nop
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x100]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x100]
mov eax, dword [rax]
inc eax
mov rcx, qword [rbp + 0x100]
mov dword [rcx], eax
mov eax, dword [rbp + 4]
shr eax, 0xb
mov rcx, qword [rbp + 0x100]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
shr eax, 0x12
mov ecx, dword [rbp + 4]
xor ecx, eax
mov eax, ecx
mov dword [rbp + 4], eax
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1400a3fc8
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14012fe20
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x140283693]
call fcn.1400a8dd4
nop
mov qword [rbp + 8], 0
jmp 0x14012fe5f
mov rax, qword [rbp + 8]
inc rax
mov qword [rbp + 8], rax
mov rax, qword [rbp + 0x110]
cmp qword [rbp + 8], rax
jae 0x14012feb5
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x108]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rbp + 0x100]
xor rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
movabs rax, 0x100000001b3
mov rcx, qword [rbp + 0x100]
imul rcx, rax
mov rax, rcx
mov qword [rbp + 0x100], rax
jmp 0x14012fe54
mov rax, qword [rbp + 0x100]
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x1400a3ff0
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x14010a090
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x3f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, __WSAFDIsSet
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x418]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x3c8], rax
lea rcx, [0x140283783]
call fcn.1400a8dd4
nop
mov rax, qword [rbp + 0x3f0]
mov byte [rax], 0
lea rdx, [rbp + 0x10]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [rbp + 0x1c4], eax
cmp dword [rbp + 0x1c4], 0
je 0x14010a136
call fcn.1400a97bb
lea r9, str.WSAStartup_failed
mov r8, rax
mov edx, dword [rbp + 0x1c4]
lea rcx, [rbp + 0x368]
call fcn.1400a77e0
lea rdx, [0x140256708]
lea rcx, [rbp + 0x368]
call fcn.1400a96e9
nop
movzx eax, word [rbp + 0x10]
and rax, 0xff
movzx eax, al
cmp eax, 2
jne 0x14010a15e
movzx eax, word [rbp + 0x10]
shr rax, 8
and rax, 0xff
movzx eax, al
cmp eax, 2
je 0x14010a18c
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rdx, str.Invalid_WinSock_version
lea rcx, [rbp + 0x3a8]
call fcn.1400a8096
lea rdx, [0x140256800]
lea rcx, [rbp + 0x3a8]
call fcn.1400a96e9
nop
mov rax, qword [rbp + 0x3f0]
mov byte [rax], 1
mov rax, qword [rbp + 0x3f0]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400a7dda
mov rax, rdi
mov rcx, qword [rbp + 0x3c8]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x3d8]
pop rdi
pop rbp
ret
Function at 0x1400a42b6
Capabilities:
Create thread

Disassembly:
jmp 0x14017b800
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x188]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x120], rax
lea rcx, [0x140283ae5]
call fcn.1400a8dd4
nop
mov edx, 8
lea rcx, [rbp + 8]
call fcn.1400a4c4d
mov rdx, qword [rbp + 0x158]
lea rcx, [rbp + 0x108]
call fcn.1400a5e9a
mov qword [rbp + 0x118], rax
mov rdx, qword [rbp + 0x118]
lea rcx, [rbp + 8]
call fcn.1400a4405
nop
lea rcx, [rbp + 0x108]
call fcn.1400a567f
nop
lea rax, [0x1400a6db3]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x150]
add rax, 8
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 8]
call fcn.1400a6f98
mov rcx, qword [rbp + 0x118]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rbp + 0x28]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbased.dll__beginthreadex]
mov rcx, qword [rbp + 0x150]
mov qword [rcx], rax
mov rax, qword [rbp + 0x150]
cmp qword [rax], 0
je 0x14017b903
lea rcx, [rbp + 8]
call fcn.1400a581e
nop
jmp 0x14017b91c
mov rax, qword [rbp + 0x150]
mov dword [rax + 8], 0
mov ecx, 6
call fcn.1400a451d
nop
lea rcx, [rbp + 8]
call fcn.1400a567f
nop
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400a7dda
mov rcx, qword [rbp + 0x120]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret
Function at 0x1400a4469
Capabilities:
Set socket configuration

Disassembly:
jmp 0x140109c50
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x198
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1b8]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x160], rax
lea rcx, [0x140283783]
call fcn.1400a8dd4
nop
movzx ecx, byte [rbp + 0x198]
call fcn.1400a6926
mov r8d, 6
mov edx, 1
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 0x190]
mov qword [rcx], rax
mov rax, qword [rbp + 0x190]
cmp qword [rax], 0xffffffffffffffff
jne 0x140109d18
call fcn.1400a97bb
mov qword [rbp + 0x158], rax
call fcn.1400a82f8
lea r9, str.Failed_to_create_socket
mov rcx, qword [rbp + 0x158]
mov r8, rcx
mov edx, eax
lea rcx, [rbp + 0xe8]
call fcn.1400a77e0
lea rdx, [0x140256708]
lea rcx, [rbp + 0xe8]
call fcn.1400a96e9
nop
mov dword [rbp + 4], 1
lea r8, [rbp + 4]
mov edx, 0x8004667e
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140109d8e
mov rcx, qword [rbp + 0x190]
call fcn.1400a620f
nop
call fcn.1400a97bb
mov qword [rbp + 0x158], rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.Failed_to_get_socket_flags
mov rcx, qword [rbp + 0x158]
mov r8, rcx
mov edx, eax
lea rcx, [rbp + 0x128]
call fcn.1400a77e0
lea rdx, [0x140256708]
lea rcx, [rbp + 0x128]
call fcn.1400a96e9
nop
mov rax, qword [rbp + 0x190]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400a7dda
mov rax, rdi
mov rcx, qword [rbp + 0x160]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400a4a1d
Capabilities:
Convert ip address from string

Disassembly:
jmp 0x14016c750
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x298
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, WSAGetLastError
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2b8]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x268], rax
lea rcx, [0x1402837e0]
call fcn.1400a8dd4
nop
mov byte [rbp + 4], 0
mov dword [rbp + 0x24], 2
mov qword [rbp + 0x98], 0
mov rax, qword [rbp + 0x290]
add rax, 8
mov rcx, rax
call fcn.1400a37c6
lea r8, [rbp + 0x48]
mov rdx, rax
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14016c7f2
mov dword [rbp + 0x24], 7
mov qword [rbp + 0x98], reloc.WS2_32.dll_recv
jmp 0x14016c82d
mov rax, qword [rbp + 0x290]
add rax, 8
mov rcx, rax
call fcn.1400a37c6
lea r8, [rbp + 0x74]
mov rdx, rax
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x14016c82d
mov dword [rbp + 0x24], 7
mov qword [rbp + 0x98], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x55
mov rcx, qword [rbp + 0x298]
call fcn.1400a4d56
mov qword [rbp + 0xb8], rax
cmp qword [rbp + 0xb8], 0
je 0x14016c9ba
mov byte [rbp + 0xd4], 0
mov byte [rbp + 0xf4], 0
mov rcx, qword [rbp + 0xb8]
call fcn.14016e920
mov rcx, rax
call fcn.1400a85ff
mov dword [rbp + 0x114], eax
mov dword [rbp + 0x134], 0
jmp 0x14016c89b
mov eax, dword [rbp + 0x134]
inc eax
mov dword [rbp + 0x134], eax
mov eax, dword [rbp + 0x114]
cmp dword [rbp + 0x134], eax
jge 0x14016c9a0
movzx eax, byte [rbp + 0xd4]
test eax, eax
jne 0x14016c9a0
mov rcx, qword [rbp + 0xb8]
call fcn.14016e920
mov edx, dword [rbp + 0x134]
mov rcx, rax
call fcn.1400a415d
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x158]
mov ecx, dword [rbp + 0x24]
cmp dword [rax], ecx
jne 0x14016c99b
mov rax, qword [rbp + 0x158]
mov rcx, qword [rax + 8]
call fcn.1400a94d2
mov qword [rbp + 0x178], rax
mov rax, qword [rbp + 0x158]
mov rcx, qword [rax + 8]
call fcn.1400a4ca7
cdqe
mov qword [rbp + 0x198], rax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x264], eax
cmp dword [rbp + 0x264], 2
je 0x14016c93c
cmp dword [rbp + 0x264], 7
je 0x14016c95e
jmp 0x14016c99b
mov r8, qword [rbp + 0x198]
mov rdx, qword [rbp + 0x178]
mov rcx, qword [rbp + 0x290]
call fcn.1400a7b64
mov byte [rbp + 0xd4], al
jmp 0x14016c99b
mov r8, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x178]
lea rcx, [rbp + 0x48]
call fcn.1400a5378
test eax, eax
je 0x14016c994
mov r8, qword [rbp + 0x98]
mov rdx, qword [rbp + 0x178]
lea rcx, [rbp + 0x74]
call fcn.1400a5378
test eax, eax
jne 0x14016c99b
mov byte [rbp + 0xf4], 1
jmp 0x14016c88d
movzx eax, byte [rbp + 0xd4]
test eax, eax
jne 0x14016c9b6
movzx eax, byte [rbp + 0xf4]
test eax, eax
je 0x14016c9ba
mov byte [rbp + 4], 1
mov rcx, qword [rbp + 0xb8]
call fcn.1400a6e62
nop
movzx eax, byte [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_bind
call fcn.1400a7dda
mov eax, edi
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret
Function at 0x1400a4d1a
Capabilities:
Get socket status

Disassembly:
jmp 0x14011c040
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xf8
lea rbp, [rsp + 0x30]
lea rcx, [0x1402837e0]
call fcn.1400a8dd4
nop
mov rax, qword [rbp + 0xe0]
mov rax, qword [rax]
mov rax, qword [rax]
inc rax
mov rcx, qword [rbp + 0xe0]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0xe0]
mov r9, qword [rcx + 0x18]
mov rcx, qword [rbp + 0xe0]
mov r8, qword [rcx + 0x10]
mov rcx, qword [rbp + 0xe0]
mov rdx, qword [rcx + 8]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_select]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400a5e09
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x1401977b0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x140283b9f]
call fcn.1400a8dd4
nop
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x1401977f5
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x140197886
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x14019784b
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140197855
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1401977ea
mov qword [rbp + 0x88], 0xe3
jmp 0x1401978a4
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x14019794d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x140197909
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140197913
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140197893
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x1401979ad
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x1401979b7
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1400a60d9
Capabilities:
Set socket configuration

Disassembly:
jmp 0x1400c59f0
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x138
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, reloc.WS2_32.dll_select
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x158]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0xf8], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.1400a8dd4
nop
mov dword [rbp + 4], 0xffffffff
mov eax, dword [rbp + 0x128]
mov dword [rbp + 0xf4], eax
mov eax, dword [rbp + 0xf4]
dec eax
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 8
ja case.0x1400c5a89.7
movsxd rax, dword [rbp + 0xf4]
lea rcx, [0x140000000]
mov eax, dword [rcx + rax*4 + 0xc5c40]
add rax, rcx
jmp rax
mov eax, dword [rbp + 0x130]
mov dword [rbp + 0x24], eax
lea r8, [rbp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1006
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 0x1005
mov edx, 0xffff
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
jmp case.0x1400c5a89.7
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0x130]
mov r8d, 1
mov edx, 6
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0xffffffff
jne 0x1400c5c02
mov dword [rbp + 0xf4], 0xffffffff
jmp 0x1400c5c0c
mov dword [rbp + 0xf4], 0
mov eax, dword [rbp + 0xf4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400a7dda
mov eax, edi
mov rcx, qword [rbp + 0xf8]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x1400a645d
Capabilities:
Terminate process

Disassembly:
jmp 0x1401b8460
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x1400a6b0b
Capabilities:
Resolve dns

Disassembly:
jmp 0x140154450
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x6c8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x112
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x6e8]
mov rax, qword [0x1402571c0]
xor rax, rbp
mov qword [rbp + 0x670], rax
lea rcx, [0x1402837e0]
call fcn.1400a8dd4
nop
mov rax, qword [rbp + 0x6a0]
movzx eax, word [rax]
cmp eax, 2
jne 0x1401544d6
mov rax, qword [rbp + 0x6a0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rbp + 0x6b8]
mov dword [rcx], eax
jmp 0x14015450b
mov rax, qword [rbp + 0x6a0]
movzx eax, word [rax]
cmp eax, 0x17
jne 0x140154504
mov rax, qword [rbp + 0x6a0]
movzx ecx, word [rax + 2]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov rcx, qword [rbp + 0x6b8]
mov dword [rcx], eax
jmp 0x14015450b
xor al, al
jmp 0x140154590
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x401
rep stosb byte [rdi], al
lea rcx, [rbp + 0x10]
call fcn.1400a9013
mov qword [rbp + 0x668], rax
lea rcx, [rbp + 0x10]
call fcn.1400a5837
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0x668]
mov r9d, ecx
mov r8, rax
mov edx, dword [rbp + 0x6a8]
mov rcx, qword [rbp + 0x6a0]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x140154575
xor al, al
jmp 0x140154590
lea rcx, [rbp + 0x10]
call fcn.1400a5837
mov rdx, rax
mov rcx, qword [rbp + 0x6b0]
call fcn.1400a3307
nop
mov al, 1
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, reloc.WS2_32.dll_accept
call fcn.1400a7dda
mov rax, rdi
mov rcx, qword [rbp + 0x670]
xor rcx, rbp
call fcn.1400a5d78
lea rsp, [rbp + 0x688]
pop rdi
pop rbp
ret

Function at 0x1400a6c78
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401e4530
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov r9d, 2
lea r8, [rsp + 0x40]
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
jne 0x1401e456d
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x60]
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
mov edx, eax
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
call fcn.1400a8d8e
add rsp, 0x58
ret