joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180106780
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.180163e94]
mov rdi, rax
test rax, rax
je 0x1801067fd
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x180106828
cmp ebx, esi
je 0x180106828
cmp ebx, 0x8000
ja 0x180106828
cmp ebx, esi
jb 0x180106823
mov edx, ebx
mov rcx, rdi
call qword [fcn.180163e94]
mov rdi, rax
test rax, rax
jne 0x1801067c0
mov rcx, rbp
call qword [fcn.180162cf4]
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
mov rax, rdi
jmp 0x180106808
mov rcx, rdi
jmp 0x180106800

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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1801d01d0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rdi, rcx
lea rdx, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
mov rbp, qword [rsi + 0x1f0]
mov rcx, rbp
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x18010cf8b
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_accept]
mov rbx, rax
mov r8, rbp
mov rdx, rsi
mov rcx, rdi
call fcn.1800ed5b0
mov rcx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x18010cfb3
lea rdx, str.Error_accept__ing_server_connect
call fcn.1800ecb80
lea eax, [rbx + 0x1f]
jmp 0x18010d02f
lea rdx, str.Connection_accepted_from_server_n
call fcn.1800ecce0
mov edx, 1
mov byte [rsi + 0x3ba], 0
mov rcx, rbx
mov qword [rsi + 0x1f0], rbx
call fcn.18011cb30
mov byte [rsi + 0x3cd], 1
cmp qword [rdi + 0x288], 0
je 0x18010d02d
mov dl, 1
mov rcx, rdi
call fcn.1800dc9d0
mov rcx, qword [rdi + 0x290]
mov r8d, 1
mov rdx, rbx
call qword [rdi + 0x288]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1800dc9d0
test ebx, ebx
je 0x18010d02d
mov rdx, rsi
mov rcx, rdi
call fcn.18010d530
mov eax, Ordinal_46
jmp 0x18010d02f
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1801455c0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x18010eaa0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x18010ead6
mov dword [rdx + 0x7b0], 0xd
mov r8d, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.18010ebc0
cmp byte [rcx + 0xb0e], 0
je 0x18010eaeb
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.18010f6a0
cmp byte [rcx + 0xb11], 0
je 0x18010eb6c
mov r9, qword [rdx + 0x770]
test r9, r9
jne 0x18010eb2e
mov r9, qword [rcx + 0x7b8]
test r9, r9
jne 0x18010eb25
cmp byte [rbx + 0x12e1], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x18010eb45
cmp byte [rcx + 0xb1d], 0
lea r8, str.PRET_STOR__s
jne 0x18010eb45
lea r8, str.PRET_RETR__s
add rdx, 0x6e0
mov rcx, rbx
call fcn.1801270b0
test eax, eax
jne 0x18010eb76
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7b0], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18010f5f0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
add rdx, 0x6e0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x18010ef3e
cmp qword [rdx + 0x90], 0
je 0x18010ef3e
xor r9d, r9d
lea r8, str.REST__d
call fcn.1801270b0
test eax, eax
jne 0x18010ef48
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7b0], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.18010eaa0
add rsp, 0x20
pop rbx
ret
Function at 0x18010f210
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
mov esi, r8d
mov rbx, rcx
cmp eax, 0x64
jb 0x18010f24f
lea rdx, str.Couldnt_set_desired_mode
call fcn.1800ecb80
lea eax, [rdi + 0x11]
jmp 0x18010f3bb
cmp edx, 0xc8
je 0x18010f266
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200_n
call fcn.1800ecce0
cmp esi, 0x13
jne 0x18010f27b
mov rdx, rbp
mov rcx, rbx
call fcn.18010f110
jmp 0x18010f3b7
cmp esi, 0x14
jne 0x18010f399
cmp dword [rbx + 0x750], 2
mov rbp, qword [rbx + 0x18]
jne 0x18010f2fe
mov rax, qword [rbx + 0x1b0]
mov rdx, qword [rax]
test rdx, rdx
je 0x18010f2fe
mov dword [rsp + 0x28], 3
lea r9, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rcx, rbx
mov qword [rsp + 0x40], rdi
call fcn.1801068c0
test eax, eax
jne 0x18010f3b7
mov rcx, qword [rsp + 0x40]
lea edx, [rsi + 0x1b]
call fcn.1801483b0
test rax, rax
je 0x18010f2f3
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x18010f2fe
mov rcx, qword [rsp + 0x40]
call qword [fcn.180162cf4]
mov rdx, qword [rbx + 0x7b8]
test rdx, rdx
jne 0x18010f323
cmp byte [rbx + 0x12e1], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1801a60a8]
test rdi, rdi
mov r9, r8
lea rax, [0x1801ac4d4]
cmovne r9, rdi
lea rcx, [0x180186ed0]
cmovne r8, rax
call fcn.1800ff090
mov rcx, rdi
mov rsi, rax
call qword [fcn.180162cf4]
test rsi, rsi
jne 0x18010f361
lea edi, [rsi + 0x1b]
jmp 0x18010f3b9
lea rdx, [rbp + 0x6e0]
mov r9, rsi
lea r8, [0x1801a7560]
mov rcx, rbx
call fcn.1801270b0
mov rcx, rsi
mov edi, eax
call qword [fcn.180162cf4]
test edi, edi
jne 0x18010f3b9
mov rcx, qword [rbx + 0x18]
mov dword [rcx + 0x7b0], 0x1f
jmp 0x18010f3b9
cmp esi, 0x15
jne 0x18010f3a4
lea r8d, [rsi - 8]
jmp 0x18010f3ad
cmp esi, 0x16
jne 0x18010f3b9
lea r8d, [rsi - 8]
mov dl, 1
mov rcx, rbx
call fcn.18010ebc0
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180115b70
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov byte [rsp + 0x38], 0xff
mov rcx, qword [rcx + 0x18]
mov edi, r8d
mov esi, edx
mov byte [rsp + 0x3a], dil
xor r9d, r9d
mov byte [rsp + 0x39], sil
lea rdx, [rsp + 0x38]
mov rcx, qword [rcx + 0x1e8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180115bcf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.1800ecb80
mov r9d, edi
lea rdx, str.SENT
mov r8d, esi
mov rcx, rbx
call fcn.180115700
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
cmp edx, 0x1f
jne 0x180115f19
push rsi
push rdi
push r15
sub rsp, 0x20
mov rdi, qword [rcx + 0x1b0]
mov rsi, rcx
mov r15, qword [rcx + 0x18]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rdi + 0x1eb8]
mov qword [rsp + 0x58], r14
lea r14, [rdi + 0x1cb8]
mov qword [rbx], r14
cmp r14, rbx
jae 0x180115dd7
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x180115dd7
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x180115dd7
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x180115e0d
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x180115e63
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180115e63
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180115e63
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180115e63
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x180115e63
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.180115830
mov rcx, qword [r15 + 0x1e8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x180115ec5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1800ecb80
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, rsi
call fcn.180115c00
mov rcx, qword [r15 + 0x1e8]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180115f11
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.1800ecb80
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
Function at 0x180117600
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1801d01d0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rdi, rcx
xor r9d, r9d
mov rbx, qword [rax + 0x6e0]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x80
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x138], 0
mov dword [rbx + 0x13c], eax
jne 0x180117697
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call fcn.180147b70
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov r8d, dword [rbx + 0x13c]
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf0], rsi
cmp r8d, 4
jge 0x1801176fd
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.1800ecb80
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1801455c0
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rbx + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1801177b8
sub ecx, 1
je 0x18011782e
sub ecx, 1
je 0x180117767
cmp ecx, 1
je 0x18011774a
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x1801a7560]
call fcn.1800ecb80
jmp 0x18011782e
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.180117330
test eax, eax
je 0x18011782e
jmp 0x1801176cc
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call fcn.1801485d0
test rax, rax
je 0x18011782e
sub rax, rsi
cmp rax, rbp
jae 0x18011782e
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.1800ecce0
jmp 0x18011782e
cmp r8d, 4
jle 0x18011782e
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x18011782e
lea eax, [r8 - 4]
mov rcx, rdi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1800ecab0
mov esi, eax
test eax, eax
je 0x18011780d
mov edx, 5
mov rcx, rbx
call fcn.180118250
mov eax, esi
jmp 0x1801176cc
mov eax, dword [rbx + 0x13c]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.1800fc870
mov rcx, rdi
call fcn.1800fcb80
test eax, eax
je 0x1801176ca
mov edx, 5
mov rcx, rbx
call fcn.180118250
mov eax, Ordinal_46
jmp 0x1801176cc
Function at 0x180122e20
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x1801d01d0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x1800e1a69.0
mov r13, rax
test rax, rax
jne 0x180122e9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180100e40
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ecb80
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.180162cf4]
jmp 0x180123058
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180122f11
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180100e40
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ecb80
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x180123042
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x180122f5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180100e40
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ecb80
mov ebx, Ordinal_79
jmp 0x180123036
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x180122f8f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1800ecb80
mov ebx, Ordinal_79
jmp 0x18012302e
lea rcx, [rdi + 1]
call qword [section..data]
mov rbp, rax
test rax, rax
jne 0x180122fa9
lea ebx, [rax + 0x1b]
jmp 0x18012302e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x180123008
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18012307a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x180122fff
mov edi, esi
jmp 0x180123001
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x180122fc0
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.180122b80
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.180162cf4]
mov rcx, r13
call fcn.180162cf4
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1801455c0
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.180100e40
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800ecb80
mov ebx, Ordinal_79
jmp 0x180123026
Function at 0x18012a0f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [section..data]
mov rdi, rax
test rax, rax
jne 0x18012a132
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x18012a179
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x18012a1d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x18012a190
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18012a213
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x180192fec]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x180192fed]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18012a1e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x1801405f0
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x180140627
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x180140610
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x180140728
sub rcx, r10
cmp r9, 8
jb 0x180140700
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r11, rax
jb 0x180140680
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x180140728
add r10, r11
sub r9, r11
nop word [rax + rax]
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x180140710
test r8d, r8d
sete al
ret

Function at 0x180140730
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x180140884
cmp r9, 4
jb 0x18014077a
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x180140760
xor r11d, r11d
test r9, r9
je 0x180140884
cmp r9, 0x40
jb 0x180140863
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x1801407ac
cmp rdx, r8
jae 0x180140863
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x1801407c1
cmp rdx, r10
jae 0x180140863
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov rsi, r9
and rsi, 0xffffffffffffffc0
mov qword [rsp], rdi
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x1801407f0
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp]
cmp r11, r9
jae 0x180140884
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x180140870
add rsp, 8
ret
Function at 0x18015b2bc
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1801462f0
sub rsp, rax
mov rax, qword [0x1801d01d0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1801720e0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18015b30b
mov rax, rbp
jmp 0x18015b413
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1ea3b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180168cb8
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x1ea3b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18015b40f
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18015b40f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180168cb8
test rax, rax
js 0x18015b40f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18015b40f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18015b401
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18015b401
cmp byte [rcx], 0xd
jne 0x18015b3e7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18015b3f6
cmp byte [rcx + 1], 0xa
jne 0x18015b3f6
inc rcx
jmp 0x18015b3f6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1d0410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18015b3c9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18015b413
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1801455c0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180164fa8
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180164f85
call fcn.1801650b8
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.18015ad90
or eax, 0xffffffff
jmp 0x180164fa2
sub dword [rcx + 0x10], 1
jns 0x180164f94
add rsp, 0x28
jmp fcn.18017546c
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180164f64
Function at 0x180168060
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x1801d01d0]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x18019c000]
mov rbp, rcx
call fcn.180177f94
xor edi, edi
test rax, rax
je 0x180168146
mov ebx, edi
call fcn.1801650b8
mov r14d, dword [rax]
call fcn.1801650b8
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.180177ee0
mov rsi, rax
test rax, rax
je 0x1801680d7
call fcn.1801650b8
mov dword [rax], r14d
jmp 0x180168101
call fcn.1801650b8
cmp dword [rax], 0x22
jne 0x18016813e
call fcn.1801650b8
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.180177ee0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x18016813e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x180168105
cmp rax, 3
je 0x180168120
mov rcx, rsi
call fcn.180167fbc
test al, al
je 0x180168131
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x180168131
mov dil, 1
mov rcx, rbx
call fcn.180162cf4
mov al, dil
jmp 0x180168148
mov rcx, rbx
call fcn.180162cf4
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1801455c0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret