joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ecc10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xc0
mov rax, qword [0x1401ce680]
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, qword [rsi + 0x1b0]
mov rcx, rbx
mov qword [rsp + 0x28], 0xffffffffffffffff
mov dword [rsp + 0x20], 0x80
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400ecc8c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], 0x80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400ecc91
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400eccb0
lea rdx, str.Error_accept__ing_server_connect
call fcn.1400cae60
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400ecd3c
lea rdx, str.Connection_accepted_from_server
call fcn.1400caf50
mov byte [rsi + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.140104400
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.1400f9c50
test eax, eax
jne 0x1400ecd3c
cmp qword [rdi + 0x270], 0
je 0x1400ecd3a
mov dl, 1
mov rcx, rdi
call fcn.1400b8850
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x278]
call qword [rdi + 0x270]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1400b8850
test ebx, ebx
je 0x1400ecd3a
mov rdx, rsi
mov rcx, rdi
call fcn.1400ed260
mov eax, Ordinal_46
jmp 0x1400ecd3c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14010f1d0
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x1400ee860
mov byte [rdx + 0x6c6], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.1400ee950
cmp byte [rcx + 0xa97], 0
je 0x1400ee875
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.1400ef370
cmp byte [rcx + 0xa9a], 0
je 0x1400ee8f3
mov r9, qword [rdx + 0x670]
test r9, r9
jne 0x1400ee8b8
mov r9, qword [rcx + 0x748]
test r9, r9
jne 0x1400ee8af
cmp byte [rbx + 0x133f], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x1400ee8cf
cmp byte [rcx + 0xaa7], 0
lea r8, str.PRET_STOR__s
jne 0x1400ee8cf
lea r8, str.PRET_RETR__s
add rdx, 0x5d0
mov rcx, rbx
call fcn.140109470
test eax, eax
jne 0x1400ee8fd
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6c6], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400ef2c0
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a0]
add rdx, 0x5d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400eec2b
cmp qword [rdx + 0xa0], 0
je 0x1400eec2b
xor r9d, r9d
lea r8, str.REST__d
call fcn.140109470
test eax, eax
jne 0x1400eec35
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6c6], 0x1a
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.1400ee830
add rsp, 0x20
pop rbx
ret
Function at 0x1400eeef0
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
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x1400eef30
lea rdx, str.Couldnt_set_desired_mode
call fcn.1400cae60
lea eax, [rdi + 0x11]
jmp 0x1400ef095
cmp edx, 0xc8
je 0x1400eef47
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.1400caf50
cmp sil, 0x13
jne 0x1400eef5d
mov rdx, rbp
mov rcx, rbx
call fcn.1400eedf0
jmp 0x1400ef091
cmp sil, 0x14
jne 0x1400ef073
cmp byte [rbx + 0x6f0], 2
mov rbp, qword [rbx + 0x18]
jne 0x1400eefdb
mov rax, qword [rbx + 0x1a0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1400eefdb
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.1400f7870
test eax, eax
jne 0x1400ef091
mov rcx, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
call fcn.14011132c
test rax, rax
je 0x1400eefd0
mov rdi, qword [rsp + 0x40]
mov ecx, 1
sub rax, rdi
cmovne rcx, rax
mov byte [rcx + rdi], 0
jmp 0x1400eefdb
mov rcx, qword [rsp + 0x40]
call qword [fcn.140117938]
mov rdx, qword [rbx + 0x748]
test rdx, rdx
jne 0x1400ef000
cmp byte [rbx + 0x133f], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401af08d]
test rdi, rdi
mov r9, r8
lea rax, [0x14015a7d8]
cmovne r9, rdi
lea rcx, [0x14017bb14]
cmovne r8, rax
call fcn.1400cf250
mov rcx, rdi
mov rsi, rax
call qword [fcn.140117938]
test rsi, rsi
jne 0x1400ef03e
lea edi, [rsi + 0x1b]
jmp 0x1400ef093
lea rdx, [rbp + 0x5d0]
mov r9, rsi
lea r8, [0x14017a550]
mov rcx, rbx
call fcn.140109470
mov rcx, rsi
mov edi, eax
call qword [fcn.140117938]
test edi, edi
jne 0x1400ef093
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6c6], 0x1f
jmp 0x1400ef093
cmp sil, 0x15
jne 0x1400ef07e
mov r8b, reloc.WS2_32.dll_listen
jmp 0x1400ef087
cmp sil, 0x16
jne 0x1400ef093
mov r8b, recv
mov dl, 1
mov rcx, rbx
call fcn.1400ee950
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 0x1400f9f80
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1401d1228]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1400f9fe4
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.1400ff8d0
test al, al
je 0x1400f9fd8
mov dword [0x1401d1228], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1401d1228], 1
jmp 0x1400f9fe9
cmp eax, 2
je 0x1400fa03b
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1400fa01a
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400fa03b
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret
Function at 0x1400fac50
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1401ce680]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rbx, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
mov rsi, rdx
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1400fad06
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400b4670
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1400cae60
mov eax, 2
jmp 0x1400fad78
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x104]
lea r8, [rbx + 0xd4]
lea rcx, [rsp + 0x30]
call fcn.1400cbc70
test al, al
jne 0x1400fad76
mov qword [rsp + 0x1e0], rdi
call fcn.14011e8bc
mov ebx, dword [rax]
call fcn.14011e8bc
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400b4670
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1400cae60
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400fad78
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14010f1d0
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x1400fcac0
Capabilities:
Check http status code

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, 0x30
mov r14, r8
mov rsi, rdx
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.WWW_Authenticate:
mov rcx, r9
mov rbx, r9
call fcn.1400d09d0
test eax, eax
je 0x1400fcb0a
mov ebp, dword [rsi + 0x148]
cmp ebp, 0x191
je 0x1400fcb31
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.1400d09d0
test eax, eax
je 0x1400fcb77
mov ebp, dword [rsi + 0x148]
cmp ebp, 0x197
jne 0x1400fcb77
mov rcx, rbx
call fcn.1400d6770
mov rbx, rax
test rax, rax
jne 0x1400fcb49
lea eax, [rbx + 0x1b]
jmp 0x1400fcd3a
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.1400d8420
mov rcx, rbx
mov edi, eax
call qword [fcn.140117938]
test edi, edi
je 0x1400fcd38
mov eax, edi
jmp 0x1400fcd3a
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.1400d09d0
test eax, eax
je 0x1400fcbd2
mov r8d, dword [rsi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400fcbb7
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.1400caf50
jmp 0x1400fcd38
xor edx, edx
lea r9, [r14 + 0x298]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1400dce50
jmp 0x1400fcd38
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, recv
lea rdx, str.Connection:
mov rcx, rbx
call fcn.1400d66a0
test al, al
jne 0x1400fcd30
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.1400d09d0
test eax, eax
je 0x1400fcc90
mov r8d, dword [rsi + 0x148]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1400fcc3f
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rsi
call fcn.1400caf50
jmp 0x1400fcd38
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.1400d66a0
test al, al
je 0x1400fcd38
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.1400caf50
mov rcx, rsi
mov byte [r14 + 0x2a4], 1
call fcn.1400ffe30
jmp 0x1400fcd38
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.1400d66a0
test al, al
jne 0x1400fcd30
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call fcn.140120b90
test eax, eax
jne 0x1400fcd38
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x1400fcd38
cmp byte [rbx + 8], 0x20
jne 0x1400fcd38
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1400fcd38
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1400fcd38
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1400fcd38
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x1400fcd38
lea ecx, [rcx + rcx*4]
lea ecx, [rdx + rcx*2]
lea ecx, [rcx + rcx*4]
lea ecx, [rcx - 0xa68]
lea ecx, [r8 + rcx*2]
mov dword [rsi + 0x148], ecx
mov dword [rsi + 0x1354], ecx
jmp 0x1400fcd38
mov byte [r14 + 0x2a5], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140104fd0
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 [0x1401ce680]
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.0x1400ca14f.2
mov r13, rax
test rax, rax
jne 0x14010504e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400b47a0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400cae60
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.140117938]
jmp 0x140105208
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 0x1401050c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400b47a0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400cae60
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1401051f2
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x14010510a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1400b47a0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400cae60
mov ebx, Ordinal_79
jmp 0x1401051e6
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x14010513f
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1400cae60
mov ebx, Ordinal_79
jmp 0x1401051de
lea rcx, [rdi + 1]
call qword [fcn.1401185e4]
mov rbp, rax
test rax, rax
jne 0x140105159
lea ebx, [rax + 0x1b]
jmp 0x1401051de
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1401051b8
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 0x14010522a
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1401051af
mov edi, esi
jmp 0x1401051b1
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x140105170
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.140104d50
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.140117938]
mov rcx, r13
call fcn.140117938
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14010f1d0
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.1400b47a0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1400cae60
mov ebx, Ordinal_79
jmp 0x1401051d6
Function at 0x14010bfe0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push r14
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov r14, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1401185e4]
mov rbx, rax
test rax, rax
jne 0x14010c025
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x50], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14010c070
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x14010c0d2
mov rsi, r15
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 [rbx + 8]
call qword [rbp + 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 [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14010c090
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14010c113
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140186829]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14018682a]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14010c0e0
mov rdi, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
Function at 0x14010c130
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.1400ccc80
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.1401185e4]
mov rbx, rax
test rax, rax
je 0x14010c2d6
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x14010c1c0
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x14010c222
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x14010c1e0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x14010c263
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x140186829]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x14018682a]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14010c230
mov rcx, qword [rsp + 0x70]
call fcn.1400ccc80
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x14010c292
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.140117938]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, reloc.WLDAP32.dll_Ordinal_27
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret

Function at 0x14010d2b0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x14010d315
nop dword [rax + rax]
movzx r8d, byte [r10]
lea r10, [r10 + 1]
movzx eax, r8b
movzx r9d, r8b
shr r9b, 1
and al, 0xfe
not r9b
movzx eax, al
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
shr r9b, 1
xor r9b, r8b
or r8b, 1
test r9b, 2
movzx ecx, r8b
cmove ecx, eax
mov byte [r10 - 1], cl
sub rdx, 1
jne 0x14010d2c0
ret
Function at 0x14010d434
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14010d46e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14010d473
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14010d4bc
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x14010d4bc
dec r8
sub rdx, 1
jne 0x14010d4a2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1401100b8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140110102
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140110102
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140110102
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140110102
cmp dword [rcx + 0x84], 0xe
jbe 0x140110102
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140110104
xor al, al
add rsp, 0x28
ret
Function at 0x140121690
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.14010fc40
sub rsp, rax
mov rax, qword [0x1401ce680]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140131e2c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1401216df
mov rax, rbp
jmp 0x1401217e7
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1d2630]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1401295c0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1d2630]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1401217e3
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 0x1401217e3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1401295c0
test rax, rax
js 0x1401217e3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1401217e3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1401217d5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1401217d5
cmp byte [rcx], 0xd
jne 0x1401217bb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1401217ca
cmp byte [rcx + 1], 0xa
jne 0x1401217ca
inc rcx
jmp 0x1401217ca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1ce8e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14012179d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1401217e7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14010f1d0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret