joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009fb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e8
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
mov rax, qword [rsp + 0x280]
mov rsi, qword [rsp + 0x250]
mov rbp, qword [rsp + 0x258]
mov r12, qword [rsp + 0x260]
mov r13, qword [rsp + 0x268]
mov r14, qword [rsp + 0x270]
mov r15, qword [rsp + 0x278]
mov qword [rsp + 0x70], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
mov rdi, r9
mov rbx, r8
mov qword [rsp + 0x48], rdx
call fcn.140177280
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.14017a160
test rax, rax
mov rbx, rax
mov qword [rsp + 0x40], rax
je 0x14000a237
lea rdx, [rsp + 0x3c]
mov r8d, 1
mov rcx, rdi
call fcn.140175510
lea rdx, [rsp + 0x34]
mov r8d, 0x10000
mov rcx, rsi
mov rdi, rax
mov qword [rsp + 0x90], rax
call fcn.140175510
lea rdx, [rsp + 0x2c]
xor r8d, r8d
mov rcx, rbp
mov rsi, rax
mov qword [rsp + 0x58], rax
call fcn.140175510
lea rdx, [rsp + 0x24]
mov r8d, 2
mov rcx, r12
mov rbp, rax
mov qword [rsp + 0x60], rax
call fcn.140175510
lea rdx, [rsp + 0x20]
xor r8d, r8d
mov rcx, r13
mov r12, rax
mov qword [rsp + 0x68], rax
call fcn.140175510
lea rdx, [rsp + 0x38]
mov r8d, 3
mov rcx, r14
mov r13, rax
mov qword [rsp + 0x78], rax
call fcn.140175510
lea rdx, [rsp + 0x28]
mov r8d, 6
mov rcx, r15
mov r14, rax
mov qword [rsp + 0x88], rax
call fcn.140175510
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov r15, rax
mov qword [rsp + 0x98], rax
call fcn.140175510
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xb8]
cmp byte [rax], 0
mov qword [rsp + 0x80], rax
je 0x14000a216
mov r15d, dword [rsp + 0x30]
mov r14d, dword [rsp + 0x28]
mov r13d, dword [rsp + 0x38]
mov r12d, dword [rsp + 0x20]
mov ebp, dword [rsp + 0x24]
mov esi, dword [rsp + 0x2c]
mov edi, dword [rsp + 0x34]
mov ebx, dword [rsp + 0x3c]
mov ecx, 0x38
call fcn.1400cf700
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0xa0], rax
call fcn.14016dcf0
mov rcx, qword [rsp + 0xa0]
mov dword [rcx + 0x20], esi
mov rsi, qword [rsp + 0x70]
mov dword [rcx + 0x1c], edi
mov rdi, qword [rsp + 0x48]
mov qword [rcx], rax
mov dword [rcx + 0x18], ebx
mov byte [rcx + 0x24], bpl
mov dword [rcx + 0x30], r12d
mov dword [rcx + 0x34], r13d
mov dword [rcx + 0x28], r14d
mov dword [rcx + 0x2c], r15d
cmp qword [rsi], 0
je 0x14000a1cf
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov rax, qword [rdi]
mov qword [rcx + 0x10], rax
jmp 0x14000a1da
mov qword [rsi], rcx
mov qword [rcx + 0x10], 0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
mov r13, qword [rsp + 0x78]
mov r14, qword [rsp + 0x88]
mov r15, qword [rsp + 0x98]
mov qword [rcx + 8], 0
mov qword [rdi], rcx
mov rdi, qword [rsp + 0x90]
lea rcx, [rsp + 0xb0]
mov rdx, rbx
call fcn.14017a160
test rax, rax
mov rbx, rax
mov qword [rsp + 0x40], rax
jne 0x14000a051
lea rcx, [rsp + 0xb0]
call fcn.14017d580
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x1e8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1400b3650
Capabilities:
Read file on windows

Disassembly:
mov r8, rdx
mov rdx, rcx
mov rcx, qword [rcx]
cmp dword [rcx + 0x470], 0
je 0x1400b36a4
mov rax, qword [rdx + 8]
mov r10d, dword [rax + 0xe0]
cmp r10d, 0xffffffff
je 0x1400b3689
mov rcx, qword [rcx + 0x4d0]
mov r9, r8
mov r8, qword [rdx + 0x18]
mov edx, r10d
jmp 0x1400eab30
mov rcx, qword [rax + 0x70]
cmp rcx, 0xffffffffffffffff
je 0x1400b369c
mov rdx, qword [rdx + 0x18]
jmp fcn.1400cfc60
mov rcx, r8
jmp fcn.1400bf9b0
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
jne 0x1400b3697
mov rcx, qword [rax]
mov rcx, qword [rcx + 0x4d0]
jmp 0x1400ea050
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x30
mov rbx, r8
mov r9d, 8
lea r8, [rsp + 0x48]
lea edx, [r9 + 0xe]
mov dword [rsp + 0x28], 0x28
mov qword [rsp + 0x20], rbx
call fcn.1400e9e80
test eax, eax
jne 0x1400ea08a
mov rcx, rbx
call fcn.1400bf9b0
add rsp, 0x30
pop rbx
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rbp, r9
mov rbx, rcx
mov dword [rsp + 0x20], edx
mov qword [rsp + 0x28], r8
call fcn.1400b4140
cmp dword [0x14020e118], 0
mov r12d, eax
je 0x1400eab7b
mov edx, 0x23
lea rcx, str._service_client_ioctrl__u__s__u_r__u_n
lea r9d, [rdx + 5]
lea r8d, [rdx - 0x13]
call fcn.1400b3fb0
mov edi, 6
lea r8, [rsp + 0x20]
mov rcx, rbx
lea r9d, [rdi + 0xa]
lea edx, [rdi + 0x1d]
xor esi, esi
call fcn.1400e8ff0
test rax, rax
mov rbx, rax
je 0x1400eac16
cmp dword [0x14020e118], esi
je 0x1400eabc0
call fcn.1400b4140
mov edx, dword [rbx + 4]
lea rcx, str._service_client_ioctrl_reply__d_in__f_seconds_n
sub eax, r12d
mov r8d, eax
call fcn.1400b3fb0
mov eax, dword [rbx + 4]
test eax, eax
jne 0x1400eabf4
mov eax, dword [rbx]
lea r8, [rax - 8]
cmp r8, 0x28
ja 0x1400eabed
add eax, 0xfffffff8
lea rdx, [rbx + 8]
mov rcx, rbp
mov dword [rsp + 0x58], eax
call fcn.1401a8fe0
mov esi, 1
jmp 0x1400eac01
mov edi, 0x7a
jmp 0x1400eac01
cmp eax, 5
jne 0x1400eac01
cmp dword [rbx], 0xc
jb 0x1400eac01
mov edi, dword [rbx + 8]
mov rcx, rbx
call fcn.1400cf780
test esi, esi
je 0x1400eac16
cmp dword [rsp + 0x58], 0x28
je 0x1400eac3d
jmp 0x1400eac35
cmp dword [0x14020e118], 0
je 0x1400eac2d
lea rcx, str.set_last_error__d_n
mov edx, edi
call fcn.1400b3fb0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call fcn.1400bf9b0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1400b4010
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x158
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
call fcn.140177280
lea rcx, [rsp + 0x20]
call fcn.14017a4c0
lea rcx, str.Everything_n
call fcn.1400b3fb0
mov rdx, qword [rsp + 0x28]
lea rcx, str.Version__s_n
call fcn.1400b3fb0
cmp byte [0x14020e200], 0
mov r9d, dword [0x14020e208]
mov r8d, dword [0x14020e204]
lea rax, [0x1401b8ef4]
lea rdx, [0x1401b0f62]
lea rcx, str.Windows_s__d._d_n
cmovne rdx, rax
call fcn.1400b3fb0
mov edx, dword [0x14020e20c]
lea rcx, str.Processors__d_n
call fcn.1400b3fb0
call fcn.1400db310
lea rcx, str.IsAdmin__d_n
mov edx, eax
call fcn.1400b3fb0
movsx edx, byte [0x14020df38]
lea rcx, str.AppData__d_n
call fcn.1400b3fb0
call fcn.140144c90
lea rcx, str.Service__d_n
mov edx, eax
call fcn.1400b3fb0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea rcx, str.cmdline__S_n
mov rdx, rax
call fcn.1400b3fb0
lea rcx, [rsp + 0x20]
call fcn.14017d580
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x158
ret

Function at 0x1400b4180
Capabilities:
Access the windows event log
Terminate process

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x3a0
mov rbx, rcx
lea rcx, [rsp + 0x60]
mov rsi, r8
mov edi, edx
call fcn.140177280
lea rcx, [rsp + 0x180]
call fcn.140177280
mov rdx, qword [rsp + 0x3d8]
lea r8, [rsp + 0x3e0]
lea rcx, [rsp + 0x180]
call fcn.140178900
mov r11, qword [rsp + 0x188]
lea rdx, str._s__d_:__s__:_Fatal_error:__s
mov qword [rsp + 0x28], r11
lea rcx, [rsp + 0x60]
mov r9d, edi
mov r8, rbx
mov qword [rsp + 0x20], rsi
call fcn.1401789a0
lea rcx, [rsp + 0x180]
call fcn.14017d580
mov rdx, qword [rsp + 0x68]
lea rcx, [0x1401b78f4]
call fcn.1400b3fb0
cmp dword [0x14020e430], 0
je 0x1400b42a4
lea rcx, [rsp + 0x180]
call fcn.140177280
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x180]
call fcn.14017d850
lea rdx, [0x1401b8f18]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
test rax, rax
mov rbx, rax
je 0x1400b4295
xor ecx, ecx
lea rax, [rsp + 0x188]
xor r9d, r9d
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rbx
mov dx, 1
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea rcx, [rsp + 0x180]
call fcn.14017d580
jmp 0x1400b4300
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rcx, [0x1400b3ad0]
call fcn.1400dc680
test rax, rax
mov rbx, rax
je 0x1400b42d9
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400b4300
mov r8, qword [0x140200708]
mov rax, qword [rsp + 0x68]
lea r9, [0x1401b4760]
mov r8, qword [r8]
mov edx, reloc.WS2_32.dll_recv
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1400d5b60
lea rcx, [rsp + 0x60]
call fcn.14017d580
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400b44d0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x470
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov ebx, ecx
lea rcx, [0x14020e0e8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1401ffb90], 0xffffffffffffffff
jne 0x1400b459c
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rax, str.Everything_Service_Debug_Log.txt
lea r8, str.Everything_Debug_Log.txt
test ebx, ebx
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
cmovne r8, rax
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
xor ebx, ebx
lea rcx, [rsp + 0x250]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x1401ffb90], rax
je 0x1400b459c
cmp dword [0x14020e110], ebx
jne 0x1400b4592
test rax, rax
jne 0x1400b4592
mov dword [0x14020e114], ebx
jmp 0x1400b459c
mov dword [0x14020e114], 1
lea rcx, [0x14020e0e8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401a8fb0
add rsp, 0x470
pop rbx
ret
Function at 0x1400b7e80
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor esi, esi
mov qword [rsp + 0x30], rbx
cmp dword [rdi + 0x1c8], esi
jne 0x1400b7eb1
mov rax, qword [rdi + 0x1b8]
test rax, rax
je 0x1400b7f10
mov eax, dword [rax + 8]
mov dword [rdi + 0x1c8], eax
mov rdx, qword [rdi + 0x1b8]
movsxd r8, dword [rdi + 0x1c8]
xor r9d, r9d
movsxd rcx, dword [rdx + 8]
sub rcx, r8
lea rdx, [rcx + rdx + 0x10]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b7f39
test eax, eax
je 0x1400b7f27
sub dword [rdi + 0x1c8], eax
jne 0x1400b7e94
mov rax, qword [rdi + 0x1b8]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400cf780
test rbx, rbx
mov qword [rdi + 0x1b8], rbx
jne 0x1400b7e94
mov qword [rdi + 0x1c0], rsi
jmp 0x1400b7e94
cmp dword [rdi + 0xe4], esi
je 0x1400b7f46
mov rcx, qword [rdi + 8]
mov edx, 1
call qword [sym.imp.WS2_32.dll_shutdown]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b7f27
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret
Function at 0x1400b9880
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xf0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov rbx, rcx
call fcn.1400b8df0
cmp dword [rbx + 0xd0], 0
mov eax, reloc.WS2_32.dll_socket
mov edi, 2
cmovne edi, eax
lea edx, [rax - 0x16]
lea r8d, [rax - 0x11]
mov ecx, edi
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov qword [rbx + 0x1d8], rax
je 0x1400b9a61
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov r8d, 1
mov rcx, rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rdx, qword [0x14020e120]
mov rcx, qword [rbx + 0x1d8]
mov rdx, qword [rdx + 0x20]
mov r9d, 0x28
mov r8d, 0x402
call qword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov rcx, qword [rbx + 0x1d8]
xor eax, eax
cmp edi, 0x17
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
jne 0x1400b9959
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x38], di
lea r8d, [rax + 0x1c]
lea rdx, [rsp + 0x38]
jmp 0x1400b996b
mov word [rsp + 0x38], 2
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1400b9a4a
mov rcx, qword [rbx + 0x1d8]
mov edx, 0x7fffffff
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1400b9a33
mov rcx, qword [rbx + 0x1d8]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x30], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1400b9a1c
movzx eax, word [rsp + 0x60]
cmp ax, 0x17
je 0x1400b99ca
cmp ax, 2
jne 0x1400b9a05
movzx eax, word [rsp + 0x62]
test eax, eax
je 0x1400b9a05
movzx ecx, ax
call qword [sym.imp.WS2_32.dll_ntohs]
lea rdx, str.229_Entering_Extended_Passive_Mode___d__r_n
mov rcx, rbx
movzx r8d, ax
call fcn.1400b8410
mov dword [rbx + 0x1cc], 2
mov dword [rbx + 0x1d0], 1
jmp 0x1400b9a81
mov rcx, rbx
call fcn.1400b8df0
movsx r8d, word [rsp + 0x60]
lea rdx, str.500_Failed_to_enter_passive_mode__invalid_family__d_r_n
jmp 0x1400b9a79
mov rcx, rbx
call fcn.1400b8df0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__getsockname_failed__d_r_n
jmp 0x1400b9a76
mov rcx, rbx
call fcn.1400b8df0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__socket_listen__d_r_n
jmp 0x1400b9a76
mov rcx, rbx
call fcn.1400b8df0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__bind_failed__d_r_n
jmp 0x1400b9a76
mov rcx, rbx
call fcn.1400b8df0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_Failed_to_enter_passive_mode__socket_failed__d_r_n
mov r8d, eax
mov rcx, rbx
call fcn.1400b8410
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0x108]
add rsp, 0xf0
pop rdi
ret
Function at 0x1400bb6c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xc0
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rbx, rcx
mov ecx, 0x2d0
call fcn.1400cf700
xor edx, edx
mov r8d, 0x2d0
mov rcx, rax
mov rdi, rax
call fcn.1401a9330
mov qword [rdi + 8], rbx
xor ebx, ebx
mov dword [rdi + 0xb8], ebx
call fcn.1400f3d60
lea r8, [0x1400b9840]
mov r9, rdi
xor edx, edx
mov rcx, rax
call fcn.140017000
lea rcx, [0x1401b0f62]
mov qword [rdi + 0x90], rax
call fcn.14016dcf0
lea rcx, [0x1401b0f62]
mov qword [rdi + 0x260], 0xffffffffffffffff
mov dword [rdi + 0xd0], ebx
mov dword [rdi + 0x258], ebx
mov qword [rdi + 0xd8], rax
call fcn.14016dcf0
lea rcx, [0x1401b0f62]
mov qword [rdi + 0x100], rax
call fcn.14016dcf0
lea rcx, [0x1401b0f62]
mov qword [rdi + 0x108], rax
mov dword [rdi + 0x114], ebx
call fcn.14016dcf0
lea rcx, [0x1401b0f62]
mov qword [rdi + 0x158], rax
call fcn.14016dcf0
mov rcx, qword [rdi + 8]
lea rdx, [rdi + 0x10]
lea r8, [rsp + 0x20]
mov qword [rdi + 0x160], rax
mov dword [rdi + 0x16c], ebx
mov dword [rdi + 0xe0], 1
mov dword [rdi + 0x11c], 0xffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getpeername]
mov rcx, qword [rdi + 8]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
cmp word [rsp + 0x30], 0x17
jne 0x1400bb80a
mov dword [rdi + 0xd0], 1
mov rax, qword [0x14020e120]
cmp qword [rax + 0x10], rbx
je 0x1400bb836
mov rax, qword [rax + 0x18]
mov qword [rax + 0xc0], rdi
mov rax, qword [0x14020e120]
mov rcx, qword [rax + 0x18]
mov qword [rdi + 0xc8], rcx
jmp 0x1400bb841
mov qword [rax + 0x10], rdi
mov qword [rdi + 0xc8], rbx
mov qword [rdi + 0xc0], rbx
mov rax, qword [0x14020e120]
lea rdx, str.Connected._r_n
mov rcx, rdi
mov qword [rax + 0x18], rdi
call fcn.1400b81e0
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1401a8fb0
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rdi
ret
Function at 0x1400bca70
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
xor r15d, r15d
nop
nop
nop
nop
mov rax, qword [rdi + 0x1a8]
cmp qword [rdi + 0x1a0], rax
jne 0x1400bcb03
mov ecx, 0x10000
call fcn.1400cf700
cmp qword [rdi + 0x190], r15
mov r11, rax
je 0x1400bcad2
mov rax, qword [rdi + 0x198]
mov qword [rax], r11
jmp 0x1400bcad9
mov qword [rdi + 0x190], rax
mov qword [r11], r15
add dword [rdi + 0x1b0], 1
lea rax, [r11 + 0x10000]
mov qword [rdi + 0x1a8], rax
lea rax, [r11 + 8]
mov qword [rdi + 0x198], r11
mov qword [rdi + 0x1a0], rax
mov r8d, dword [rdi + 0x1a8]
mov rdx, qword [rdi + 0x1a0]
mov rcx, qword [rdi + 8]
sub r8d, dword [rdi + 0x1a0]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd r13, eax
cmp r13d, 0xffffffff
je 0x1400bccd0
test eax, eax
je 0x1400bcccc
mov rsi, qword [rdi + 0x1a0]
mov rbx, r15
lea rax, [rsi + r13]
mov qword [rdi + 0x1a0], rax
nop
cmp byte [rsi], 0xa
jne 0x1400bcc72
test rbx, rbx
mov byte [rsi], r15b
je 0x1400bcb78
mov rdx, rbx
mov rcx, rdi
call fcn.1400bc190
add rsi, 1
mov rbx, rsi
jmp 0x1400bcc76
mov ecx, dword [rdi + 0x1b0]
cmp ecx, 1
jne 0x1400bcba2
mov rdx, qword [rdi + 0x198]
mov rcx, rdi
add rdx, 8
call fcn.1400bc190
add rsi, 1
mov rbx, rsi
jmp 0x1400bcc76
mov eax, esi
sub eax, dword [rdi + 0x198]
sub eax, 8
movsxd rdx, eax
lea eax, [rcx - 1]
movsxd rcx, eax
imul rcx, rcx, 0xfff8
lea rcx, [rdx + rcx + 1]
call fcn.1400cf700
mov rbp, qword [rdi + 0x190]
cmp rbp, qword [rdi + 0x198]
mov r14, rax
mov r12, rax
je 0x1400bcc11
nop
mov rbx, qword [rbp]
lea rdx, [rbp + 8]
mov r8d, 0xfff8
mov rcx, r12
call fcn.1401a8fe0
mov rcx, rbp
add r12, 0xfff8
call fcn.1400cf780
cmp rbx, qword [rdi + 0x198]
mov rbp, rbx
jne 0x1400bcbe0
mov rdx, qword [rdi + 0x198]
mov eax, esi
mov rcx, r12
sub eax, dword [rdi + 0x198]
add rdx, 8
sub eax, 8
movsxd r8, eax
call fcn.1401a8fe0
sub r12, qword [rdi + 0x198]
mov rdx, r14
mov byte [r12 + rsi - 8], r15b
mov rax, qword [rdi + 0x198]
mov rcx, rdi
mov qword [rdi + 0x190], rax
mov dword [rdi + 0x1b0], 1
call fcn.1400bc190
mov rcx, r14
call fcn.1400cf780
add rsi, 1
mov rbx, rsi
jmp 0x1400bcc76
add rsi, 1
sub r13d, 1
jne 0x1400bcb50
test rbx, rbx
je 0x1400bcaa0
mov eax, dword [rdi + 0x1a0]
mov rcx, qword [rdi + 0x198]
mov rdx, rbx
sub eax, ebx
add rcx, 8
movsxd r8, eax
call fcn.1401a8fe0
mov r11d, dword [rdi + 0x1a0]
mov rax, qword [rdi + 0x198]
sub r11d, ebx
movsxd rcx, r11d
lea rcx, [rcx + rax + 8]
mov qword [rdi + 0x1a0], rcx
jmp 0x1400bcaa0
xor eax, eax
jmp 0x1400bcce2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
sete r15b
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400be010
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x40
mov r14, rdx
xor edi, edi
mov r12d, r9d
lea edx, [rdi + 1]
mov r13, r8
call fcn.1400d5550
cmp rax, 0xffffffffffffffff
mov rbp, rax
je 0x1400be0d7
lea rdx, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x68], rsi
call fcn.1400d76d0
test eax, eax
je 0x1400be0c9
mov qword [rsp + 0x60], rbx
mov rbx, qword [rsp + 0x38]
test ebx, ebx
jle 0x1400be0b5
movsxd rcx, ebx
call fcn.1400cf750
test rax, rax
mov rsi, rax
je 0x1400be0c4
lea r9, [rsp + 0x30]
mov r8d, ebx
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400be0ab
cmp dword [rsp + 0x30], ebx
jne 0x1400be0ab
mov r9d, r12d
mov r8, r13
mov edx, ebx
mov rcx, rsi
call r14
mov edi, eax
mov rcx, rsi
call fcn.1400cf780
jmp 0x1400be0c4
mov r9d, r12d
mov r8, r13
xor edx, edx
xor ecx, ecx
call r14
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret

Function at 0x1400be0f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
lea edx, [rdi + 1]
call fcn.1400d5550
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400be1b3
lea r9, [rsp + 0x30]
lea r8d, [rdi + 0x1a]
lea rdx, [rsp + 0x38]
mov rcx, rax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400be1aa
cmp dword [rsp + 0x30], 0x1a
jne 0x1400be1aa
mov eax, dword [rsp + 0x38]
and eax, 0xffffff00
cmp eax, 0x474e5000
jne 0x1400be1aa
cmp dword [rsp + 0x44], 0x52444849
jne 0x1400be1aa
mov eax, dword [rsp + 0x48]
movzx ecx, byte [rsp + 0x51]
cmp cl, 2
bswap eax
mov dword [rbx], eax
mov eax, dword [rsp + 0x4c]
bswap eax
mov dword [rbx + 4], eax
movzx eax, byte [rsp + 0x50]
mov dword [rbx + 8], eax
je 0x1400be19f
cmp cl, 4
je 0x1400be19b
cmp cl, 6
jne 0x1400be1a5
shl eax, 2
jmp 0x1400be1a2
add eax, eax
jmp 0x1400be1a2
lea eax, [rax + rax*2]
mov dword [rbx + 8], eax
mov edi, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401a8fb0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400be1e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
xor ebx, ebx
lea edx, [rbx + 1]
call fcn.1400d5550
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400be258
lea r9, [rsp + 0x70]
lea r8d, [rbx + 0x1e]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400be24f
cmp dword [rsp + 0x70], 0x1e
jne 0x1400be24f
cmp word [rsp + 0x30], 0x4d42
jne 0x1400be24f
mov eax, dword [rsp + 0x42]
mov ebx, 1
mov dword [rdi], eax
mov eax, dword [rsp + 0x46]
mov dword [rdi + 4], eax
movzx eax, word [rsp + 0x4c]
mov dword [rdi + 8], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1400be4d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
xor ebx, ebx
lea edx, [rbx + 1]
call fcn.1400d5550
cmp rax, 0xffffffffffffffff
mov rsi, rax
je 0x1400be55b
lea r9, [rsp + 0x60]
lea r8d, [rbx + 0xa]
lea rdx, [rsp + 0x30]
mov rcx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400be552
cmp dword [rsp + 0x60], 0xa
jne 0x1400be552
cmp dword [rsp + 0x30], 0x38464947
jne 0x1400be552
movzx eax, word [rsp + 0x34]
cmp ax, 0x6139
je 0x1400be537
cmp ax, 0x6137
jne 0x1400be552
movzx eax, word [rsp + 0x36]
mov dword [rdi + 8], 8
mov ebx, 1
mov dword [rdi], eax
movzx eax, word [rsp + 0x38]
mov dword [rdi + 4], eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret