joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074620
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 [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rsi, qword [rcx + 0x20]
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], Ordinal_133
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14007469c
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_133
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
jmp 0x1400746a1
mov rax, qword [rsp + 0x28]
mov rcx, rdi
cmp rax, 0xffffffffffffffff
jne 0x1400746c0
lea rdx, str.Error_accept__ing_server_connect
call fcn.140057c80
mov eax, 0x1e
jmp 0x14007474c
lea rdx, str.Connection_accepted_from_server
call fcn.140057d70
mov byte [rsi + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x28]
call fcn.14008a430
lea r9, [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
mov rcx, rdi
call fcn.140080630
test eax, eax
jne 0x14007474c
cmp qword [rdi + 0x278], 0
je 0x14007474a
mov dl, 1
mov rcx, rdi
call fcn.14004cf60
mov rdx, qword [rsp + 0x28]
mov r8d, 1
mov rcx, qword [rdi + 0x280]
call qword [rdi + 0x278]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.14004cf60
test ebx, ebx
je 0x14007474a
mov rdx, rsi
mov rcx, rdi
call fcn.140074c30
mov eax, Ordinal_46
jmp 0x14007474c
xor eax, eax
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140092770
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
add rdx, 0x5d0
cmp byte [rdx + 0xfd], 0
jne 0x140075959
xor r8d, r8d
mov dword [rdx + 0xec], r8d
cmp byte [rax + 0x2cf], r8b
je 0x140075913
mov r9, qword [rdx + 0x98]
test r9, r9
je 0x140075913
cmp dword [rdx + 0xe0], r8d
je 0x140075907
mov rax, qword [rdx + 0xa8]
mov rcx, qword [rax]
cmp byte [rcx], 0x2f
je 0x140075913
mov dword [rdx + 0xe4], r8d
mov rcx, rbx
jmp 0x140075933
mov rcx, rbx
cmp dword [rdx + 0xe0], r8d
je 0x140075959
mov r9, qword [rdx + 0xa8]
mov dword [rdx + 0xe4], 1
mov r9, qword [r9]
lea r8, str.CWD__s
call fcn.14008d210
mov r8d, eax
test eax, eax
jne 0x140075963
mov dl, reloc.WS2_32.dll_recv
mov rcx, rbx
call fcn.140074c20
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140075d40
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rdx, qword [rcx + 0x20]
mov rbx, rcx
add rdx, 0x5d0
cmp byte [rcx + 0xaa2], 0
jne 0x140075d66
cmp byte [rcx + 0x530], 0
je 0x140075d98
mov r9, qword [rdx + 0xa0]
test r9, r9
je 0x140075d98
lea r8, str.MDTM__s
call fcn.14008d210
mov r8d, eax
test eax, eax
jne 0x140075da2
mov dl, reloc.WS2_32.dll_select
mov rcx, rbx
call fcn.140074c20
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140076e30
add rsp, 0x20
pop rbx
ret
Function at 0x1400764d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
lea eax, [rdx - 0xc8]
mov rbx, rcx
cmp eax, 0x64
jb 0x14007654f
mov qword [rsp + 0x30], rsi
mov rsi, qword [rcx + 0x20]
mov qword [rsp + 0x38], rdi
mov eax, dword [rsi + 0x6b8]
lea edi, [rax + 1]
test eax, eax
jne 0x14007652b
lea rdx, str.disabling_EPRT_usage
call fcn.140057d70
mov byte [rsi + 0x2da], 0
mov edx, edi
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp 0x140077200
cmp edi, 2
jne 0x140076512
lea rdx, str.Failed_to_do_PORT
call fcn.140057c80
mov rsi, qword [rsp + 0x30]
lea eax, [rdi + 0x1c]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
lea rdx, str.Connect_data_stream_actively
call fcn.140057d70
xor edx, edx
mov rcx, rbx
call fcn.140074c20
add rsp, 0x20
pop rbx
jmp fcn.140074e70
Function at 0x140076870
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a8]
add rdx, 0x5d0
mov rbx, rcx
cmp dword [rax + 0x10], 0
je 0x1400768c0
cmp qword [rdx + 0xa0], 0
je 0x1400768c0
xor r9d, r9d
lea r8, str.REST__d
call fcn.14008d210
mov r8d, eax
test eax, eax
jne 0x1400768ca
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov rcx, rbx
call fcn.140074c20
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140076570
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1a8]
mov rbx, rcx
cmp dword [rax + 0x10], 1
jne 0x140076bdf
mov r9, qword [rdx + 0x670]
test r9, r9
je 0x140076bdf
lea r8, str.SIZE__s
add rdx, 0x5d0
call fcn.14008d210
mov r8d, eax
test eax, eax
jne 0x140076be9
mov dl, reloc.WS2_32.dll_socket
mov rcx, rbx
call fcn.140074c20
mov eax, r8d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.140076870
add rsp, 0x20
pop rbx
ret

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

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x1d4], 0
mov r10, rcx
mov r11, qword [rcx + 0x20]
je 0x140076e89
cmp qword [r11 + 0x670], 0
je 0x140076e89
movzx edx, byte [rcx + 0x136a]
mov rcx, r11
call fcn.1400750e0
test eax, eax
je 0x140076e89
mov rax, qword [r10 + 0x1a8]
mov r9b, reloc.WS2_32.dll_send
mov rdx, r11
mov rcx, r10
mov dword [rax + 0x10], 1
movzx r8d, byte [r10 + 0x136a]
add rsp, 0x28
jmp fcn.140075040
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.140076b90

Function at 0x140076ea0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, qword [rcx + 0x20]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140076edd
lea rdx, str.Couldnt_set_desired_mode
call fcn.140057c80
lea eax, [rdi + 0x11]
jmp 0x140076f39
cmp edx, 0xc8
je 0x140076ef4
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140057d70
cmp sil, 0x13
jne 0x140076f07
mov rdx, rbp
mov rcx, rbx
call fcn.140076b90
jmp 0x140076f35
cmp sil, 0x14
jne 0x140076f17
mov rcx, rbx
call fcn.140075ba0
jmp 0x140076f35
cmp sil, 0x15
jne 0x140076f27
mov rcx, rbx
call fcn.140076b80
jmp 0x140076f35
cmp sil, 0x16
jne 0x140076f37
mov rcx, rbx
call fcn.140076d80
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140080810
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1400d7f88]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x140080874
lea r9d, [rax + 2]
mov dword [rsp + 0x20], 3
xor r8d, r8d
lea ecx, [rax + 6]
xor edx, edx
call fcn.140085750
test al, al
je 0x140080868
mov dword [0x1400d7f88], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1400d7f88], 1
jmp 0x140080879
cmp eax, 2
je 0x1400808cb
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 0x1400808aa
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1400808cb
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 0x140081250
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 0x10]
mov rdi, rdx
mov rsi, rcx
mov r8d, dword [rbx + 0x14]
lea rdx, [rbx + 0x18]
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400812aa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [rbx + 0xe0]
mov rcx, rdi
mov r8d, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140081980
mov rdx, rdi
mov rcx, rsi
call fcn.1400816b0
mov rcx, qword [rbx + 0x98]
mov edx, 1
call fcn.14008a430
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140081440
Capabilities:
Connect socket

Disassembly:
mov rcx, qword [rcx + 0x10]
test r8b, r8b
jne 0x14008145f
mov r8d, dword [rcx + 0x14]
lea rdx, [rcx + 0x18]
mov rcx, qword [rcx + 0x98]
jmp qword [sym.imp.WS2_32.dll_connect]
mov eax, 0xffffffff
ret

Function at 0x140081470
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
sub rsp, 0x138
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov rax, qword [rcx]
mov rsi, rcx
mov rdi, r9
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
cdqe
cmp rax, 0xffffffffffffffff
jne 0x14008151b
mov qword [rsp + 0x130], rbx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1400814d7
mov dword [rdi], 0x51
jmp 0x14008150c
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.1400491a0
mov rcx, qword [rsi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.140057c80
mov rax, qword [rsi + 8]
mov dword [rax + 0xd7c], ebx
mov dword [rdi], gethostname
mov rbx, qword [rsp + 0x130]
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140092770
add rsp, 0x138
pop rdi
pop rsi
ret

Function at 0x140081680
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
sub rsp, 0x38
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x48]
lea r8d, [rdx - 0xe]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x38
ret
Function at 0x1400816b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x1400817f3
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
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
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140081781
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1400491a0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140057c80
mov eax, 2
jmp 0x1400817f5
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.140058970
test al, al
jne 0x1400817f3
mov qword [rsp + 0x1e0], rdi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400491a0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140057c80
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x1400817f5
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140092770
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140081ab0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
mov dword [rsp + 0x20], 4
mov eax, esi
lea r9, [rsp + 0x50]
cmp byte [rcx + 0xac3], al
mov rdi, rdx
mov rbx, rcx
mov edx, 0xffff
setne al
lea r8d, [rsi + 8]
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140081b1f
mov r8, rdi
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, rbx
call fcn.140057d70
jmp 0x140081bae
mov ecx, dword [rbx + 0xa2c]
mov dword [rsp + 0x58], 1
call fcn.140059bf0
imul ecx, eax, 0x3e8
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x5c], ecx
mov ecx, dword [rbx + 0xa30]
call fcn.140059bf0
imul ecx, eax, 0x3e8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
mov r9d, ntohs
mov qword [rsp + 0x30], rax
mov edx, 0x98000004
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x60], ecx
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140081bae
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, edi
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov r9d, eax
mov rcx, rbx
call fcn.140057d70
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140092770
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140081bd0
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, rdx
mov dword [rsp + 0x30], 1
mov edx, 6
mov dword [rsp + 0x20], 4
mov rbx, rcx
lea r9, [rsp + 0x30]
mov rcx, rax
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140081c46
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, eax
call fcn.1400491a0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rbx
call fcn.140057d70
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140092770
add rsp, 0x150
pop rbx
ret
Function at 0x14008eac0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d76b0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rsi, r8
mov dword [rsp + 0x40], 8
mov rbx, rdx
mov dword [rsp + 0x20], 0xf0000040
mov rdi, rcx
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14008eb8c
mov qword [rsp + 0xa0], rbp
lea rdx, [rsp + 0x64]
xor ebp, ebp
mov dword [rsp + 0x58], 0x208
mov rcx, rsi
mov qword [rsp + 0x64], rbp
mov dword [rsp + 0x5c], 0x6601
mov dword [rsp + 0x60], 8
call fcn.14008ec00
lea rcx, [rsp + 0x64]
lea edx, [rbp + 8]
call fcn.1400925e0
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbp, qword [rsp + 0xa0]
test eax, eax
jne 0x14008eb90
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14008ebda
mov rax, qword [rdi]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
xor r8d, r8d
mov qword [rbx], rax
xor edx, edx
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140092770
add rsp, 0x80
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008fa70
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.14005c560
test eax, eax
je 0x14008faba
mov ebp, dword [rsi + 0x150]
cmp ebp, 0x191
je 0x14008fae1
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rbx
call fcn.14005c560
test eax, eax
je 0x14008fb27
mov ebp, dword [rsi + 0x150]
cmp ebp, 0x197
jne 0x14008fb27
mov rcx, rbx
call fcn.14005f380
mov rbx, rax
test rax, rax
jne 0x14008faf9
lea eax, [rbx + 0x1b]
jmp 0x14008fceb
cmp ebp, 0x197
mov r8, rbx
mov rcx, rsi
sete dl
call fcn.140060660
mov rcx, rbx
mov edi, eax
call qword [fcn.1400939ca]
test edi, edi
je 0x14008fce9
mov eax, edi
jmp 0x14008fceb
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rbx
call fcn.14005c560
test eax, eax
je 0x14008fb82
mov r8d, dword [rsi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14008fb67
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140057d70
jmp 0x14008fce9
xor edx, edx
lea r9, [r14 + 0x2a8]
lea rcx, [rbx + 0xf]
lea r8d, [rdx + 0xa]
call fcn.140064870
jmp 0x14008fce9
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, ntohs
lea rdx, str.Connection:
mov rcx, rbx
call fcn.14005f2b0
test al, al
jne 0x14008fce1
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rbx
call fcn.14005c560
test eax, eax
je 0x14008fc40
mov r8d, dword [rsi + 0x150]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x14008fbef
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rsi
call fcn.140057d70
jmp 0x14008fce9
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.14005f2b0
test al, al
je 0x14008fce9
lea rdx, str.CONNECT_responded_chunked
mov rcx, rsi
call fcn.140057d70
mov rcx, rsi
mov byte [r14 + 0x2b4], 1
call fcn.140085c50
jmp 0x14008fce9
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.14005f2b0
test al, al
jne 0x14008fce1
mov r8d, 7
lea rdx, str.HTTP_1.
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14008fce9
movzx eax, byte [rbx + 7]
sub al, 0x30
cmp al, 1
ja 0x14008fce9
cmp byte [rbx + 8], 0x20
jne 0x14008fce9
movsx ecx, byte [rbx + 9]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x14008fce9
movsx edx, byte [rbx + 0xa]
lea eax, [rdx - 0x30]
cmp al, 9
ja 0x14008fce9
movsx r8d, byte [rbx + 0xb]
lea eax, [r8 - 0x30]
cmp al, 9
ja 0x14008fce9
movzx eax, byte [rbx + 0xc]
sub al, 0x30
cmp al, 9
jbe 0x14008fce9
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 + 0x150], ecx
mov dword [rsi + 0x1384], ecx
jmp 0x14008fce9
mov byte [r14 + 0x2b5], 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 0x140091530
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 [section..data]
mov rbx, rax
test rax, rax
jne 0x140091575
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 0x1400915c0
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 0x140091622
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 0x1400915e0
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140091663
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1400a28e9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1400a28ea]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140091630
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 0x1400925e0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rcx
test rdx, rdx
je 0x140092645
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 0x1400925f0
ret

Function at 0x1400934cc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140093516
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140093516
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140093516
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140093516
cmp dword [rcx + 0x84], 0xe
jbe 0x140093516
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140093518
xor al, al
add rsp, 0x28
ret
Function at 0x140080bc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140080c12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140080c12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140080c12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140080c12
cmp dword [rcx + 0x84], 0xe
jbe 0x140080c12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140080c14
xor al, al
add rsp, 0x28
ret

Function at 0x1400843b8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140084427
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140084427
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140084427
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140084427
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140084427
cmp dword [rcx + 0x84], 0xe
jbe 0x140084427
cmp dword [rcx + 0xf8], 0
je 0x140084427
mov ecx, ebx
call fcn.1400844d8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400842b4
nop
cmp dword [rbp + 0x20], 0
je 0x140084475
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140084480
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400843b8

Function at 0x1400845bc
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400843b8
Function at 0x140087028
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400870af
mov rsi, rbx
cmp word [rax], bp
je 0x14008706e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140087058
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140087054
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140087ea4
mov rdi, rax
test rax, rax
je 0x14008709c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14008cf80
mov rbp, rdi
xor ecx, ecx
call fcn.140085d18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret