joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140042f34
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, [0x1401c76e0]
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 0x140042f8b
cmp word [rdx], r13w
jne 0x140042f8b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140042f90
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400430b5
mov r11d, recv
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400430d6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140042fc9
mov rdx, r9
mov word [rbx], cx
jmp 0x140042ff0
cmp r9, r8
jae 0x140043000
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 0x140042faa
jmp 0x1400430b5
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 0x1400430aa
cmp dword [rsp + 0x80], esi
je 0x1400430aa
lea r8, [0x1401c76e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140043082
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140043052
mov word [rbx], r13w
jmp 0x1400430b2
mov ecx, recv
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 0x14004305f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400430b2
cmp word [rsp + 0x70], r13w
jne 0x14004308f
cmp rbx, r14
je 0x14004304c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14004284c
cmp word [rsp + 0x70], r13w
je 0x1400430b5
mov ecx, recv
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, [0x1401c76e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400430af
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400430b5
Function at 0x140046038
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 0x140046068
xor eax, eax
jmp 0x14004612b
mov rbp, rbx
cmp word [rax], si
je 0x14004608d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140046074
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140046070
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.140043ab8
movsxd r14, eax
test eax, eax
jne 0x1400460cb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140046061
mov rcx, r14
call fcn.14003d22c
mov rdi, rax
test rax, rax
jne 0x1400460e4
xor ecx, ecx
call fcn.14003b904
jmp 0x1400460c0
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.140043ab8
test eax, eax
jne 0x140046115
mov rcx, rdi
call fcn.14003b904
jmp 0x14004611f
xor ecx, ecx
call fcn.14003b904
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 0x140046148
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 0x1400461cf
mov rsi, rbx
cmp word [rax], bp
je 0x14004618e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140046178
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140046174
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003d22c
mov rdi, rax
test rax, rax
je 0x1400461bc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400e2bb0
mov rbp, rdi
xor ecx, ecx
call fcn.14003b904
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 0x140049798
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.14003bcb8
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 0x140049839
cmp ebx, dword [rsp + 0x30]
je 0x140049832
test esi, esi
je 0x140049832
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004980d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004981a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400497f7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004981e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004983b
mov eax, 1
jmp 0x14004983b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004db44
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.14002ac54
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14004dbce
cmp byte [rbp - 0x21], r15b
je 0x14004dbc9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14004dc04
call fcn.14003c338
test eax, eax
jne 0x14004dbf0
cmp byte [rbp - 0x21], r15b
je 0x14004dbe8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14004dc04
cmp byte [rbp - 0x21], r15b
je 0x14004dc01
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.140035bd4
test eax, eax
jne 0x14004dca4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002ac54
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14004dc43
cmp byte [rbp - 0x21], r15b
je 0x14004dc78
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14004dc78
call fcn.14003c338
test eax, eax
jne 0x14004dc64
cmp byte [rbp - 0x21], r15b
je 0x14004dc5d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14004dc78
cmp byte [rbp - 0x21], r15b
je 0x14004dc75
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.140035bd4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14004dca4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14004dca7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14004dcb5
mov rcx, rdi
call fcn.14003b904
cmp byte [rbp + 0x3f], r15b
je 0x14004dcc4
mov rcx, qword [rbp + 0x27]
call fcn.14003b904
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 0x14004e8bc
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.14004284c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14004284c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004ea0c
cmp rax, 0xffffffffffffffff
je 0x14004ea0c
xor edi, edi
test rbp, rbp
jle 0x14004e9b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14003b88c
mov rbx, rax
test rax, rax
jne 0x14004e944
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004e9ad
mov edx, 0x8000
mov ecx, r14d
call fcn.140038e70
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.140041c14
cmp eax, 0xffffffff
je 0x14004e98d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004e954
mov edx, r15d
mov ecx, r14d
call fcn.140038e70
jmp 0x14004e9ad
cmp byte [rsi + 0x38], dil
je 0x14004e9a4
cmp dword [rsi + 0x34], 5
jne 0x14004e9a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x14004e9ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14003b904
jmp 0x14004ea20
jns 0x14004ea20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14004284c
cmp rax, 0xffffffffffffffff
jne 0x14004e9d8
cmp byte [rsi + 0x30], dil
je 0x14004ea20
mov edi, dword [rsi + 0x2c]
jmp 0x14004ea20
mov ecx, r14d
call fcn.140047244
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004ea20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x14004ea20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004ea19
mov eax, dword [rsi + 0x2c]
jmp 0x14004ea1e
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14004284c
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 0x14005df40
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 0x14005e0be
lea r14, [0x1400f86d0]
cmp rdx, 2
jbe 0x14005e009
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 0x14005e0be
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 0x14005df80
test rsi, rsi
je 0x14005e0b1
xor r8b, r8b
mov word [rsp + 0x51], 0
xor r9b, r9b
mov byte [rsp + 0x50], r8b
xor dl, dl
test rsi, rsi
je 0x14005e04c
mov rdx, rcx
mov r8, rsi
lea rcx, [rsp + 0x50]
call fcn.1400e2bb0
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 0x14005e0be
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 0x14005e09c
mov al, 0x3d
jmp 0x14005e0a4
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 0x14005e0be
mov byte [rbx + rdi], 0
mov eax, ebx
jmp 0x14005e0c3
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 0x14005e550
Capabilities:
Get hostname

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x1401c1280]
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.1400e3250
lea rcx, [rsp + 0x40]
call fcn.14005fef0
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 0x14005e629
call fcn.14002ed7c
cmp dword [rax], 0x26
jne 0x14005e5f5
mov ecx, 2
call fcn.14002e9a4
mov rcx, rax
lea rdx, str.hostname_exceeds__d_characters__truncating.
mov r8d, 0x100
call fcn.140052ea0
jmp 0x14005e629
mov qword [rsp + 0x188], rbx
call fcn.14002ed7c
mov ecx, 2
mov rbx, rax
call fcn.14002e9a4
mov r8d, dword [rbx]
lea rdx, str.unable_to_get_hostname:__d
mov rcx, rax
call fcn.140052ea0
mov rbx, qword [rsp + 0x188]
mov byte [rsp + 0x14f], 0
mov eax, 1
lock xadd qword [0x1401c3e50], 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.14005e7f0
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 0x14005e6ad
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.140023a50
add rsp, 0x170
pop rdi
ret
Function at 0x14005e7f0
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 0x14005e8f7
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 0x14005e8a0
xor r11, rsi
add rbx, 8
cmp rbx, r14
jne case.default.0x14005e916
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 + 0x5ead0]
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 0x14005e963
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 0x14005e9c0
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 0x14005ea20
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 0x140075380
Capabilities:
Resolve dns

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x90
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r14, r8
mov rbp, rdx
mov esi, ecx
test ecx, ecx
je 0x140075523
test rdx, rdx
je 0x140075567
movzx r9d, word [rdx + 0x20e]
lea r8, [0x140106d0c]
mov edx, 8
mov qword [rsp + 0x88], rbx
lea rcx, [rsp + 0x68]
call fcn.14005bf60
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 0x14007544b
mov edx, 2
mov qword [rsp + 0x20], rbx
lea r9, [0x140106d10]
mov rcx, r14
lea r8d, [rdx + 1]
call fcn.14005d440
xor eax, eax
jmp 0x140075502
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x1400754c9
nop dword [rax]
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call fcn.14009fe00
mov rdi, rax
test rax, rax
je 0x1400754a6
call fcn.14005fed0
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.14009fa60
test eax, eax
je 0x1400754b4
mov rcx, rdi
call fcn.14009fc20
xor edi, edi
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140075460
test rdi, rdi
je 0x1400754c9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rdi
call fcn.1400a8f00
jmp 0x1400754fa
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.14005d440
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.140023a50
add rsp, 0x90
pop r14
pop rsi
pop rbp
ret
mov ecx, 2
call fcn.14002e9a4
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.140052ea0
call fcn.14002eb84
int3
mov ecx, 2
call fcn.14002e9a4
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.140052ea0
call fcn.14002eb84
int3
Function at 0x14008fae0
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 0x14008fb5e
lea r8, str.BCryptGetProperty__:_OBJECT_LENGTH__ld
mov r9d, eax
lea rdx, str.mongoc
xor ecx, ecx
call fcn.140065c80
xor al, al
jmp 0x14008fc7c
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 0x14008fb94
lea r8, str.BCryptGetProperty__:_HASH_LENGTH__ld
jmp 0x14008fb46
mov ecx, dword [rsp + 0x40]
mov qword [rsp + 0x80], rdi
call fcn.14005a3d0
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 0x14008fbea
mov r9d, eax
lea r8, str.BCryptCreateHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.140065c80
jmp 0x14008fc5a
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 0x14008fc20
mov r9d, eax
lea r8, str.BCryptHashData__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.140065c80
jmp 0x14008fc5a
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 0x14008fc58
mov r9d, eax
lea r8, str.BCryptFinishHash__:__ld
lea rdx, str.mongoc
xor ecx, ecx
call fcn.140065c80
jmp 0x14008fc5a
mov bl, 1
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14008fc69
call sub.bcrypt.dll_BCryptDestroyHash
mov rcx, rdi
call fcn.14005a3c0
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
Function at 0x140092c10
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x1401c1280]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp byte [rcx + 0x7c], 0
lea r15, [rcx + 0x7c]
mov edi, shutdown
lea rsi, [rcx + 0x130]
mov rbx, rcx
mov r14, r9
mov r12d, r8d
mov r13, rdx
lea ecx, [rdi + 0xc]
jne 0x140092ca1
mov eax, dword [rsi]
test eax, eax
jne 0x140092c66
mov r8d, edi
jmp 0x140092c70
xor r8d, r8d
cmp eax, 1
cmove r8d, ecx
lea rbp, [rbx + 0x120]
mov qword [rsp + 0x28], r15
mov rcx, rbp
mov dword [rsp + 0x20], 0xa
lea rdx, [rbx + 0xbc]
lea r9, str.Client_Key
call fcn.1400be520
mov ecx, 0x20
jmp 0x140092ca8
lea rbp, [rbx + 0x120]
mov eax, dword [rsi]
test eax, eax
jne 0x140092cb3
mov r8, rdi
jmp 0x140092cbd
xor r8d, r8d
cmp eax, 1
cmove r8, rcx
lea r9, [rsp + 0x50]
mov rdx, r15
mov rcx, rbp
call fcn.1400be510
mov eax, dword [rsi]
mov r15d, 0x20
test eax, eax
jne 0x140092cde
mov r8d, edi
jmp 0x140092ce8
xor r8d, r8d
cmp eax, 1
cmove r8d, r15d
mov r9, qword [rbx + 0x110]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, [rsp + 0x50]
mov eax, dword [rbx + 0x11c]
mov rcx, rbp
mov dword [rsp + 0x20], eax
call fcn.1400be520
mov rcx, rbx
call fcn.1400944b0
movsxd r8, eax
test eax, eax
jle 0x140092d4b
xor edx, edx
lea rax, [rsp + 0x30]
sub rbx, rax
nop dword [rax]
lea rax, [rsp + 0x30]
add rax, rdx
movzx ecx, byte [rax + rbx + 0x7c]
xor cl, byte [rax]
mov byte [rsp + rdx + 0x70], cl
inc rdx
cmp rdx, r8
jl 0x140092d30
mov eax, dword [rsi]
test eax, eax
je 0x140092d5a
xor edi, edi
cmp eax, 1
cmove rdi, r15
mov r8d, dword [r14]
lea rcx, [rsp + 0x70]
sub r12d, r8d
mov rdx, rdi
mov r9d, r12d
add r8, r13
call fcn.1400babd0
cmp eax, 0xffffffff
jne 0x140092d7c
xor al, al
jmp 0x140092d81
add dword [r14], eax
mov al, 1
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140023a50
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret