joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401140c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, rdx
call fcn.1401803d0
mov r8, rax
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1401140f4

Function at 0x1401140f4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov r9, qword [rcx + 0x78]
mov rdi, r8
mov rsi, rdx
test r9, r9
je 0x140114121
mov edx, 1
mov rcx, rsi
call fcn.14017c144
jmp 0x140114146
add rcx, 0x110
mov edx, edi
call fcn.140112070
mov r8, rdi
mov rdx, rsi
mov rbx, rax
lea rcx, [rax - 1]
call fcn.140178930
mov byte [rbx + rdi - 1], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140121b14
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
mov rbp, rdx
mov rcx, rdx
call fcn.1400ce2ac
mov rcx, rsi
mov qword [rsp + 0x40], rax
call fcn.1400ce2ac
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.14000de60
xor edi, edi
mov r14, qword [rax]
test r14, r14
je 0x140121b84
mov rdx, rdi
mov rcx, rsi
call fcn.140104968
mov rdx, rdi
mov rcx, rbp
mov rbx, rax
call fcn.140104968
inc rdi
mov cl, byte [rax]
xor byte [rbx], cl
cmp rdi, r14
jb 0x140121b5f
mov rbx, qword [rsp + 0x48]
mov rax, rsi
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x140129340
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x2d0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
call fcn.140129418
test al, al
jne 0x1401293fd
mov ecx, 0x202
lea rdx, [rsp + 0x120]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1401293f6
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x1401293ed
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
jl 0x1401293ed
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.140027a90
nop
lea rdx, str.Failed_to_Initate_WinSock2.2
lea rcx, [rsp + 0x30]
call fcn.14002c360
mov rax, qword [rbx]
lea r9, [rsp + 0x30]
lea r8, str.WinSock2
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.14001a870
mov byte [0x14029583f], 0
jmp 0x1401293fd
mov byte [0x14029583f], 1
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140158980
add rsp, 0x2d0
pop rbx
ret
Function at 0x14012a1a8
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, 2
mov word [rcx], di
movzx ecx, dx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbx + 4]
mov ecx, edi
lea rdx, str.127.0.0.1
mov word [rbx + 2], ax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_inet_pton]

Function at 0x14012a1e8
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov edi, reloc.WS2_32.dll_socket
mov word [rcx], di
movzx ecx, dx
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [rbx + 8]
mov ecx, edi
lea rdx, [0x1401e2d1c]
mov word [rbx + 2], ax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_inet_pton]

Function at 0x14012a228
Capabilities:
Connect socket

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp dword [rcx], 0x17
mov rbx, rcx
jne 0x14012a264
lea rcx, [rsp + 0x20]
call fcn.14012a1e8
mov rcx, rbx
call fcn.14012a500
mov r8d, 0x1c
lea rdx, [rsp + 0x20]
jmp 0x14012a281
lea rcx, [rsp + 0x20]
call fcn.14012a1a8
mov rcx, rbx
call fcn.14012a500
mov r8d, send
lea rdx, [rsp + 0x20]
movsxd rcx, eax
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
mov ecx, eax
sete al
mov byte [rbx + 4], al
mov eax, ecx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140158980
add rsp, 0x50
pop rbx
ret
Function at 0x14012a2ac
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rbp
push rdi
push r14
lea rbp, [rax - 0x48]
sub rsp, 0x130
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov eax, edx
mov r14, rcx
mov edx, 2
lea r8d, [rdx + 0xf]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp byte [rbp + 0x70], 0
je 0x14012a30f
mov dword [rbp + 0x70], 1
lea r8, [rbp + 0x70]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp qword [rbp + 0x60], 0
je 0x14012a3f6
mov dword [rsp + 0x20], 8
lea r9, [rbp + 0x60]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14012a3f6
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012a3f6
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x14012a3f6
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_UDP_send_buffer_size_to
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
mov rdx, qword [rbp + 0x60]
call fcn.140104814
mov rcx, rax
lea rdx, str._for_socket
call fcn.14002c360
mov rcx, rax
mov rdx, rdi
call fcn.140104814
mov rcx, rax
lea rdx, str._error_code:
call fcn.14002c360
mov rcx, rax
mov edx, ebx
call fcn.140028610
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
lea r8, str.SimpleUDP
mov edx, 3
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
cmp qword [rbp + 0x68], 0
je 0x14012a4de
mov dword [rsp + 0x20], 8
lea r9, [rbp + 0x68]
mov edx, 0xffff
mov r8d, 0x1002
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14012a4de
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012a4de
mov r9, qword [rax]
mov rcx, rax
call qword [r9 + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x14012a4de
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed_to_set_UDP_receive_buffer_size_to
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
mov rdx, qword [rbp + 0x68]
call fcn.140104814
mov rcx, rax
lea rdx, str._for_socket
call fcn.14002c360
mov rcx, rax
mov rdx, rdi
call fcn.140104814
mov rcx, rax
lea rdx, str._error_code:
call fcn.14002c360
mov rcx, rax
mov edx, ebx
call fcn.140028610
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
lea r8, str.SimpleUDP
mov edx, 3
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
mov edx, edi
mov rcx, r14
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
jmp 0x14012a5e0
mov dword [rcx + 8], edx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, r8
mov rdi, rdx
call fcn.14012a500
movsxd rcx, eax
xor r9d, r9d
mov r8d, ebx
mov rdx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.WS2_32.dll_send]
Function at 0x14012a538
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp byte [rcx + 4], 0
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
je 0x14012a565
call fcn.14012a504
jmp 0x14012a5c8
cmp dword [rcx], 0x17
movzx edx, r9w
jne 0x14012a592
lea rcx, [rsp + 0x30]
call fcn.14012a1e8
mov rcx, rbx
call fcn.14012a500
movsxd rcx, eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], 0x1c
jmp 0x14012a5b4
lea rcx, [rsp + 0x30]
call fcn.14012a1a8
mov rcx, rbx
call fcn.14012a500
movsxd rcx, eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], socket
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, rdi
call qword [sym.imp.WS2_32.dll_sendto]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140158980
add rsp, 0x60
pop rdi
pop rsi
pop rbx
ret
Function at 0x14012c380
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov r12, r8
mov r14, rdx
mov r15, rcx
xor edi, edi
mov dword [rsp + 0x68], edi
cmp byte [rcx + 0x50], dil
je 0x14012c428
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x14012c419
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x14012c419
lea edx, [rdi + 2]
lea r8d, [rdi + 1]
lea rcx, [rbp - 0x80]
call fcn.140027a90
nop
lea rdx, str.Cipher_not_properly_initialized_for_decryption._Aborting
lea rcx, [rbp - 0x80]
call fcn.14002c360
mov rax, qword [rbx]
lea r9, [rbp - 0x80]
mov r8, qword [str.BCryptSymmetricCipherImpl]
lea edx, [rdi + 1]
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x80]
call fcn.14001a870
xor edx, edx
mov rcx, r14
call fcn.140102308
jmp 0x14012c5b8
mov rcx, r12
call fcn.1400ce2ac
test rax, rax
je 0x14012c419
mov r13, rdi
mov dword [rbp + 0xc8], edi
cmp qword [r15 + 0x88], rdi
je 0x14012c463
lea rcx, [r15 + 0x70]
call fcn.1400d5658
mov r13, rax
lea rcx, [r15 + 0x70]
call fcn.1400ce2ac
mov qword [rbp + 0xc8], rax
mov rcx, r12
call fcn.1400ce2ac
mov dword [rbp + 0xb0], eax
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140102308
nop
lea rcx, [rsp + 0x50]
call fcn.1400ce2ac
mov rsi, rax
lea rcx, [rsp + 0x50]
call fcn.1400d5658
mov rbx, rax
mov rcx, r12
call fcn.1400ce2ac
mov rdi, rax
mov rcx, r12
call fcn.1400d5658
mov rdx, rax
mov ecx, dword [r15 + 0x68]
mov dword [rsp + 0x48], ecx
lea rax, [rbp + 0xb0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rbx
mov rax, qword [rbp + 0xc8]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r13
mov r9, qword [r15 + 0x88]
mov r8d, edi
mov rcx, qword [r15 + 0x60]
call sub.bcrypt.dll_BCryptDecrypt
mov edi, eax
test eax, eax
jns 0x14012c571
mov byte [r15 + 0x50], 1
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x14012c565
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
jl 0x14012c565
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rbp - 0x80]
call fcn.140027a90
nop
lea rdx, str.Failed_to_compute_encrypted_output_with_error_code
lea rcx, [rbp - 0x80]
call fcn.14002c360
mov rcx, rax
mov edx, edi
call fcn.1401046dc
mov rax, qword [rbx]
lea r9, [rbp - 0x80]
mov r8, qword [str.BCryptSymmetricCipherImpl]
mov edx, 2
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rbp - 0x80]
call fcn.14001a870
xor edx, edx
mov rcx, r14
call fcn.140102308
jmp 0x14012c5ae
mov ebx, dword [rbp + 0xb0]
lea rcx, [rsp + 0x50]
call fcn.1400ce2ac
cmp rbx, rax
jae 0x14012c5a0
lea rcx, [rsp + 0x50]
call fcn.1400d5658
mov rdx, rax
mov r8d, ebx
mov rcx, r14
call fcn.1401022e4
jmp 0x14012c5ae
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140102260
nop
lea rcx, [rsp + 0x50]
call fcn.1401037a8
mov rax, r14
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012d970
Capabilities:
Generate random numbers via winapi

Disassembly:
test r8, r8
je 0x14012da9f
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rsi
mov rdi, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14012da26
xor r9d, r9d
call sub.bcrypt.dll_BCryptGenRandom
mov esi, eax
test eax, eax
jns 0x14012da8f
mov byte [rdi + 8], 1
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x14012da8f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x14012da8f
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.140027a90
nop
lea rdx, str.Failed_to_generate_random_number_with_status
lea rcx, [rsp + 0x30]
call fcn.14002c360
mov rcx, rax
mov edx, esi
call fcn.1401046dc
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
mov r8, qword [str.SecureRandom_BCrypt]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x18]
nop
jmp 0x14012da85
mov byte [rdi + 8], 1
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x14012da8f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 1
jl 0x14012da8f
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.140027a90
nop
lea rdx, str.Algorithm_handle_not_initialized
lea rcx, [rsp + 0x30]
call fcn.14002c360
mov rax, qword [rdi]
lea r9, [rsp + 0x30]
mov r8, qword [str.SecureRandom_BCrypt]
mov edx, 1
mov rcx, rdi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.14001a870
mov rsi, qword [rsp + 0x130]
add rsp, 0x120
pop rdi
ret
Function at 0x14012dad4
Capabilities:
Hash data via bcrypt

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x140
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rsp + 0x170]
mov rdx, rax
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x14012db8b
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012db7e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov edi, 2
cmp eax, edi
jl 0x14012db7e
lea r8d, [rdi - 1]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140027a90
nop
lea rdx, str.Error_computing_hash.
lea rcx, [rsp + 0x50]
call fcn.14002c360
mov rax, qword [rsi]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, edi
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x50]
call fcn.14001a870
mov rcx, rbx
call fcn.14012a768
jmp 0x14012dc27
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rsi]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x14012dc00
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012db7e
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov edi, 2
cmp eax, edi
jl 0x14012db7e
lea r8d, [rdi - 1]
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.140027a90
nop
lea rdx, str.Error_obtaining_computed_hash
lea rcx, [rsp + 0x50]
call fcn.14002c360
mov rax, qword [rsi]
lea r9, [rsp + 0x50]
mov r8, qword [str.CryptoHash]
mov edx, edi
mov rcx, rsi
call qword [rax + 0x18]
nop
jmp 0x14012db74
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.140100db4
mov rdx, rax
mov rcx, rbx
call fcn.14012a73c
lea rcx, [rsp + 0x30]
call fcn.1400a0070
mov rax, rbx
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14012dc40
Capabilities:
Hash data via bcrypt

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x2040]
mov eax, 0x2140
call fcn.140159760
sub rsp, rax
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x2170], rbx
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0x2030], rax
mov rbx, rdx
mov rdi, rcx
mov r9d, dword [rcx + 0x18]
mov r8, qword [rcx + 0x20]
mov rdx, qword [rcx]
lea rcx, [rsp + 0x20]
call fcn.14012ac4c
nop
lea rcx, [rsp + 0x20]
call fcn.140104a88
test al, al
jne 0x14012dd0d
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012de71
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 2
cmp eax, ebx
jl 0x14012de71
lea edi, [rbx - 1]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Error_creating_hash_handle.
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x18]
nop
jmp 0x14012ddcb
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call fcn.14011afbc
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.140004070
test al, al
je 0x14012ddda
mov r8d, 0x2000
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.14011ac54
mov rcx, rbx
call fcn.1400ce2ac
test rax, rax
jle 0x14012dd1a
xor r9d, r9d
mov r8d, eax
lea rdx, [rbp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x14012dd1a
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012de71
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 2
cmp eax, ebx
jl 0x14012de71
lea edi, [rbx - 1]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Error_computing_hash.
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
jmp 0x14012de71
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
call fcn.14012e8cc
test al, al
je 0x14012de71
xor r9d, r9d
mov r8d, dword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rsp + 0x20]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x14012de6a
call fcn.14010cdc0
mov rsi, rax
test rax, rax
je 0x14012de71
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov ebx, 2
cmp eax, ebx
jl 0x14012de71
lea edi, [rbx - 1]
mov r8d, edi
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Error_obtaining_computed_hash
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rax, qword [rsi]
lea r9, [rsp + 0x40]
mov r8, qword [str.CryptoHash]
mov edx, ebx
mov rcx, rsi
call qword [rax + 0x18]
nop
jmp 0x14012ddcb
mov edi, 1
jmp 0x14012de74
xor dil, dil
lea rcx, [rsp + 0x20]
call fcn.14012b584
mov al, dil
mov rcx, qword [rbp + 0x2030]
xor rcx, rsp
call fcn.140158980
mov rbx, qword [rsp + 0x2170]
add rsp, 0x2140
pop rdi
pop rsi
pop rbp
ret
Function at 0x14012f580
Capabilities:
Read data from internet
Receive data

Disassembly:
sub rsp, 0x28
mov rax, r9
mov r10, r8
mov r9, qword [rsp + 0x50]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14012f5f4
Capabilities:
Send data

Disassembly:
sub rsp, 0x38
and dword [rsp + 0x20], 0
mov rax, r9
mov r10, r8
lea r9, [rsp + 0x20]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x14012f61f
xor eax, eax
jmp 0x14012f623
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140130420
Capabilities:
Set http header

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x150
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rdx
mov rsi, rcx
mov rcx, r8
call fcn.14000a920
mov rdx, rax
lea rcx, [rsp + 0x120]
call fcn.14012018c
nop
lea rcx, [rsp + 0x120]
call fcn.14000a910
mov rbx, rax
lea rcx, [rsp + 0x120]
call fcn.14000a480
mov rdx, rax
mov r9d, 0xa0000000
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x140130518
call fcn.14010cdc0
mov rdi, rax
test rax, rax
je 0x140130518
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 2
jl 0x140130518
mov edx, 2
lea r8d, [rdx - 1]
lea rcx, [rsp + 0x30]
call fcn.140027a90
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.Failed_to_add_HTTP_request_headers_with_error_code:
lea rcx, [rsp + 0x30]
call fcn.14002c360
mov rcx, rax
mov edx, ebx
call fcn.140028460
mov rbx, qword [rdi]
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x18]
mov r8, rax
lea r9, [rsp + 0x30]
mov edx, 2
mov rcx, rdi
call qword [rbx + 0x18]
nop
lea rcx, [rsp + 0x30]
call fcn.14001a870
nop
lea rcx, [rsp + 0x120]
call fcn.140004dc0
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140158980
add rsp, 0x150
pop rdi
pop rsi
pop rbx
ret
Function at 0x140130918
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rax, r9
mov r10, r8
mov r9, qword [rsp + 0x50]
mov rcx, rdx
mov r8d, eax
mov rdx, r10
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140130940
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, rdx
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140132cec
Capabilities:
Connect to http server

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
mov rdi, r8
mov rcx, rdx
call fcn.14000a920
mov rcx, rsi
mov rbx, rax
call fcn.1400ce2ac
and qword [rsp + 0x38], 0
mov rcx, rax
movzx r8d, word [rdi]
xor r9d, r9d
mov dword [rsp + 0x30], 0x400000
mov rdx, rbx
mov dword [rsp + 0x28], 3
and qword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetConnectA]
mov rcx, rsi
mov rbx, rax
call fcn.14010cdcc
mov rcx, rsi
mov dword [rsp + 0x60], eax
call fcn.140132db4
mov edi, 4
mov dword [rsp + 0x68], eax
mov r9d, edi
lea r8, [rsp + 0x60]
mov rcx, rbx
lea edx, [rdi - 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov r9d, edi
lea r8, [rsp + 0x68]
lea edx, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x14015dbcc
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14015dbdf
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14015e1ec
lea rdx, [0x14026f8b0]
lea rcx, [rsp + 0x20]
call fcn.140178f20
int3

Function at 0x140168468
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140296b68]
xor edx, edx
jmp fcn.14015dbcc

Function at 0x140168df8
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140296b68]
jmp fcn.14015dbcc

Function at 0x1401749b0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140174a6c]
mov r9, qword [r9 + 8]
jmp fcn.140165e20

Function at 0x140174a44
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rcx + 0x98], rdx
mov r8, rcx
mov r9, qword [rdx + 0x1a8]
add rcx, 0x40
lea rdx, [0x140174a7c]
mov r9, qword [r9 + 8]
jmp fcn.140165e20