joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140a550f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rbp, rdx
mov esi, r8d
mov edx, 0x48
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x140a55129
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
lea rcx, [rbx + 0x18]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.WS2_32.dll_send]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 0x48
mov rcx, rbx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x140a5516d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x30]
mov eax, esi
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret

Function at 0x140a55190
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x140a924c0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rax, qword [0x140a8cd10]
xor r14d, r14d
mov dword [rsp + 0x78], r14d
mov ebp, r8d
mov qword [rsp + 0x48], rax
mov rbx, rdx
mov rdi, rcx
test al, al
jne 0x140a5520c
mov dword [rsp + 0x40], r14d
mov eax, dword [rsp + 0x40]
nop word [rax + rax]
movsxd rax, dword [rsp + 0x40]
mov edx, dword [rsp + 0x40]
add edx, 0x79
xor edx, dword [rsp + rax*4 + 0x4c]
movsxd rax, dword [rsp + 0x40]
mov dword [rsp + rax*4 + 0x4c], edx
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
cmp eax, 1
jb 0x140a551e0
mov eax, dword [rsp + 0x4c]
lea r9, [0x1415fa900]
xor edx, edx
mov r8d, 0x1000
mov rcx, rbx
call qword [r9 + rax*8]
xorps xmm0, xmm0
mov dword [rdi + 8], r14d
xor r9d, r9d
mov qword [rsp + 0x48], 0x1000
xor r8d, r8d
mov qword [rsp + 0x50], rbx
mov edx, 1
mov qword [rsp + 0x58], r14
xor ecx, ecx
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rdi]
lea r9, [rdi + 8]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
mov r8d, 1
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSARecv]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x3e5
jne 0x140a552e8
mov r9d, ebp
lea rdx, [rsp + 0x70]
xor r8d, r8d
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140a552c1
cmp eax, 0x102
jne 0x140a552e8
jmp 0x140a552e0
mov rcx, qword [rdi]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rdi + 8]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140a552f8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140a79d80
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140a56120
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
mov rbp, rsp
sub rsp, 0x28
mov edx, 0x48
xor ecx, ecx
mov r9d, 4
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x140a5630d
mov rcx, qword [0x140a8ccf8]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [rbp + 0x20], rcx
test cl, cl
jne 0x140a56196
mov dword [rbp + 0x18], edi
mov ecx, dword [rbp + 0x18]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7b
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x140a56170
mov eax, dword [rbp + 0x24]
lea rsi, [0x140000000]
xor edx, edx
mov byte [rbp + 0x20], 1
mov r8d, 0x48
mov rcx, rbx
call qword [rsi + rax*8 + 0x15fa950]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x10], rax
call fcn.140a54450
mov qword [rbx + 0x40], rax
mov rax, qword [0x140a8cd10]
mov qword [rbp + 0x20], rax
test al, al
jne 0x140a56226
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop word [rax + rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7b
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x140a56200
mov eax, dword [rbp + 0x24]
lea r8, [fcn.140a54ea0]
mov rcx, qword [rbx + 0x40]
mov edx, 1
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0x15fafa0]
mov rax, qword [0x140a8ccc0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x140a56286
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop dword [rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7c
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x140a56260
mov eax, dword [rbp + 0x24]
lea r8, [fcn.140a550f0]
mov rcx, qword [rbx + 0x40]
mov edx, 2
mov byte [rbp + 0x20], 1
call qword [rsi + rax*8 + 0x15fad70]
mov rax, qword [0x140a8ccf0]
mov qword [rbp + 0x20], rax
test al, al
jne 0x140a562e6
mov dword [rbp + 0x18], edi
mov eax, dword [rbp + 0x18]
nop dword [rax]
movsxd rax, dword [rbp + 0x18]
mov edx, dword [rbp + 0x18]
add edx, 0x7d
xor edx, dword [rbp + rax*4 + 0x24]
movsxd rax, dword [rbp + 0x18]
mov dword [rbp + rax*4 + 0x24], edx
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
cmp eax, 1
jb 0x140a562c0
mov eax, dword [rbp + 0x24]
lea r8, [fcn.140a55190]
mov rcx, qword [rbx + 0x40]
mov edx, 3
call qword [rsi + rax*8 + 0x15fad70]
mov rdi, qword [rsp + 0x20]
mov rax, rbx
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop rbx
pop rbp
ret
Function at 0x140a57b80
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov eax, eax
mov esi, 0xffffffff
cmp rax, rsi
jne 0x140a57bdb
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x140a57bc6
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
cmp rax, rsi
jne 0x140a57bdb
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov dword [rdi + 4], eax
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x140a57d20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x20
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
xor ebx, ebx
test eax, eax
setne bl
test eax, eax
je 0x140a57d63
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140a5b6b0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140a57d70
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x2d0], ebx
je 0x140a57e83
lea r9, [rax + 8]
mov dword [rax + 8], 1
mov edx, 0xffff
mov dword [rax - 0x58], 4
lea r8d, [rbx + 8]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140a57de9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, eax
lea rdx, str.setsockopt_SO_KEEPALIVE_1_failed_with_error__d_n
lea ecx, [rbx + 1]
call fcn.140a5b6b0
lea eax, [rbx + 1]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
imul eax, dword [rsi + 0x2d0], 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rbx
mov r9d, ntohs
mov qword [rsp + 0x38], rbx
mov edx, 0x98000004
mov rcx, rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], eax
imul eax, dword [rsi + 0x2d8], 0x3e8
mov dword [rsp + 0x60], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140a57e83
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, dword [rsp + 0x60]
lea rdx, str.WSAIoctl_SIO_KEEPALIVE_VALS_1__lu__lu_failed_with_error__d_n
mov r8d, dword [rsp + 0x5c]
mov ecx, 1
mov dword [rsp + 0x20], eax
call fcn.140a5b6b0
mov eax, 1
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rcx, [0x140a86814]
mov dword [rsp + 0x80], 1
call qword [sym.imp.WS2_32.dll_getprotobyname]
mov edx, 6
test rax, rax
je 0x140a57ea9
movsx edx, word [rax + 0x10]
lea r9, [rsp + 0x80]
mov dword [rsp + 0x20], 4
mov r8d, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x98]
mov dword [rsp + 0x98], 1
mov edx, 0x8004667e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
setne bl
test eax, eax
je 0x140a57f0c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.ioctlsocket_FIONBIO_1_failed_with_error__d_n
mov ecx, 1
mov r8d, eax
call fcn.140a5b6b0
lea r11, [rsp + 0x70]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140a57f20
Capabilities:
Get socket status

Disassembly:
mov r11, rsp
sub rsp, 0x248
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
xor eax, eax
mov qword [rsp + 0x38], rcx
mov qword [r11 + 8], rax
inc ecx
lea rax, [r11 + 8]
mov dword [rsp + 0x30], 1
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_select]
add rsp, 0x248
ret
Function at 0x140a5a000
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
call sub.msvcrt.dll__errno
xor ebp, ebp
xor r9d, r9d
mov r8d, ebx
mov dword [rax], ebp
mov rax, qword [rdi + 0x380]
mov rcx, qword [rdi + 0x3f8]
test rax, rax
je 0x140a5a061
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], reloc.WS2_32.dll_recv
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
jmp 0x140a5a06a
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
test ebx, ebx
js 0x140a5a085
jne 0x140a5a081
mov eax, 0xffffffff
jmp 0x140a5a0a9
mov eax, ebx
jmp 0x140a5a0a9
cmp edx, 0x2733
je 0x140a5a0a4
mov eax, 0xffffffff
cmp edx, 0x2714
mov ecx, 0xfffffffc
cmovne ecx, eax
mov eax, ecx
jmp 0x140a5a0a9
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx + 0x380], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x140a5a12b
call fcn.140a58800
mov rdx, qword [rbx + 0x380]
xor r9d, r9d
mov rcx, qword [rbx + 0x3f8]
mov r8d, edi
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
test eax, eax
je 0x140a5a11b
lea rax, [rdx + 0x10]
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x140a5a155
mov qword [rsp + 0x20], rdx
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_sendto]
jmp 0x140a5a155
mov rax, qword [rcx + 0x360]
test byte [rax + 0x2e], 1
je 0x140a5a145
mov ecx, dword [rcx + 0x3f8]
call sub.msvcrt.dll__write
jmp 0x140a5a155
mov rcx, qword [rcx + 0x3f8]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140a5a1ae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140a5a195
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140a5a195
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x140a5a195
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140a5a1a9
or dword [rbx + 0x424], 0x40
mov eax, 0xfffffffc
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
movsx edx, byte [rcx + 0x435]
mov rcx, qword [rcx]
jmp fcn.140a6e4e0
Function at 0x140a6d6b0
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
test byte [rdx + 0xc0], 4
mov rbx, rcx
jne 0x140a6d6eb
mov edx, 0x5f
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140a6d6eb
mov r8d, 0x60
lea rdx, str.unknown
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.140a5f6d0
add rsp, 0x20
pop rbx
ret

Function at 0x140a6e3e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsx rax, byte [rcx + 0x435]
mov esi, 2
imul rbx, rax, 0x138
xor r8d, r8d
mov edx, esi
add rbx, qword [rcx]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2d8], rax
cmp rax, 0xffffffffffffffff
je 0x140a6e4b0
xor r8d, r8d
mov edx, esi
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x2e0], rax
cmp rax, 0xffffffffffffffff
je 0x140a6e4b0
mov ecx, 0x7f000001
mov word [rbx + 0x2a8], si
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rbx + 0x2ac], eax
lea r8d, [rsi + 0xe]
xor eax, eax
lea rdx, [rbx + 0x2a8]
mov word [rbx + 0x2aa], ax
mov rcx, qword [rbx + 0x2d8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x140a6e4b0
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
lea r8, [rsp + 0x30]
mov rcx, qword [rbx + 0x2d8]
lea rdx, [rbx + 0x2a8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x140a6e4b0
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
lea r8, str.lws_plat_pipe_create
mov ecx, 1
lea rdx, str._s:_failed_n
call fcn.140a5b6b0
mov rbx, qword [rsp + 0x38]
mov eax, 1
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x38
movsxd rax, edx
xor r9d, r9d
imul rdx, rax, 0x138
mov dword [rsp + 0x28], reloc.WS2_32.dll_recv
lea r8d, [r9 + 1]
add rcx, rdx
mov byte [rsp + 0x48], 0
lea rdx, [rsp + 0x48]
lea rax, [rcx + 0x2a8]
mov rcx, qword [rcx + 0x2e0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
cmp eax, 1
setne cl
mov eax, ecx
add rsp, 0x38
ret

Function at 0x140a6e540
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140a6e563
add rsp, 0x1c8
ret
mov r8d, eax
lea rdx, str.WSAStartup_failed_with_error:__d_n
mov ecx, 1
call fcn.140a5b6b0
mov eax, 1
add rsp, 0x1c8
ret
Function at 0x140a6fc10
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x150
mov rsi, r8
mov r15, rdx
lea r8, str.nsc_regen
xor edx, edx
mov rbp, r9
mov rbx, rcx
mov edi, 1
call fcn.140a6f6c0
mov r14d, eax
test eax, eax
js 0x140a6fdcb
mov r9, qword [rbx + 0x28]
lea r8, str._s.tmp
lea edx, [rdi + 0x7f]
lea rcx, [rsp + 0x50]
call fcn.140a5f510
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__unlink
mov edx, 0x101
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x7f]
call sub.msvcrt.dll__open
mov dword [rsp + 0x40], eax
test eax, eax
js 0x140a6fd8f
lea r8d, [rdi + 0x1b]
mov ecx, eax
lea rdx, str._Netscape_HTTP_Cookie_File_n
call sub.msvcrt.dll__write
cmp eax, 0x1c
jne 0x140a6fd82
test rsi, rsi
je 0x140a6fcec
mov ecx, dword [rsp + 0x40]
mov r8d, ebp
mov rdx, rsi
call sub.msvcrt.dll__write
movsxd rcx, eax
cmp rcx, rbp
jne 0x140a6fd82
mov ecx, dword [rsp + 0x40]
lea rdx, [0x140a86ca8]
mov r8d, edi
call sub.msvcrt.dll__write
cmp eax, edi
jne 0x140a6fd82
mov qword [rbx + 0x88], 0
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rbp
call fcn.140a687a0
lea r9, [rsp + 0x20]
mov qword [rsp + 0x30], rax
lea r8, [0x140a6fdf0]
mov byte [rsp + 0x44], 0
mov edx, r14d
mov qword [rbx + 0x90], 0
mov rcx, rbx
call fcn.140a6ffc0
test eax, eax
jne 0x140a6fd82
mov ecx, dword [rsp + 0x40]
call sub.msvcrt.dll__close
mov rcx, qword [rbx + 0x28]
mov dword [rsp + 0x40], 0xffffffff
call sub.msvcrt.dll__unlink
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll_rename
mov r8, qword [rbx + 0x90]
test r8, r8
je 0x140a6fd7e
lea rdx, [0x140a6f670]
mov rcx, rbx
call fcn.140a6dcc0
xor edi, edi
jmp 0x140a6fd8f
mov ecx, dword [rsp + 0x40]
test ecx, ecx
js 0x140a6fd8f
call sub.msvcrt.dll__close
lea rcx, [rsp + 0x50]
call sub.msvcrt.dll__unlink
mov r9, qword [rbx + 0x28]
lea r8, str._s.LCK
mov edx, 0x80
lea rcx, [rsp + 0xd0]
call fcn.140a5f510
mov ecx, r14d
call sub.msvcrt.dll__close
lea rcx, [rsp + 0xd0]
call sub.msvcrt.dll__unlink
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140a6ffc0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x130
mov rbp, r8
mov ecx, edx
xor edi, edi
xor r8d, r8d
xor edx, edx
mov r13, r9
xor esi, esi
xor r12d, r12d
xor r15b, r15b
lea r14d, [rdi + 1]
call sub.msvcrt.dll__lseek
cmp eax, 0xffffffff
jne 0x140a7000a
jmp 0x140a70163
mov qword [rsp + 0x188], rbx
xor ebx, ebx
nop dword [rax]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x178]
lea rdx, [rsp + 0x30]
movsxd rax, esi
mov r8d, 0x100
sub r8d, esi
add rdx, rax
call sub.msvcrt.dll__read
test eax, eax
jg 0x140a70051
mov r15b, 1
cmp edi, esi
je 0x140a70157
jmp 0x140a70053
add esi, eax
movsxd rcx, esi
lea rax, [rsp + 0x30]
nop dword [rax + rax]
cmp rbx, rcx
jge 0x140a700dc
inc rbx
inc edi
cmp byte [rax + rbx - 1], 0xa
jne 0x140a70060
cmp byte [rsp + 0x30], 0x23
movsxd rbx, edi
jne 0x140a7007f
xor ebp, ebp
jmp 0x140a700a3
mov rcx, qword [rsp + 0x170]
lea rax, [rbx - 1]
or r14d, 2
mov qword [rsp + 0x20], rax
mov r8d, r14d
lea r9, [rsp + 0x30]
mov rdx, r13
call rbp
mov ebp, eax
sub esi, edi
lea rdx, [rsp + 0x30]
movsxd r8, esi
lea rcx, [rsp + 0x30]
add rdx, rbx
mov r14d, 1
xor r12d, r12d
call sub.msvcrt.dll_memmove
xor edi, edi
xor ebx, ebx
test ebp, ebp
jne 0x140a70159
mov rbp, qword [rsp + 0x180]
jmp 0x140a70020
test edi, edi
je 0x140a70146
test r12d, r12d
jne 0x140a7013d
cmp r14d, 1
jne 0x140a700f6
test esi, esi
je 0x140a70107
cmp byte [rsp + 0x30], 0x23
je 0x140a7013d
cmp esi, edi
jne 0x140a70107
test r15b, r15b
je 0x140a70107
mov r8d, 2
jmp 0x140a7010a
xor r8d, r8d
mov rcx, qword [rsp + 0x170]
lea r9, [rsp + 0x30]
movsxd rax, edi
or r8d, r14d
mov rdx, r13
mov qword [rsp + 0x20], rax
call rbp
xor edi, edi
xor ebx, ebx
xor esi, esi
mov ebp, eax
test eax, eax
jne 0x140a70159
mov rbp, qword [rsp + 0x180]
jmp 0x140a70143
mov r12d, 1
xor r14d, r14d
test r15b, r15b
je 0x140a70020
cmp esi, edi
jne 0x140a70020
xor ebp, ebp
mov rbx, qword [rsp + 0x188]
mov eax, ebp
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140a77030
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r15
sub rsp, 0x30
mov r9, qword [rcx + 0x10]
xor r10d, r10d
mov rax, qword [rdx]
mov rdi, r8
mov r15, rdx
mov rbx, rcx
mov ebp, r10d
mov r8, qword [r9 + 0x18]
test r8, r8
jne 0x140a7706b
mov rcx, qword [rcx]
mov r8d, dword [rcx + 0x7ec]
mov rsi, qword [rbx + 0xd0]
mov ecx, r8d
mov rdx, qword [rsi + 0x130]
cmp rcx, rdx
cmovbe edx, r8d
mov ecx, edx
cmp rcx, rdi
cmovbe edi, edx
test edi, edi
jne 0x140a77096
xor eax, eax
jmp 0x140a77259
test byte [rsi + 0x124], 4
mov qword [rsp + 0x58], r14
mov r14, rax
jne 0x140a7715d
movzx edx, byte [rsi + 0x141]
mov ecx, edx
and ecx, 3
movzx r8d, byte [rcx + rsi + 0x128]
lea rcx, [rdx + 1]
and ecx, 3
mov byte [rsp + 0x50], r8b
movzx r9d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 2]
and ecx, 3
mov byte [rsp + 0x51], r9b
movzx r11d, byte [rcx + rsi + 0x128]
lea rcx, [rdx - 1]
and ecx, 3
mov byte [rsp + 0x52], r11b
movzx edx, byte [rcx + rsi + 0x128]
mov ecx, edi
shr ecx, 2
mov byte [rsp + 0x53], dl
test ecx, ecx
je 0x140a77127
nop dword [rax + rax]
xor byte [rax], r8b
xor byte [rax + 1], r9b
xor byte [rax + 2], r11b
xor byte [rax + 3], dl
add rax, 4
sub ecx, 1
jne 0x140a77110
mov edx, edi
and edx, 3
je 0x140a77144
mov ebp, edx
movzx ecx, byte [rsp + r10 + 0x50]
inc r10
xor byte [rax], cl
lea rax, [rax + 1]
cmp r10, rdx
jl 0x140a77130
mov rcx, qword [rbx + 0xd0]
movzx eax, dil
add al, byte [rcx + 0x141]
and al, 3
mov byte [rcx + 0x141], al
mov esi, edi
add qword [r15], rsi
mov rax, qword [rbx + 0xd0]
sub qword [rax + 0x130], rsi
mov rcx, qword [rbx + 0xd0]
mov eax, dword [rcx + 0x124]
bt eax, 0xa
jae 0x140a77208
bt eax, 0xb
jb 0x140a77208
add rcx, 0x146
mov r8d, esi
mov rdx, r14
call fcn.140a5f100
test eax, eax
je 0x140a771b2
lea r8, str.bad_utf8
mov r9d, 8
jmp 0x140a771e4
mov rax, qword [rbx + 0xd0]
cmp qword [rax + 0x130], 0
jne 0x140a77208
test byte [rax + 0x124], 1
je 0x140a77208
cmp byte [rax + 0x146], 0
je 0x140a77208
test ebp, ebp
jne 0x140a77208
lea r8, str.partial_utf8
lea r9d, [rbp + 0xc]
mov edx, 0x3ef
mov rcx, rbx
call fcn.140a69760
movsxd r8, edi
mov rdx, r14
mov ecx, 8
call fcn.140a5b850
mov eax, 0xffffffff
jmp 0x140a77254
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140a77241
cmp dword [rbx + 0x404], 0
jne 0x140a77241
mov r9, qword [rbx + 0x3d8]
mov r8d, 6
mov qword [rsp + 0x28], rsi
mov rdx, rbx
mov qword [rsp + 0x20], r14
call fcn.140a59290
test eax, eax
jne 0x140a77201
mov rax, qword [rbx + 0xd0]
and dword [rax + 0x124], 0xffffbfff
mov eax, edi
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x140a77270
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov r15d, dword [rsp + 0x38]
xor ebp, ebp
mov r11, rdx
mov r14, rcx
test r8d, r8d
je 0x140a77370
lea esi, [rbp + 4]
xor r10d, r10d
test r8d, r8d
je 0x140a772dc
movzx edi, byte [r11]
mov r10d, 1
inc r11
sub r8d, r10d
je 0x140a772df
movzx ecx, byte [r11]
inc r10d
inc r11
mov rdx, r11
sub r8d, 1
je 0x140a772e1
movzx edx, byte [rdx]
inc r11
inc r10d
dec r8d
jmp 0x140a772e3
xor dil, dil
xor cl, cl
xor dl, dl
cmp esi, r15d
jge 0x140a77378
movzx ebx, cl
movzx ecx, dil
and ecx, 3
movzx eax, dil
shr rax, 2
shl ecx, 4
movzx eax, byte [rax + r14]
mov byte [r9], al
mov eax, ebx
shr rax, 4
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 1], al
cmp r10d, 1
jbe 0x140a77350
and ebx, 0xf
movzx eax, dl
shr rax, 6
shl ebx, 2
mov ecx, ebx
or rcx, rax
movzx eax, byte [rcx + r14]
mov byte [r9 + 2], al
add r9, 3
cmp r10d, 2
jbe 0x140a77359
and edx, 0x3f
movzx eax, byte [rdx + r14]
jmp 0x140a7735b
mov byte [r9 + 2], 0x3d
add r9, 3
mov al, 0x3d
mov byte [r9], al
add ebp, 4
inc r9
add esi, 4
test r8d, r8d
jne 0x140a772a1
lea eax, [rbp + 1]
cmp eax, r15d
jl 0x140a7737f
mov eax, 0xffffffff
jmp 0x140a77385
mov byte [r9], 0
mov eax, ebp
mov rbx, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
pop r15
pop r14
ret