joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800c2390
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1800c245c
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1800a3de0
mov edx, eax
cmp eax, 4
jne 0x1800c2410
cmp byte [0x1802c7edc], r14b
jne 0x1800c241a
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x1800c245c
mov eax, dword [rsp + 0x50]
jmp 0x1800c2439
imul eax, dword [0x1802c7ed8], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1802c7ed8], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1800c2453
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1800c2441
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1800c23c0
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1800c2480
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1800c2548
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1800a3de0
cmp eax, 4
jne 0x1800c24f1
cmp byte [0x1802c7edc], bpl
jne 0x1800c24fb
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x1800c254d
mov ecx, dword [rsp + 0x50]
jmp 0x1800c2518
imul ecx, dword [0x1802c7ed8], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1802c7ed8], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x1800c24b0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x1800c24b0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800c5690
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 [case.0x18009d6bd.1]
mov rdi, rax
test rax, rax
je 0x1800c570d
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 0x1800c5738
cmp ebx, esi
je 0x1800c5738
cmp ebx, 0x8000
ja 0x1800c5738
cmp ebx, esi
jb 0x1800c5733
mov edx, ebx
mov rcx, rdi
call qword [case.0x18009d6bd.1]
mov rdi, rax
test rax, rax
jne 0x1800c56d0
mov rcx, rbp
call qword [fcn.1800ec4c0]
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 0x1800c5718
mov rcx, rdi
jmp 0x1800c5710

Function at 0x1800c74f0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x1800c767e
inc rsi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
sub rdi, 2
call fcn.180100bb0
cmp rdi, rax
je 0x1800c75f3
cmp byte [rax + rsi], 0x25
lea r14, [rax + rsi]
mov rdi, rax
jne 0x1800c767e
mov r8d, 2
lea rdx, [0x18013f958]
lea rcx, [r14 + 1]
xor ebp, ebp
lea rbx, [r14 + 1]
call fcn.18011ffe0
test eax, eax
jne 0x1800c7584
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x1800c7584
cmp al, 0x5d
cmovne rbx, rcx
movzx edx, byte [rbx]
test dl, dl
je 0x1800c767e
mov rax, rbp
movzx ecx, dl
cmp dl, 0x5d
je 0x1800c75b6
cmp rax, 0xf
jge 0x1800c75b6
inc rbx
mov byte [rsp + rax + 0x20], cl
inc ebp
inc rax
movzx ecx, byte [rbx]
movzx edx, cl
test cl, cl
jne 0x1800c7595
test ebp, ebp
je 0x1800c767e
cmp byte [rbx], 0x5d
jne 0x1800c767e
movsxd rax, ebp
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x18009d6bd.2]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1800c75ed
mov eax, 7
jmp 0x1800c7683
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rsi + rdi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1800c767e
mov r9d, 0x2e
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_socket
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1800c7676
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
nop word [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x1800c7640
cmp rdx, rdi
jae 0x1800c7676
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1800c7660
mov rdi, rdx
mov byte [rsi + rdx + 1], al
mov byte [rsi + rdi], 0x5d
xor eax, eax
jmp 0x1800c7683
mov eax, socket
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret
Function at 0x1800cc5f0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbp, r8
mov rdi, rdx
mov r15, rcx
lea rdx, str.WWW_Authenticate:
mov r8d, send
mov rcx, r9
mov rbx, r9
call fcn.1800bef00
test eax, eax
je 0x1800cc63d
mov r14d, dword [rdi + 0x13c]
cmp r14d, 0x191
je 0x1800cc666
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.1800bef00
test eax, eax
je 0x1800cc6c4
mov r14d, dword [rdi + 0x13c]
cmp r14d, 0x197
jne 0x1800cc6c4
mov rcx, rbx
call fcn.1800b83e0
mov rsi, rax
test rax, rax
jne 0x1800cc680
mov eax, 0x1b
jmp 0x1800cc88e
mov r9, rbx
lea r8, str.CONNECT:_fwd_auth_header__s
mov rdx, r15
mov rcx, rdi
call fcn.1800aaa40
cmp r14d, 0x197
mov r8, rsi
mov rcx, rdi
sete dl
call fcn.1800b9a70
mov rcx, rsi
mov ebx, eax
call qword [fcn.1800ec4c0]
test ebx, ebx
je 0x1800cc88c
mov eax, ebx
jmp 0x1800cc88e
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.1800bef00
test eax, eax
je 0x1800cc721
mov r8d, dword [rdi + 0x13c]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1800cc704
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rdi
call fcn.1800aa960
jmp 0x1800cc88c
lea r9, [rbp + 0xb0]
xor edx, edx
lea rcx, [rbx + 0xf]
mov r8d, 0xa
call fcn.1800c0480
jmp 0x1800cc88c
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, ntohs
lea rdx, str.Connection:
mov rcx, rbx
call fcn.1800b8300
test al, al
jne 0x1800cc885
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.1800bef00
test eax, eax
je 0x1800cc7e5
mov r8d, dword [rdi + 0x13c]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x1800cc78e
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rdi
call fcn.1800aa960
jmp 0x1800cc88c
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.1800b8300
test al, al
je 0x1800cc88c
lea rdx, str.CONNECT_responded_chunked
mov rcx, rdi
call fcn.1800aa960
lea rdx, [rbp + 0x60]
mov byte [rbp + 0xbc], 1
mov r8b, 1
mov rcx, rdi
call fcn.1800d2d20
jmp 0x1800cc88c
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, send
lea rdx, str.Proxy_Connection:
mov rcx, rbx
call fcn.1800b8300
test al, al
jne 0x1800cc885
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call fcn.18011ffe0
test eax, eax
jne 0x1800cc88c
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x1800cc88c
cmp byte [rbx + 8], 0x20
jne 0x1800cc88c
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x1800cc88c
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x1800cc88c
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x1800cc88c
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x1800cc88c
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 [rdi + 0x13c], ecx
mov dword [rdi + 0x125c], ecx
jmp 0x1800cc88c
mov byte [rbp + 0xbd], 1
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x1800d0e00
Capabilities:
Receive data
Receive data on socket

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, 0x140
mov rax, qword [rcx]
mov rsi, r9
mov rdi, rcx
mov rbp, r8
mov r14, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [r14 + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x1800d0ea0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1800d0e64
mov dword [rsi], 0x51
jmp 0x1800d0e99
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, ebx
call fcn.1800bf6f0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1800aa8a0
mov rax, qword [rdi + 8]
mov dword [rax + 0xc74], ebx
mov dword [rsi], 0x38
mov rbx, 0xffffffffffffffff
mov ecx, dword [rsi]
lea r8, str.nw_in_read_len_zu__fd_qd______d__err_d
mov rdx, qword [rdi]
mov r9, rbp
mov dword [rsp + 0x30], ecx
mov rcx, qword [r14 + 0x98]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 8]
call fcn.1800aaa40
lea r11, [rsp + 0x140]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x1a0
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x360]
test dword [rcx + 0x84], 0x800
jne 0x1800d103e
mov rcx, qword [rbx + 0x98]
lea r8, [r11 + 8]
xorps xmm0, xmm0
mov dword [r11 + 8], 0x80
lea rdx, [rsp + 0x20]
movups xmmword [rsp + 0x20], xmm0
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
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1800d0fbc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xa0]
mov ecx, eax
mov ebx, eax
call fcn.1800bf6f0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1800aa8a0
mov eax, 2
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rsi
ret
mov edx, dword [rsp + 0x1b0]
lea r9, [rbx + 0x140]
lea r8, [rbx + 0x10e]
lea rcx, [rsp + 0x20]
call fcn.1800ad2c0
test al, al
jne 0x1800d103e
mov qword [rsp + 0x1b8], rdi
call fcn.1800f43c8
mov ebx, dword [rax]
call fcn.1800f43c8
mov r8d, 0x100
lea rdx, [rsp + 0xa0]
mov ecx, ebx
mov rdi, rax
call fcn.1800bf6f0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1800aa8a0
mov rdi, qword [rsp + 0x1b8]
mov eax, 2
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rsi
ret
mov rbx, qword [rsp + 0x1c0]
xor eax, eax
add rsp, 0x1a0
pop rsi
ret
Function at 0x1800d6510
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x160
mov rcx, rdx
mov r15, r8
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call case.0x18009d6bd.2
mov r13, rax
test rax, rax
jne 0x1800d658a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.1800bf820
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800aa8a0
xor ecx, ecx
mov ebx, 0x4d
call qword [fcn.1800ec4c0]
mov eax, ebx
add rsp, 0x160
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov r8d, 1
mov dword [rsp + 0x20], 3
mov rcx, r13
mov qword [rsp + 0x150], r14
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1800d6600
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.1800bf820
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800aa8a0
xor ecx, ecx
mov ebx, 0x4d
jmp 0x1800d673a
lea rdx, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1800d6649
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.1800bf820
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800aa8a0
mov ebx, 0x4d
jmp 0x1800d672e
mov qword [rsp + 0x158], rdi
mov rdi, qword [rsp + 0x40]
cmp rdi, 0x100000
jle 0x1800d667e
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1800aa8a0
mov ebx, 0x4d
jmp 0x1800d6726
lea rcx, [rdi + 1]
call qword [fcn.1800ec4d0]
mov rbp, rax
test rax, rax
jne 0x1800d669a
mov ebx, 0x1b
jmp 0x1800d6726
mov qword [rsp + 0x198], rsi
test rdi, rdi
je 0x1800d66fd
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x1a8], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x1a8]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800d6762
mov eax, dword [rsp + 0x1a8]
test eax, eax
jne 0x1800d66f4
mov edi, esi
jmp 0x1800d66f6
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1800d66b0
mov rcx, qword [rsp + 0x190]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1800d6280
mov ebx, eax
mov rsi, qword [rsp + 0x198]
mov rdi, qword [rsp + 0x158]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.1800ec4c0]
mov rcx, r13
call fcn.1800ec4c0
mov r14, qword [rsp + 0x150]
mov eax, ebx
add rsp, 0x160
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x50]
mov ecx, eax
call fcn.1800bf820
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800aa8a0
mov ebx, 0x4d
jmp 0x1800d671e
Function at 0x1800dba00
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbp, rcx
mov ecx, dword [rcx + 0x20]
mov rsi, rdx
add rcx, 0x18
mov r15d, r8d
lea r9d, [rax + rax]
add rcx, r9
call qword [fcn.1800ec4d0]
mov rbx, rax
test rax, rax
jne 0x1800dba43
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop rsi
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], rdi
mov qword [rbx + 0x10], rax
lea rdi, [rbp + 8]
mov qword [rsp + 0x50], r14
cmp r15d, dword [rbp + 0x1c]
jbe 0x1800dba90
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, rsi
call qword [rdi]
mov esi, dword [rbp + 0x18]
add rsi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rsi
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 r14d, r14d
test r15, r15
je 0x1800dbaf2
mov r14, r15
nop dword [rax]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rbx + 8]
call qword [rdi]
movzx eax, byte [rsi]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea rsi, [rsi + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rdi]
sub r15, 1
jne 0x1800dbab0
lea rdi, [rbp + 8]
mov eax, dword [rbp + 0x1c]
cmp r14, rax
jae 0x1800dbb31
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x180143591]
mov r8d, 1
call qword [rdi]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x180143592]
mov r8d, 1
call qword [rdi]
mov eax, dword [rbp + 0x1c]
inc r14
cmp r14, rax
jb 0x1800dbb00
mov r14, qword [rsp + 0x50]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rsi
pop rbp
ret
Function at 0x1800dbd30
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbp
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov dword [rsp + 0x20], 0xf0000040
mov rbp, rdx
mov rdi, rcx
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
mov r9d, 0x18
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1800dbd7f
mov eax, 0x1b
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1800dbdce
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov qword [rsp + 0x30], 0
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rsi
call fcn.1800ae930
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, eax
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
xor r8d, r8d
mov dword [rsp + 0x68], 0
mov edx, 2
mov dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp dword [rsp + 0x68], 0x20
jne 0x1800dbe39
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x68]
mov r8, rdi
mov dword [rsp + 0x20], 0
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1800dbe49
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1800dbe5b
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x50]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800e3710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rbx, rcx
mov rdx, qword [0x1802c7f10]
mov rax, qword [rdx + 8]
cmp byte [rax + 0x19], 0
jne 0x1800e3748
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x1800e373c
mov rax, qword [rax + 0x10]
jmp 0x1800e3742
mov rdx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1800e3730
cmp byte [rdx + 0x19], 0
jne 0x1800e381e
cmp dword [rdx + 0x20], 4
jg 0x1800e381e
lea r8, [rdx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1800e3771
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x1800e37a3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x1800e3790
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180069540
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1800e37d1
cmp rcx, qword [rbx + 8]
je 0x1800e37d1
cmp qword [rbx + 0x10], 1
jne 0x1800e37dc
mov al, 1
add rsp, 0x80
pop rbx
ret
xor al, al
add rsp, 0x80
pop rbx
ret
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1800e3840
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.1800e3090
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.1800e36b0
lea rdx, [0x18018a948]
lea rcx, [rsp + 0x20]
call fcn.1800e78a0
nop
lea rcx, str.invalid_map_K__T__key
call fcn.1800e490c
int3

Function at 0x1800e495c
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 0x1800e4996
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1800e499b
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 0x1800e49e4
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 0x1800e49e4
dec r8
sub rdx, 1
jne 0x1800e49ca
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1800f90cc
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.1800e6290
sub rsp, rax
mov rax, qword [0x1802c5580]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18010b3cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800f911b
mov rax, rbp
jmp 0x1800f9227
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 + 0x2c94b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18010f538
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x2c94b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800f9223
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800f9223
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18010f538
test rax, rax
js 0x1800f9223
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800f9223
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800f9215
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800f9215
cmp byte [rcx], 0xd
jne 0x1800f91fb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800f920a
cmp byte [rcx + 1], 0xa
jne 0x1800f920a
inc rcx
jmp 0x1800f920a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x2c57d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800f91dd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800f9227
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800e6eb0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret