joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ac3f8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140246ea0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400ac44f
cmp word [rdx], r13w
jne 0x1400ac44f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ac454
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ac579
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ac59a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ac48d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ac4b4
cmp r9, r8
jae 0x1400ac4c4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400ac46e
jmp 0x1400ac579
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ac56e
cmp dword [rsp + 0x80], esi
je 0x1400ac56e
lea r8, [0x140246ea0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ac546
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ac516
mov word [rbx], r13w
jmp 0x1400ac576
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400ac523
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ac576
cmp word [rsp + 0x70], r13w
jne 0x1400ac553
cmp rbx, r14
je 0x1400ac510
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a4b98
cmp word [rsp + 0x70], r13w
je 0x1400ac579
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140246ea0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ac573
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ac579
Function at 0x1400b2e58
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b2e6e
mov al, 1
jmp 0x1400b2ece
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b2e7f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b2ecc
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b39b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b2ecc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b2ecc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b2ecc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b2ece
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b3ac0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400a4b98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400a4b98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b3c10
cmp rax, 0xffffffffffffffff
je 0x1400b3c10
xor edi, edi
test rbp, rbp
jle 0x1400b3bbb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ae540
mov rbx, rax
test rax, rax
jne 0x1400b3b48
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b3bb1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400aa7ec
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400ad7b0
cmp eax, 0xffffffff
je 0x1400b3b91
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b3b58
mov edx, r15d
mov ecx, r14d
call fcn.1400aa7ec
jmp 0x1400b3bb1
cmp byte [rsi + 0x38], dil
je 0x1400b3ba8
cmp dword [rsi + 0x34], 5
jne 0x1400b3ba8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b3bb1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400ae5b8
jmp 0x1400b3c24
jns 0x1400b3c24
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400a4b98
cmp rax, 0xffffffffffffffff
jne 0x1400b3bdc
cmp byte [rsi + 0x30], dil
je 0x1400b3c24
mov edi, dword [rsi + 0x2c]
jmp 0x1400b3c24
mov ecx, r14d
call fcn.1400b39b0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b3c24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b3c24
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b3c1d
mov eax, dword [rsi + 0x2c]
jmp 0x1400b3c22
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400a4b98
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400b707c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400b70ac
xor eax, eax
jmp 0x1400b716f
mov rbp, rbx
cmp word [rax], si
je 0x1400b70d1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b70b8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b70b4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400b271c
movsxd r14, eax
test eax, eax
jne 0x1400b710f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b70a5
mov rcx, r14
call fcn.1400afee0
mov rdi, rax
test rax, rax
jne 0x1400b7128
xor ecx, ecx
call fcn.1400ae5b8
jmp 0x1400b7104
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400b271c
test eax, eax
jne 0x1400b7159
mov rcx, rdi
call fcn.1400ae5b8
jmp 0x1400b7163
xor ecx, ecx
call fcn.1400ae5b8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400b718c
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 0x1400b7213
mov rsi, rbx
cmp word [rax], bp
je 0x1400b71d2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b71bc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b71b8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400afee0
mov rdi, rax
test rax, rax
je 0x1400b7200
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401498b0
mov rbp, rdi
xor ecx, ecx
call fcn.1400ae5b8
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
Function at 0x1400ba284
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400ae96c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400ba325
cmp ebx, dword [rsp + 0x30]
je 0x1400ba31e
test esi, esi
je 0x1400ba31e
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400ba2f9
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400ba306
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400ba2e3
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400ba30a
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400ba327
mov eax, 1
jmp 0x1400ba327
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400ba674
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ba694
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14009919c
or eax, 0xffffffff
jmp 0x1400ba696
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400bc86c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1402409c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400bc8b6
call fcn.140099208
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.140099228
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140092e08
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14008b890
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400bc8c1
lea eax, [rbx + 1]
jmp 0x1400bc8a3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400bc8a1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400bc8a3
Function at 0x1400bd12c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.140092eb4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bd1b6
cmp byte [rbp - 0x21], r15b
je 0x1400bd1b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bd1ec
call fcn.1400aefec
test eax, eax
jne 0x1400bd1d8
cmp byte [rbp - 0x21], r15b
je 0x1400bd1d0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bd1ec
cmp byte [rbp - 0x21], r15b
je 0x1400bd1e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400a2710
test eax, eax
jne 0x1400bd28c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140092eb4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bd22b
cmp byte [rbp - 0x21], r15b
je 0x1400bd260
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bd260
call fcn.1400aefec
test eax, eax
jne 0x1400bd24c
cmp byte [rbp - 0x21], r15b
je 0x1400bd245
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bd260
cmp byte [rbp - 0x21], r15b
je 0x1400bd25d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400a2710
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bd28c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bd28f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400bd29d
mov rcx, rdi
call fcn.1400ae5b8
cmp byte [rbp + 0x3f], r15b
je 0x1400bd2ac
mov rcx, qword [rbp + 0x27]
call fcn.1400ae5b8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400cd260
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor ebx, ebx
mov rbp, r9
mov rdi, r8
mov rsi, rdx
test r8, r8
je 0x1400cd3de
lea r14, [0x140172ff0]
cmp rdx, 2
jbe 0x1400cd329
lea r10d, [rbx + 4]
nop dword [rax + rax]
movzx edx, byte [rcx + 1]
sub rsi, 3
movzx r11d, byte [rcx]
movzx eax, dl
movzx r9d, byte [rcx + 2]
and dl, 0xf
shr al, 4
movzx r8d, r11b
and r8b, 3
shl dl, 2
shl r8b, 4
add rcx, 3
add r8b, al
movzx eax, r9b
shr al, 6
add dl, al
cmp r10, rbp
ja 0x1400cd3de
and r9d, 0x3f
mov eax, r11d
shr rax, 2
add r10, 4
movzx eax, byte [rax + r14]
mov byte [rbx + rdi], al
movzx eax, r8b
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 1], al
movzx eax, dl
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 2], al
movzx eax, byte [r9 + r14]
mov byte [rbx + rdi + 3], al
add rbx, 4
cmp rsi, 2
ja 0x1400cd2a0
test rsi, rsi
je 0x1400cd3d1
xor r8b, r8b
mov word [rsp + 0x51], 0
xor r9b, r9b
mov byte [rsp + 0x50], r8b
xor dl, dl
test rsi, rsi
je 0x1400cd36c
mov rdx, rcx
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.1401498b0
movzx r9d, byte [rsp + 0x52]
movzx edx, byte [rsp + 0x51]
movzx r8d, byte [rsp + 0x50]
movzx eax, dl
shr r9b, 6
movzx ecx, r8b
shr al, 4
and r8b, 3
shr cl, 2
and dl, 0xf
shl r8b, 4
shl dl, 2
add r8b, al
lea rax, [rbx + 4]
add dl, r9b
cmp rax, rbp
ja 0x1400cd3de
movzx eax, cl
movzx eax, byte [rax + r14]
mov byte [rbx + rdi], al
movzx eax, r8b
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 1], al
cmp rsi, 1
jne 0x1400cd3bc
mov al, 0x3d
jmp 0x1400cd3c4
movzx eax, dl
movzx eax, byte [rax + r14]
mov byte [rbx + rdi + 2], al
mov byte [rbx + rdi + 3], 0x3d
add rbx, 4
cmp rbx, rbp
jae 0x1400cd3de
mov byte [rbx + rdi], 0
mov eax, ebx
jmp 0x1400cd3e3
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1400cd870
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x1402409c0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rdi, rcx
mov qword [rsp + 0x190], rsi
movzx esi, dl
lea rcx, [rsp + 0x40]
xorps xmm0, xmm0
xor edx, edx
mov r8d, 0x118
movups xmmword [rsp + 0x20], xmm0
call fcn.140149f50
lea rcx, [rsp + 0x40]
call fcn.1400cf210
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov eax, eax
mov edx, 0x100
mov ecx, eax
shr rcx, 0x10
xor rcx, rax
movzx eax, cx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rax
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1400cd949
call fcn.140099228
cmp dword [rax], 0x26
jne 0x1400cd915
mov ecx, 2
call fcn.140098f98
mov rcx, rax
lea rdx, str.hostname_exceeds__d_characters__truncating.
mov r8d, 0x100
call fcn.1400c21c0
jmp 0x1400cd949
mov qword [rsp + 0x188], rbx
call fcn.140099228
mov ecx, 2
mov rbx, rax
call fcn.140098f98
mov r8d, dword [rbx]
lea rdx, str.unable_to_get_hostname:__d
mov rcx, rax
call fcn.1400c21c0
mov rbx, qword [rsp + 0x188]
mov byte [rsp + 0x14f], 0
mov eax, 1
lock xadd qword [0x1402435b0], rax
movaps xmm0, xmmword [rsp + 0x40]
lea r9, [rsp + 0x20]
mov qword [rsp + 0x150], rax
lea r8, [rsp + 0x30]
movq rax, xmm0
lea rcx, [rsp + 0x40]
not rax
mov edx, 0x118
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x38], rax
call fcn.1400cdb10
mov eax, dword [rsp + 0x20]
test sil, sil
mov rsi, qword [rsp + 0x190]
mov dword [rdi + 0x10], eax
movzx eax, byte [rsp + 0x24]
mov byte [rdi + 0x14], al
je 0x1400cd9cd
mov rax, qword [rsp + 0x28]
mov ecx, eax
and ecx, 0xff0ffff0
and rax, 0xffffffffff0ffff0
mov dword [rdi + 4], ecx
mov qword [rdi + 8], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x18], rax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.14008b890
add rsp, 0x170
pop rdi
ret
Function at 0x1400cdb10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x40
mov r10, qword [r8 + 8]
xor eax, eax
mov r11, qword [r8]
mov rbx, rcx
mov qword [rsp + 0x30], rax
mov r8, r11
mov qword [rsp + 0x38], rax
mov rdi, rdx
mov qword [rsp + 0x68], r14
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x70], r15
and eax, 7
shl rdi, 0x38
sub r14, rax
movabs rcx, 0x7465646279746573
mov rax, r10
mov r15d, edx
xor rax, rcx
add r14, rdx
movabs rcx, 0x6c7967656e657261
and r15d, 7
xor r8, rcx
mov r12, r9
movabs rcx, 0x736f6d6570736575
mov ebp, 2
xor r11, rcx
movabs rcx, 0x646f72616e646f83
xor r10, rcx
cmp rbx, r14
je 0x1400cdc17
mov qword [rsp + 0x60], rsi
nop word [rax + rax]
mov rsi, qword [rbx]
mov r9, rbp
xor rax, rsi
nop dword [rax]
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub r9, 1
jne 0x1400cdbc0
xor r11, rsi
add rbx, 8
cmp rbx, r14
jne case.default.0x1400cdc36
mov rsi, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
lea r9, [0x140000000]
movsxd rcx, r15d
mov r15, qword [rsp + 0x70]
mov edx, dword [r9 + rcx*4 + 0xcddf0]
add rdx, r9
jmp rdx
movzx ecx, byte [rbx + 6]
shl rcx, 0x30
or rdi, rcx
movzx ecx, byte [rbx + 5]
shl rcx, 0x28
or rdi, rcx
movzx ecx, byte [rbx + 4]
shl rcx, 0x20
or rdi, rcx
movzx ecx, byte [rbx + 3]
shl rcx, 0x18
or rdi, rcx
movzx ecx, byte [rbx + 2]
shl rcx, 0x10
or rdi, rcx
movzx ecx, byte [rbx + 1]
shl rcx, 8
or rdi, rcx
movzx ecx, byte [rbx]
or rdi, rcx
xor rax, rdi
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub rbp, 1
jne 0x1400cdc83
xor r11, rdi
mov r9d, 4
xor r8, 0xee
mov ebx, r9d
nop dword [rax]
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub rbx, 1
jne 0x1400cdce0
mov rcx, rax
xor rcx, r8
xor rcx, r10
xor rcx, r11
mov qword [rsp + 0x30], rcx
xor r10, 0xdd
nop
add r8, rax
add r11, r10
ror r10, 0x33
xor r10, r11
ror rax, 0x30
xor rax, r8
ror r11, 0x20
add r8, r10
add r11, rax
mov rdx, r8
ror r10, 0x2f
mov rcx, r8
shr rdx, 0x20
xor r10, r8
ror rax, 0x2b
shl rcx, 0x20
mov r8, rdx
or r8, rcx
xor rax, r11
sub r9, 1
jne 0x1400cdd40
mov rbx, qword [rsp + 0x78]
xor rax, r8
xor rax, r10
xor rax, r11
mov qword [rsp + 0x38], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r12], xmm0
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
Function at 0x1400e24b0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x90
mov rax, qword [0x1402409c0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rbp, rdx
mov esi, ecx
test ecx, ecx
je 0x1400e2653
test rdx, rdx
je 0x1400e2697
movzx r9d, word [rdx + 0x20e]
lea r8, [0x1401815e4]
mov edx, 8
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x68]
call fcn.1400cb280
mov eax, dword [rbp + 0x210]
lea rbx, [rbp + 8]
xorps xmm0, xmm0
mov dword [rsp + 0x3c], eax
xorps xmm1, xmm1
mov qword [rsp + 0x40], 1
mov rcx, rbx
mov dword [rsp + 0x38], 0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x68]
movdqu xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400e257b
mov edx, 2
mov qword [rsp + 0x20], rbx
lea r9, [0x1401815e8]
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.1400cc760
xor eax, eax
jmp 0x1400e2632
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x1400e25f9
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call fcn.14010cf00
mov rdi, rax
test rax, rax
je 0x1400e25d6
call fcn.1400cf1f0
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
imul ecx, esi, 0x3e8
movsxd r9, ecx
mov rcx, rdi
add r9, rax
call fcn.14010cb60
test eax, eax
je 0x1400e25e4
mov rcx, rdi
call fcn.14010cd20
xor edi, edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400e2590
test rdi, rdi
je 0x1400e25f9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.140116000
jmp 0x1400e262a
mov edx, 2
lea rax, [rbp + 0x108]
lea r9, str.Failed_to_connect_to_target_host:__s
mov qword [rsp + 0x20], rax
mov rcx, r14
lea r8d, [rdx + 3]
call fcn.1400cc760
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xor eax, eax
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008b890
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.140098f98
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_client.c
lea rax, str.connecttimeoutms
mov r9d, 0x29b
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_client_connect_tcp
mov qword [rsp + 0x20], rax
call fcn.1400c21c0
call fcn.140099068
int3
mov ecx, 2
call fcn.140098f98
mov rcx, rax
lea r8, str.C:Userslxrs_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_client.c
lea rax, str.host
mov r9d, 0x29c
mov qword [rsp + 0x28], rax
lea rdx, str._s:_d__s__:_precondition_failed:__s_n
lea rax, str.mongoc_client_connect_tcp
mov qword [rsp + 0x20], rax
call fcn.1400c21c0
call fcn.140099068
int3
Function at 0x1400fcbe0
Capabilities:
Hash data via bcrypt

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x60
xor r12d, r12d
lea rax, [r11 - 0x34]
mov rbp, r9
mov dword [r11 - 0x50], r12d
mov r14, r8
mov dword [r11 - 0x38], r12d
mov r15, rdx
mov qword [r11 - 0x28], r12
lea r9d, [r12 + 4]
mov dword [r11 - 0x30], r12d
lea r8, [r11 - 0x38]
mov dword [r11 - 0x34], r12d
lea rdx, str.ObjectLength
mov qword [r11 - 0x58], rax
mov rsi, rcx
xor bl, bl
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
jns 0x1400fcc5e
lea r8, str.BCryptGetProperty__:_OBJECT_LENGTH__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400d2db0
xor al, al
jmp 0x1400fcd7c
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], r12d
mov r9d, 4
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
mov rcx, rsi
lea rdx, str.HashDigestLength
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
jns 0x1400fcc94
lea r8, str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x1400fcc46
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x80], rdi
call fcn.1400c96f0
mov r9d, dword [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x30], r12d
mov r8, rax
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rsp + 0x20], r15
mov rdi, rax
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jns 0x1400fccea
mov r9d, eax
lea r8, str.BCryptCreateHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400d2db0
jmp 0x1400fcd5a
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov rcx, qword [rsp + 0x50]
mov rdx, rbp
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jns 0x1400fcd20
mov r9d, eax
lea r8, str.BCryptHashData__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400d2db0
jmp 0x1400fcd5a
mov r8d, dword [rsp + 0x48]
xor r9d, r9d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x50]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
jns 0x1400fcd58
mov r9d, eax
lea r8, str.BCryptFinishHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.1400d2db0
jmp 0x1400fcd5a
mov bl, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400fcd69
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, rdi
call fcn.1400c96e0
mov rdi, qword [rsp + 0x80]
movzx eax, bl
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret