joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f190
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x14002b820], ebx
jne 0x14001f397
mov rax, qword [0x14002b818]
test rax, rax
jne 0x14001f399
lea rdi, [0x14002b7d0]
lea r8d, [rbx + 0x48]
xor edx, edx
mov rcx, rdi
call fcn.140005880
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.dbghelp.dll
mov qword [0x14002b7d0], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x14002b7d8], rax
test rax, rax
je 0x14001f34e
lea rdx, str.ImagehlpApiVersionEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002b7d8]
lea rdx, str.SymInitialize
mov qword [0x14002b7e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002b7d8]
lea rdx, str.SymSetOptions
mov qword [0x14002b7e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002b7d8]
lea rdx, str.SymGetOptions
mov qword [0x14002b7f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002b7d8]
lea rdx, str.SymLoadModule64
mov qword [0x14002b7f8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002b7d8]
lea rdx, str.SymGetModuleInfo64
mov qword [0x14002b800], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14002b7d8]
lea rdx, str.SymFromName
mov qword [0x14002b808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x14002b7e0]
xor ecx, ecx
lea esi, [rbx + 0xc]
mov qword [rsp + 0x30], rcx
mov qword [0x14002b810], rax
mov word [rsp + 0x30], si
test rdx, rdx
je 0x14001f347
cmp qword [0x14002b7e8], rbx
je 0x14001f347
cmp qword [0x14002b800], rbx
je 0x14001f347
cmp qword [0x14002b808], rbx
je 0x14001f347
test rax, rax
je 0x14001f347
lea rcx, [rsp + 0x30]
call rdx
cmp word [rsp + 0x30], si
jb 0x14001f347
mov rcx, qword [0x14002b7d0]
xor r8d, r8d
xor edx, edx
call qword [0x14002b7e8]
test eax, eax
je 0x14001f347
mov rcx, qword [0x14002b7f8]
test rcx, rcx
je 0x14001f33b
cmp qword [0x14002b7f0], rbx
je 0x14001f33b
call rcx
and eax, 0xfffffffc
or eax, 0x2704
mov ecx, eax
call qword [0x14002b7f0]
mov qword [0x14002b818], rdi
mov rax, rdi
jmp 0x14001f399
mov rax, qword [0x14002b7d8]
mov dword [0x14002b820], 1
test rax, rax
je 0x14001f366
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x14002b7e0], rbx
mov qword [0x14002b7e8], rbx
mov qword [0x14002b7f0], rbx
mov qword [0x14002b7f8], rbx
mov qword [0x14002b800], rbx
mov qword [0x14002b808], rbx
mov qword [0x14002b810], rbx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f3ac
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r12d, r12d
test rcx, rcx
jne 0x14001f3d9
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x14001f3f5
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001f4c4
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
je 0x14001f416
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001f4c4
cmp word [rbx + 0x14], r12w
jne 0x14001f42f
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001f4c4
movzx eax, word [rbx + 0x14]
lea r15, [rbx + 0x18]
add r15, rax
mov esi, r12d
mov dword [rsp + 0x20], r12d
movzx eax, word [rbx + 6]
cmp esi, eax
jae 0x14001f4a8
mov eax, esi
lea rcx, [rax + rax*4]
lea r14, [r15 + rcx*8]
lea rdx, str..detour
mov rcx, r14
call fcn.14000c000
test eax, eax
jne 0x14001f4a0
cmp dword [r14 + 0xc], r12d
je 0x14001f4a8
cmp dword [r14 + 0x10], r12d
je 0x14001f4a8
mov ebx, dword [r14 + 0xc]
add rbx, rdi
mov eax, dword [rbx]
cmp eax, 0x40
jb 0x14001f4a8
cmp dword [rbx + 4], 0x727444
jne 0x14001f4a8
cmp dword [rbx + 8], r12d
jne 0x14001f493
mov dword [rbx + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x14001f4c4
inc esi
mov dword [rsp + 0x20], esi
jmp 0x14001f442
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001f4c4
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x14001f844
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
test rcx, rcx
mov ebx, 0x10000
je 0x14001f85b
lea rbx, [rcx + 0x10000]
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140005880
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14001f8b6
cmp dword [rsp + 0x40], 0x1000
jne 0x14001f8b8
test dword [rsp + 0x44], 0x100
jne 0x14001f8b8
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x14001f8b8
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x14001f8b8
mov rax, rbx
jmp 0x14001f8b6
jmp 0x14001f8c4
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x14001f86b
add rsp, 0x50
pop rbx
ret
Function at 0x140001e44
Capabilities:
Hash data using fnv

Disassembly:
mov r9, qword [rcx + 8]
mov r8d, 0x811c9dc5
jmp 0x140001e60
inc r9
movsx eax, byte [r9]
imul ecx, eax, 0x1000193
xor r8d, ecx
cmp byte [r9], 0
jne 0x140001e50
mov dword [rdx], r8d
mov rax, rdx
ret

Function at 0x14000227c
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [0x140021084]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
movsxd rcx, dword [0x140021084]
mov rdi, rax
shl rcx, 3
call qword [sym.imp.msvcrt.dll_malloc]
xor r14d, r14d
mov qword [0x140021088], rax
cmp dword [0x140021084], r14d
mov ebp, r14d
jle 0x140002322
mov rsi, rdi
mov rax, qword [rsi]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r14w
jne 0x1400022df
lea rcx, [rbx + 1]
call qword [sym.imp.msvcrt.dll_malloc]
mov rcx, qword [0x140021088]
lea r8, [rbx + 1]
mov rdx, rsi
sub rdx, rdi
mov qword [rdx + rcx], rax
mov rcx, rax
mov rdx, qword [rsi]
call qword [sym.imp.msvcrt.dll_wcstombs]
inc ebp
add rsi, 8
cmp ebp, dword [0x140021084]
jl 0x1400022d8
mov rcx, rdi
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
jmp qword [sym.imp.KERNEL32.dll_LocalFree]

Function at 0x14000237c
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rcx
push rdi
sub rsp, 0x40
mov qword [r11 - 0x10], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov dword [rsp + 0x30], 1
mov qword [r11 + 0x10], rax
mov edx, dword [rdx + 8]
sub edx, dword [rbx]
lea rax, [r11 + 0x10]
mov qword [r11 - 0x28], rax
xor r9d, r9d
mov r8d, 0x4000000c
mov rcx, qword [rbx]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rdx, qword [rsp + 0x58]
dec rdx
mov rcx, rdi
call fcn.140001bd0
mov r9, qword [rdi + 8]
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
mov rax, r9
neg rax
sbb r10, r10
and qword [rsp + 0x58], r10
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r8d, 0x4000000c
mov rcx, qword [rbx]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
mov rax, rdi
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1400024a8
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x50
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rbx, rdx
mov rdi, rcx
and dword [rax - 0x18], 0
and qword [rcx + 8], 0
and qword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
mov dword [rax - 0x18], 1
and qword [rax + 0x18], 0
mov edx, dword [rdx + 8]
sub edx, dword [rbx]
and qword [rax - 0x28], 0
and qword [rax - 0x30], 0
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r9 + 6]
mov rcx, qword [rbx]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov byte [rsp + 0x68], 0
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rcx, rdi
call fcn.140002428
mov r9, qword [rdi + 8]
mov rdx, qword [rbx + 8]
sub rdx, qword [rbx]
mov rax, r9
neg rax
sbb r10, r10
and qword [rsp + 0x70], r10
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r8d, 6
mov rcx, qword [rbx]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret

Function at 0x140002574
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rdx
and dword [rsp + 0x20], 0
mov rdx, r8
mov rcx, rbx
call fcn.1400025c4
mov dword [rsp + 0x20], 1
mov r8, qword [rbx + 8]
mov rdx, qword [rbx + 0x10]
sub edx, r8d
mov rcx, qword [0x1400210c0]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x1400027b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
lea rcx, str.bcrypt_alt_prov
xorps xmm1, xmm1
movdqa xmmword [0x140021100], xmm0
xor r8d, r8d
movdqa xmmword [0x140021110], xmm1
xor edx, edx
movdqa xmmword [0x140021120], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x1400027f5
lea rcx, str.bcrypt_alt.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r9d, r9d
lea rdx, [0x140016770]
xor r8d, r8d
lea rcx, [0x1400210d0]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [0x1400210d0]
lea r8, str.ChainingModeCBC
and dword [rsp + 0x20], 0
lea rdx, str.ChainingMode
mov r9d, 0x20
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
xor r9d, r9d
lea rdx, [0x140016770]
xor r8d, r8d
lea rcx, [0x1400210d8]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [0x1400210d8]
lea r8, str.ChainingModeECB
and dword [rsp + 0x20], 0
lea rdx, str.ChainingMode
mov r9d, 0x20
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov rax, qword [0x1400210d8]
lea rdx, [0x1400167d8]
and qword [0x1400210f0], 0
lea rcx, [0x140021100]
xorps xmm0, xmm0
mov qword [0x1400210f8], rax
xor r9d, r9d
movdqa xmmword [0x1400210e0], xmm0
xor r8d, r8d
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor r9d, r9d
lea rdx, [0x1400167e0]
xor r8d, r8d
lea rcx, [0x140021108]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor r9d, r9d
lea rdx, str.ECDH
xor r8d, r8d
lea rcx, [0x140021110]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov rcx, qword [0x140021110]
lea r8, str.curve25519
and dword [rsp + 0x20], 0
lea rdx, str.ECCCurveName
mov r9d, socket
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
xor r9d, r9d
lea rdx, [0x140016830]
xor r8d, r8d
lea rcx, [0x140021118]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
xor r9d, r9d
lea rdx, str.SHA1
xor r8d, r8d
lea rcx, [0x140021120]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov r9d, 8
lea rdx, str.SHA256
xor r8d, r8d
lea rcx, [0x140021128]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
lea rax, [0x1400210d0]
add rsp, 0x38
ret

Function at 0x140002968
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rbx, rdx
and dword [rsp + 0x20], 0
mov edx, 0x80
mov rcx, rbx
call fcn.1400025c4
mov dword [rsp + 0x20], 1
mov rdx, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
sub r8d, edx
xor r9d, r9d
mov rcx, qword [0x140021118]
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140004378
Capabilities:
Encode data using xor

Disassembly:
neg r8d
mov r10, rcx
movsxd r11, r8d
mov r9, rdx
mov r8d, 0xa
sub r10, rdx
movsxd rcx, dword [r10 + r9]
movsxd rdx, dword [r9]
xor rdx, rcx
and rdx, r11
mov rax, rdx
xor rax, rcx
mov qword [r10 + r9], rax
movsxd rax, dword [r9]
xor rax, rdx
mov qword [r9], rax
lea r9, [r9 + 8]
sub r8, 1
jne 0x14000438d
ret
Function at 0x140004a04
Capabilities:
Encrypt data using curve25519

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
movups xmm0, xmmword [rdx]
mov rbx, rcx
lea rcx, [rsp + 0x40]
movups xmm1, xmmword [rdx + 0x10]
mov rdx, r8
movd eax, xmm0
movups xmmword [rsp + 0x30], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [rsp + 0x20], xmm0
mov byte [rsp + 0x20], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x3f], al
call fcn.1400038b4
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x20]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x10]
call fcn.1400043b8
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140004698
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x70]
call fcn.140003474
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.140003aa8
mov rbx, qword [rsp + 0x150]
xor eax, eax
add rsp, 0x140
pop rbp
ret

Function at 0x140004e10
Capabilities:
Get file size

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, rcx
and dword [rbp - 9], 0
movups xmm0, xmmword [rdx]
movdqu xmmword [rbp + 7], xmm0
mov r8d, 0x80000000
lea rdx, [rbp + 7]
lea rcx, [rbp + 0x17]
call fcn.140004b20
nop
and qword [rbx + 8], 0
and qword [rbx + 0x10], 0
and qword [rbx + 0x18], 0
mov dword [rbp - 9], 1
xor edx, edx
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
mov rcx, rbx
call fcn.140001bd0
xor edx, edx
mov rcx, qword [rbp + 0x1f]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r8d, eax
mov rax, qword [rbp + 0x17]
mov rdx, qword [rbx + 8]
lea rcx, [rbp + 0x17]
call qword [rax + 0x68]
nop
lea rax, [0x140016880]
mov qword [rbp + 0x17], rax
mov rcx, qword [rbp + 0x1f]
cmp rcx, 0xffffffffffffffff
je 0x140004ebd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [rbp + 0x1f], 0xffffffffffffffff
lea rcx, [rbp + 0x27]
call fcn.140001bac
nop
lea rax, [0x1400168f8]
mov qword [rbp + 0x17], rax
mov rax, rbx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rbp
ret
Function at 0x140005f34
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rax, [0x1400168f8]
mov qword [rcx], rax
lea rax, [0x140016be0]
mov qword [rcx], rax
lea rax, [rcx + 8]
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov dword [rbx + 0x28], ecx
or qword [rbx + 0x30], 0xffffffffffffffff
mov word [rbx + 0x38], cx
cmp word [0x1400212c0], cx
jne 0x140005faa
mov ecx, 0x202
lea rdx, [0x1400212c0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea rcx, [0x140005f18]
call qword [sym.imp.msvcrt.dll_atexit]
nop
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x14000605c
Capabilities:
Connect socket
Resolve dns
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
movzx esi, r8w
mov rcx, qword [rdx]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdi, rax
test rax, rax
je 0x1400061a7
mov ebp, 2
movzx ecx, si
mov word [rsp + 0x30], bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
lea rcx, [rsp + 0x34]
mov rdx, qword [rdi + 0x18]
movsx r8, word [rdi + 0x12]
mov rdx, qword [rdx]
call sub.msvcrt.dll_memcpy
mov eax, dword [rsp + 0x34]
lea edx, [rbp - 1]
lea r8d, [rbp + 4]
mov dword [rbx + 0x28], eax
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x30], rax
cmp rax, 0xffffffffffffffff
je 0x1400061a7
mov ebp, 0x7530
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x58]
mov dword [rsp + 0x58], ebp
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
mov edi, 3
lea rsi, [0x140021010]
test eax, eax
je 0x14000612c
mov r9d, eax
lea r8, str.tcp_socket::connect_setsockopt_SO_RCVTIMEO_error:__i_n
mov edx, edi
mov rcx, rsi
call fcn.140001720
mov rcx, qword [rbx + 0x30]
lea r9, [rsp + 0x58]
mov edx, 0xffff
mov dword [rsp + 0x58], ebp
mov r8d, 0x1005
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x14000616a
mov r9d, eax
lea r8, str.tcp_socket::connect_setsockopt_SO_SNDTIMEO_error:__i_n
mov edx, edi
mov rcx, rsi
call fcn.140001720
mov rcx, qword [rbx + 0x30]
lea rdx, [rsp + 0x30]
mov r8d, reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400061be
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r8, str.tcp_socket::connect_connect_error:__i_n
mov edx, edi
mov r9d, eax
mov rcx, rsi
call fcn.140001720
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + htons]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov al, 1
jmp 0x1400061a9
Function at 0x1400062ec
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
lea rax, [0x140016c58]
mov qword [rcx], rax
mov rcx, qword [rcx + 8]
test rcx, rcx
je 0x140006332
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
and qword [rbx + 8], 0
and dword [rbx + 0x10], 0
mov byte [rbx + 0x14], 1
add rsp, 0x30
pop rbx
ret
Function at 0x140008748
Capabilities:
Hash data via wincrypt

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 7], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r14, rdx
mov rsi, rcx
mov rdi, qword [rcx + 0x40]
mov r15, qword [rcx + 0x48]
cmp rdi, r15
je 0x1400088a9
xor r12d, r12d
mov rax, qword [rdi]
mov r13, qword [rax + 0x10]
lea rcx, [r13 + 0x68]
mov rdx, qword [r14 + 0x18]
mov rax, qword [r14 + 0x10]
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rdx
movaps xmm0, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x79], xmm0
lea r8, [rbp - 0x79]
lea rdx, [rbp - 0x19]
call fcn.14000a12c
nop
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x39], rax
mov rax, qword [rbp - 9]
mov qword [rbp - 0x31], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
mov rcx, r14
call fcn.1400064b4
mov rcx, qword [r14 + 0x10]
cmp word [rcx + 1], r12w
jne 0x140008892
mov rax, qword [r14 + 0x18]
mov qword [rbp - 0x29], rcx
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x79], xmm0
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x69]
call fcn.1400066bc
nop
mov rax, qword [rbp - 0x61]
xor ecx, ecx
mov dword [rax + 5], ecx
mov rax, qword [r14 + 0x10]
mov ebx, dword [rax + 5]
lea rdx, [rbp + 0x67]
lea rcx, [r13 + 0xd8]
call fcn.140009f1c
nop
mov r8d, dword [rbp - 0x59]
mov rdx, qword [rbp - 0x61]
sub r8d, edx
xor r9d, r9d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
lea rdx, [rbp + 0xf]
lea rcx, [rbp + 0x67]
call fcn.140009410
nop
mov rax, qword [rbp + 0x17]
cmp dword [rax], ebx
je 0x1400088ea
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140008887
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp + 0x67], r12
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.msvcrt.dll_free]
add rdi, 8
cmp rdi, r15
jne 0x14000878d
lea r8, str.circuit::handle_cell___cannot_decrypt_relay_cell__destroying_circuit_n
mov edx, 3
lea rcx, [0x140021010]
call fcn.140001720
mov rcx, rsi
call fcn.140006ee8
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov r8d, dword [rbp - 0x59]
mov rdx, qword [rbp - 0x61]
sub r8d, edx
xor r9d, r9d
mov rcx, qword [r13 + 0xd8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
nop
mov rcx, qword [rbp + 0x17]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x140008924
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbp + 0x67], r12
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.msvcrt.dll_free]
mov r8, r14
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14000894c
jmp 0x1400088c9
Function at 0x140008ecc
Capabilities:
Hash data via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rbx, rdx
mov rdi, rcx
and dword [rax - 0x18], 0
lea rcx, [rax + 0x10]
call fcn.1400093b0
nop
movups xmm1, xmmword [rbx]
movdqa xmm0, xmm1
psrldq xmm0, 8
movq r8, xmm0
movq rdx, xmm1
sub r8d, edx
xor r9d, r9d
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140009410
mov dword [rsp + 0x20], 1
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140008f4a
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and qword [rsp + 0x48], 0
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400093b0
Capabilities:
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push rbx
sub rsp, 0x30
and qword [rcx], 0
mov rbx, rcx
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov rcx, qword [0x1400210c0]
xor r8d, r8d
mov edx, 0x8004
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov rax, rbx
add rsp, 0x30
pop rbx
ret