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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140083570
sub rsp, rax
mov rax, qword [0x1400e9588]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14009be8c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009e4bf
mov rax, rbp
jmp 0x14009e5c7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xed3f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14009f590
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xed3f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009e5c3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14009e5c3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14009f590
test rax, rax
js 0x14009e5c3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009e5c3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009e5b5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009e5b5
cmp byte [rcx], 0xd
jne 0x14009e59b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009e5aa
cmp byte [rcx + 1], 0xa
jne 0x14009e5aa
inc rcx
jmp 0x14009e5aa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe9990]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009e57d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009e5c7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140083540
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x14009e7e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009e7fe
mov al, 1
jmp 0x14009e85e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009e80f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009e85c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400a5ad0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009e85c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009e85c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009e85c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009e85e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009e930
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, [0x1400ed3f0]
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 0x14009e987
cmp word [rdx], r13w
jne 0x14009e987
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009e98c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009eab1
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009ead2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009e9c5
mov rdx, r9
mov word [rbx], cx
jmp 0x14009e9ec
cmp r9, r8
jae 0x14009e9fc
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 0x14009e9a6
jmp 0x14009eab1
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 0x14009eaa6
cmp dword [rsp + 0x80], esi
je 0x14009eaa6
lea r8, [0x1400ed3f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009ea7e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009ea4e
mov word [rbx], r13w
jmp 0x14009eaae
mov ecx, SafeArrayDestroy
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 0x14009ea5b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009eaae
cmp word [rsp + 0x70], r13w
jne 0x14009ea8b
cmp rbx, r14
je 0x14009ea48
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009f598
cmp word [rsp + 0x70], r13w
je 0x14009eab1
mov ecx, SafeArrayDestroy
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, [0x1400ed3f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009eaab
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009eab1
Function at 0x1400a4350
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.14009a2c4
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 0x1400a43f1
cmp ebx, dword [rsp + 0x30]
je 0x1400a43ea
test esi, esi
je 0x1400a43ea
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400a43c5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400a43d2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400a43af
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400a43d6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400a43f3
mov eax, 1
jmp 0x1400a43f3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400a5484
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 0x1400a550b
mov rsi, rbx
cmp word [rax], bp
je 0x1400a54ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a54b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a54b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14009ad08
mov rdi, rax
test rax, rax
je 0x1400a54f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400853c0
mov rbp, rdi
xor ecx, ecx
call fcn.14009aac8
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 0x1400a9770
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.14009f598
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14009f598
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400a98c0
cmp rax, 0xffffffffffffffff
je 0x1400a98c0
xor edi, edi
test rbp, rbp
jle 0x1400a986b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14009c294
mov rbx, rax
test rax, rax
jne 0x1400a97f8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400a9861
mov edx, 0x8000
mov ecx, r14d
call fcn.140099bbc
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.14009dce8
cmp eax, 0xffffffff
je 0x1400a9841
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400a9808
mov edx, r15d
mov ecx, r14d
call fcn.140099bbc
jmp 0x1400a9861
cmp byte [rsi + 0x38], dil
je 0x1400a9858
cmp dword [rsi + 0x34], 5
jne 0x1400a9858
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400a9861
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009aac8
jmp 0x1400a98d4
jns 0x1400a98d4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14009f598
cmp rax, 0xffffffffffffffff
jne 0x1400a988c
cmp byte [rsi + 0x30], dil
je 0x1400a98d4
mov edi, dword [rsi + 0x2c]
jmp 0x1400a98d4
mov ecx, r14d
call fcn.1400a5ad0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400a98d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400a98d4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400a98cd
mov eax, dword [rsi + 0x2c]
jmp 0x1400a98d2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14009f598
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 0x1400aa050
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400aa078
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400aa078
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006a8a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x140006b06
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x140006ae6
cmp rdi, r14
ja 0x140006b43
cmp r14, rax
ja 0x140006b43
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x140006af0
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x140006ad3
jmp 0x140006af8
mov rdx, rbx
mov rdi, r14
jbe 0x140006aad
jmp 0x140006b06
mov rdx, rbx
mov rdi, r14
jmp 0x140006aad
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x140006afa
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x140006b24
mov r11, r8
jmp 0x140006b3b
cmp r8, r10
je 0x140006b43
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x140006afa
xor al, 1
jmp 0x140006b0e
ud2

Function at 0x140009421
Capabilities:
Hash data using fnv

Disassembly:
mov rax, qword [rcx]
xor r9d, r9d
movabs r10, 0x100000001b3
cmp r8, r9
je 0x140009447
movzx r11d, byte [rdx + r9]
xor rax, r11
imul rax, r10
inc r9
jmp 0x140009431
mov qword [rcx], rax
ret

Function at 0x1400095da
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [rcx]
xor ecx, ecx
test rbx, rbx
setne cl
call fcn.14005a69e
test rbx, rbx
je 0x140009613
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140009421
mov cl, byte [rdi + 8]
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140009419
Function at 0x14001ffb7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
mov rdi, rcx
mov rax, qword [rdx + 0x20]
lea rcx, [rax - 2]
cmp rcx, 2
jae 0x14001ffe6
mov edx, 1
mov rcx, rsi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
jmp fcn.1400200e0
test rax, rax
jne 0x1400200d8
cmp qword [rsi], 0
je 0x140020001
mov rax, qword [rsi + 8]
mov rdx, qword [rax]
and edx, 0xe
jmp 0x140020003
xor edx, edx
mov rcx, rsi
call fcn.1400200ff
mov rbx, qword [rdi]
lea rdx, [rsp + 0x50]
and dword [rdx], 0
lea rax, [rbx + 8]
lea rcx, [0x1400cf9a0]
mov qword [rdx + 8], rcx
lea r8, [rsp + 0x38]
and dword [r8], 0
lea rdi, [rsp + 0x3c]
and dword [rdi], 0
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
and qword [rsp + 0x30], 0
mov r8d, 1
mov r9, rdi
call sub.ws2_32.dll_WSARecv
mov r8d, dword [rdi]
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov edx, eax
call fcn.140020aca
mov rax, qword [rdi]
cmp rax, 1
je 0x140020095
cmp eax, 2
jne 0x1400200bd
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rsi + 0x28]
xor ecx, ecx
call fcn.140020120
mov qword [rsi + 0x20], 3
mov qword [rsi + 0x28], rdi
jmp 0x1400200ae
cmp byte [rsi + 0x78], 0
je 0x1400200bd
mov rdx, qword [rsi + 0x28]
xor ecx, ecx
call fcn.140020120
mov qword [rsi + 0x20], 2
mov edx, 1
mov rcx, rsi
call fcn.1400200e0
jmp 0x1400200d8
mov rdx, qword [rsi + 0x28]
xor ecx, ecx
call fcn.140020120
mov qword [rsi + 0x20], 1
lock inc qword [rbx + 0xe8]
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140020455
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rbx, r9
mov qword [rsp + 0x58], r8
mov rdi, rdx
mov r14, rcx
cmp qword [r9], 0
je 0x140020488
mov rax, qword [rbx + 8]
mov rdx, qword [rax]
and edx, 0xd
jmp 0x14002048a
xor edx, edx
mov rcx, rbx
call fcn.1400200ff
mov rbp, qword [r14]
lea rsi, [rbp + 0x30]
mov r14, qword [rdi]
mov qword [rsp + 0x48], rdi
mov r12, qword [rdi + 0x10]
mov qword [rsp + 0x50], rbx
mov r15b, byte [rbx + 0x78]
lea r13, [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov rdi, r12
sub rdi, rbx
jb 0x140020692
lea rax, [r14 + rbx]
mov ecx, 0xffffffff
cmp rdi, rcx
cmovb rcx, rdi
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x78], rax
and dword [rsp + 0x44], 0
mov rcx, qword [rbp]
and qword [rsp + 0x30], 0
mov qword [rsp + 0x28], rsi
and dword [rsp + 0x20], 0
lea rdx, [rsp + 0x70]
mov r8d, 1
lea r9, [rsp + 0x44]
call sub.ws2_32.dll_WSASend
mov r8d, dword [rsp + 0x44]
mov rcx, r13
mov edx, eax
call fcn.140020aca
mov rax, qword [rsp + 0x60]
cmp rax, 1
jne 0x140020544
test r15b, r15b
je 0x1400205f1
mov rax, qword [rsp + 0x68]
cmp rax, rdi
je 0x14002062e
add rbx, rax
jmp 0x1400204b8
cmp eax, 2
jne 0x1400205f6
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x50]
lea rcx, [rdi + 0x30]
call fcn.140020237
mov qword [rdi + 0x30], 3
mov qword [rdi + 0x38], rsi
mov edx, 2
mov rcx, rdi
call fcn.1400200e0
mov rax, qword [rdi + 0x18]
cmp rax, 2
jne 0x14002065c
mov rdx, qword [rdi + 0x10]
test rdx, rdx
je 0x14002065c
add rdx, 0x20
lea rdi, [rsp + 0x70]
mov rcx, rdi
call fcn.14001fb64
cmp qword [rdi], 0
mov rax, qword [rsp + 0x48]
jne 0x140020692
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
mov rax, qword [rdi + 0x20]
cmp rax, qword [rdi + 0x18]
jae 0x140020682
mov r8, qword [rdi + 0x10]
imul r9, rax, 0x18
mov qword [r8 + r9], rcx
mov qword [r8 + r9 + 8], rdx
and qword [r8 + r9 + 0x10], 0
inc rax
mov qword [rdi + 0x20], rax
jmp 0x140020687
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
lea rcx, [rsi + 0x30]
call fcn.140020237
mov qword [rsi + 0x30], 1
mov rax, qword [rsp + 0x48]
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x38], xmm0
mov rax, qword [rax + 0x10]
mov qword [rsi + 0x48], rax
mov qword [rsi + 0x50], rbx
lock inc qword [rbp + 0xe8]
jmp 0x14002066d
mov edx, 2
mov rsi, qword [rsp + 0x50]
mov rcx, rsi
call fcn.1400200e0
lea rcx, [rsi + 0x30]
call fcn.140020237
and qword [rsi + 0x30], 0
mov rax, qword [rsp + 0x48]
mov rdx, qword [rax + 8]
mov rcx, r14
jmp 0x140020668
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
call fcn.140003e5c
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140003e5c
mov rcx, rdi
call qword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
jmp 0x14002066d
ud2
Function at 0x140020bfe
Capabilities:
Set socket configuration

Disassembly:
sub rsp, 0x38
mov eax, edx
lea r9, [rsp + 0x34]
mov dword [r9], r8d
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x140020c2a
xor eax, eax
jmp 0x140020c2f
call fcn.14002012f
nop
add rsp, 0x38
ret

Function at 0x140029f31
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xdd8
movaps xmmword [rsp + 0xdc0], xmm8
movaps xmmword [rsp + 0xdb0], xmm7
movaps xmmword [rsp + 0xda0], xmm6
mov rax, qword [rcx]
cmp rax, 5
je 0x14002b932
cmp eax, 4
je 0x14002b932
cmp eax, 3
je 0x14002b932
mov rbp, rdx
mov r12, rcx
cmp eax, 2
jne 0x14002b44f
lea rcx, [rsp + 0x120]
lea rax, [r12 + 0x38]
mov qword [rsp + 0x268], rax
mov eax, 0xe0
add rcx, rax
mov qword [rsp + 0x260], rcx
lea r13, [rsp + 0x3e0]
add rax, r13
mov qword [rsp + 0x258], rax
lea rax, [r12 + 0x18]
mov qword [rsp + 0xa8], rax
mov eax, 0xb8
lea rcx, [rsp + 0x720]
add rcx, rax
mov qword [rsp + 0x240], rcx
lea rcx, [rsp + 0x300]
add rax, rcx
mov qword [rsp + 0x248], rax
xorps xmm6, xmm6
lea rbx, [rsp + 0x5b0]
lea r14, [rsp + 0xa30]
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x74], eax
mov qword [rsp + 0x50], r12
mov qword [rsp + 0xa0], rbp
mov rcx, r12
mov rdx, rbp
call fcn.14002ef02
test rax, rax
je 0x14002b466
mov rsi, rdx
test rdx, rdx
je 0x14002b5ac
cmp byte [r12 + 0x1c0], 0
jne 0x14002b5c3
cmp qword [r12 + 0x70], 4
jne 0x14002b45f
mov rax, qword [r12]
mov rbx, r12
jrcxz 0x14002b618
mov edi, dword [rsp + 8]

Function at 0x14002ef02
Capabilities:
Check for software breakpoints

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x2078
call fcn.140072480
sub rsp, rax
movaps xmmword [rsp + 0x2060], xmm8
movaps xmmword [rsp + 0x2050], xmm7
movaps xmmword [rsp + 0x2040], xmm6
mov rbx, rdx
mov r14, rcx
lea r15, [rcx + 0x198]
mov eax, 0xe0
lea rsi, [rsp + 0x13c0]
lea rcx, [rsi + rax]
mov qword [rsp + 0x308], rcx
lea rcx, [rsp + 0x120]
add rax, rcx
mov qword [rsp + 0x310], rax
mov eax, 0xb8
lea rcx, [rsi + rax]
mov qword [rsp + 0x300], rcx
lea rcx, [rsp + 0x328]
add rcx, rax
mov qword [rsp + 0x2f0], rcx
add rax, r14
mov qword [rsp + 0x2e8], rax
xorps xmm6, xmm6
lea rdi, [r14 + 0x1b1]
lea rax, [r14 + 0x170]
mov qword [rsp + 0x118], rax
lea rax, [r14 + 0xc8]
mov qword [rsp + 0x320], rax
lea rax, [r14 + 0x10]
mov qword [rsp + 0x280], rax
lea rax, [r14 + 0x148]
mov qword [rsp + 0x108], rax
lea rax, [r14 + 0x18]
mov qword [rsp + 0x2d0], rax
lea rax, [r14 + 8]
mov qword [rsp + 0x2d8], rax
lea r13, [r14 + 0xf8]
lea rax, [r14 + 0x118]
mov qword [rsp + 0x278], rax
lea rax, [r14 + 0x180]
mov qword [rsp + 0x318], rax
lea rax, [r14 + 0xa1]
mov qword [rsp + 0x2f8], rax
lea rax, [r14 + 0x99]
mov qword [rsp + 0x2e0], rax
lea rbp, [rsp + 0x740]
lea r12, [rsp + 0x430]
mov qword [rsp + 0x230], rax
mov qword [rsp + 0x110], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x30], rdi
Function at 0x140037141
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xd68
movaps xmmword [rsp + 0xd50], xmm7
movaps xmmword [rsp + 0xd40], xmm6
mov qword [rsp + 0x150], r8
mov r14, rdx
mov qword [rsp + 0xa8], rcx
mov word [rax + rbp*4], fs
add byte [rax], al
add byte [rax - 0x75], cl
xchg edx, eax
fadd dword [rax + rax]
add byte [rax - 0x7d], cl
ret 0x4810
lea esi, [rsp + 0x1d0]
mov rcx, rsi
call fcn.14001fb64

Function at 0x140043744
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [rdx + 0x1c8]
cmp qword [rdx + 0x1c0], rax
jb 0x1400438e0
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0x1b0]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0x1f0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x14004381f
test eax, eax
je 0x14004383e
cmp eax, 0x90317
je 0x1400438c0
cmp eax, 0x90321
jne 0x1400438c8
mov dword [rdi + 0x170], 0x10000
xor ebx, ebx
mov byte [rdi + 0x174], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x1c8]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400436d8
and qword [rdi + 0x228], 0
mov byte [rsi + 1], bl
jmp 0x1400438d6
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x228], rax
mov byte [rsi + 1], 0
jmp 0x1400438c4
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0x1b0]
mov rdx, qword [rdi + 0x1c0]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x190]
and qword [rdi + 0x1a0], 0
call fcn.1400438ee
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140003b03
and qword [rdi + 0x1a8], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0x1c8]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400436d8
xor eax, eax
cmp qword [rdi + 0x1c8], rbx
sete al
mov qword [rdi + 0x228], rax
mov byte [rsi + 1], 0
jmp 0x1400438d6
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x1400438d6
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
ud2
Function at 0x140044726
Capabilities:
Decrypt data via sspi

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rax, qword [rdx + 0xc8]
cmp qword [rdx + 0xc0], rax
jb 0x1400448bc
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rdx + 0xb0]
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
movups xmmword [r8 + 0x30], xmm0
mov dword [r8], eax
mov dword [r8 + 4], 1
mov qword [r8 + 8], rcx
movups xmmword [r8 + 0x10], xmm0
movups xmmword [r8 + 0x20], xmm0
movabs rax, 0x400000000
lea rdx, [rsp + 0x60]
mov qword [rdx], rax
mov qword [rdx + 8], r8
lea rcx, [rdi + 0xf0]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.secur32.dll_DecryptMessage]
cmp eax, 0x80090318
je 0x1400447fb
test eax, eax
je 0x14004481a
cmp eax, 0x90317
je 0x14004489c
cmp eax, 0x90321
jne 0x1400448a4
mov dword [rdi + 0x70], 0x10000
xor ebx, ebx
mov byte [rdi + 0x74], bl
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0xc8]
mov eax, 0
cmove eax, dword [rsp + 0x50]
sub rdx, rax
mov rcx, rdi
call fcn.1400448c0
and qword [rdi + 0x128], 0
mov byte [rsi + 1], bl
jmp 0x1400448b2
cmp dword [rsp + 0x34], 4
mov eax, 1
cmove eax, dword [rsp + 0x30]
mov qword [rdi + 0x128], rax
mov byte [rsi + 1], 0
jmp 0x1400448a0
mov r8, qword [rsp + 0x38]
mov rcx, qword [rdi + 0xb0]
mov rdx, qword [rdi + 0xc0]
sub r8, rcx
mov r9d, dword [rsp + 0x30]
add r9, r8
lea rbx, [rdi + 0x90]
and qword [rdi + 0xa0], 0
call fcn.1400438ee
lea r8, [rdx + rax]
mov rcx, rbx
mov rdx, rax
call fcn.140003b03
and qword [rdi + 0xa8], 0
xor ebx, ebx
cmp dword [rsp + 0x54], 5
mov rdx, qword [rdi + 0xc8]
mov eax, dword [rsp + 0x50]
cmovne eax, ebx
sub rdx, rax
mov rcx, rdi
call fcn.1400448c0
xor eax, eax
cmp qword [rdi + 0xc8], rbx
sete al
mov qword [rdi + 0x128], rax
mov byte [rsi + 1], 0
jmp 0x1400448b2
mov byte [rsi + 1], 1
xor ebx, ebx
jmp 0x1400448b2
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov bl, 1
mov byte [rsi], bl
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
ud2