joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801a2ff0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rbp + 0x2f], rax
movzx r14d, r9b
mov rbx, r8
mov rdi, rcx
mov qword [rbp - 0x29], rcx
lea rax, vtable.Ed25519_Hashed_Verify_Operation.0
mov qword [rcx], rax
xor r15d, r15d
mov qword [rcx + 8], r15
add rcx, 0x10
add rdx, 8
call fcn.180114eb0
nop
mov qword [rdi + 0x28], r15
mov qword [rdi + 0x30], r15
mov qword [rdi + 0x38], r15
lea rax, [0x1803c6beb]
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], r15
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbx]
movaps xmmword [rbp - 9], xmm1
lea r8, [rbp - 0x19]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x39]
call fcn.1800f4210
mov rdx, qword [rax]
mov qword [rax], r15
mov rcx, qword [rdi + 8]
mov qword [rdi + 8], rdx
test rcx, rcx
je 0x1801a309c
mov rax, qword [rcx]
lea edx, [r15 + 1]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1801a30b0
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.WS2_32.dll_htonl]
test r14b, r14b
je 0x1801a3107
mov dword [rbp + 7], 0x45676953
mov dword [rbp + 0xb], 0x35353264
mov dword [rbp + 0xf], 0x6e203931
mov dword [rbp + 0x13], 0x6445206f
mov dword [rbp + 0x17], 0x31353532
mov dword [rbp + 0x1b], 0x6f632039
mov dword [rbp + 0x1f], 0x73696c6c
mov dword [rbp + 0x23], 0x736e6f69
mov word [rbp + 0x27], 1
mov r8d, 0x22
lea rdx, [rbp + 7]
lea rcx, [rdi + 0x28]
call fcn.1800d73d0
nop
mov rax, rdi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1800a5910
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801c9ca0
Capabilities:
Generate random numbers via rtlgenrandom
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
xor r14d, r14d
nop word [rax + rax]
mov r8d, dword [rsi]
mov rbx, r14
sub r8d, 1
je 0x1801c9db8
sub r8d, 1
je 0x1801c9d5f
cmp r8d, 2
jne 0x1801c9d9d
mov rdx, qword [rsi + 0x108]
mov r8, qword [rsi + 0x110]
test rdi, rdi
je 0x1801c9d4f
nop dword [rax]
nop word [rax + rax]
lea rax, [rdx + 1]
movzx edx, al
movzx ecx, byte [rdx + rsi + 8]
lea rax, [rcx + r8]
movzx r8d, al
movzx eax, byte [r8 + rsi + 8]
mov byte [rdx + rsi + 8], al
mov byte [r8 + rsi + 8], cl
movzx eax, byte [rdx + rsi + 8]
add rax, rcx
movzx eax, al
movzx ecx, byte [rax + rsi + 8]
mov byte [r14 + rbp], cl
inc r14
cmp r14, rdi
jb 0x1801c9d10
mov qword [rsi + 0x108], rdx
mov qword [rsi + 0x110], r8
jmp 0x1801c9dc2
mov r9, qword [rsi + 8]
mov r8, rdi
mov edx, 1
mov rcx, rbp
call fcn.18029e5dc
test rax, rax
je 0x1801c9d9d
add rbx, rax
cmp rbx, rdi
je 0x1801c9dc2
mov r9, qword [rsi + 8]
lea rcx, [rbx + rbp]
mov r8, rdi
mov edx, 1
sub r8, rbx
call fcn.18029e5dc
test rax, rax
jne 0x1801c9d78
cmp dword [rsi], 2
jne 0x1801c9dab
mov rcx, qword [rsi + 8]
call fcn.18029d798
mov rcx, rsi
call fcn.1801c9b00
jmp 0x1801c9cd0
mov edx, edi
mov rcx, rbp
call sub.ADVAPI32.dll_SystemFunction036
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
ret

Function at 0x1801c9ee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x50]
mov qword [r8], rbp
mov rbx, r8
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x50], ebp
mov rdi, rdx
mov qword [rsp + 0x20], rbp
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1801c9f2c
cmp eax, 0xea
jne 0x1801c9f8f
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1801c9f8f
lea ecx, [rax + 1]
call qword [0x180428630]
mov qword [rbx], rax
test rax, rax
je 0x1801c9f8f
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1801c9f83
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x1801c9f83
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], bpl
mov eax, 1
jmp 0x1801c9f91
mov rcx, qword [rbx]
call qword [fcn.1800a58b0]
mov qword [rbx], rbp
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1801ce2f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2a0
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rsp + 0x290], rax
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx + 0x128]
mov ebx, edx
test rcx, rcx
je 0x1801ce338
call fcn.1801c97f0
mov rdi, rax
test rax, rax
je 0x1801ce44d
test ebx, ebx
je 0x1801ce35e
test rdi, rdi
je 0x1801ce34a
mov rcx, rdi
call qword [fcn.1800a58b0]
lea rcx, str.CARES_HOSTS
call fcn.18029f468
mov rcx, rax
jmp 0x1801ce440
test rdi, rdi
jne 0x1801ce457
xor edx, edx
mov byte [rsp + 0x70], dil
mov r8d, 0x103
lea rcx, [rsp + 0x71]
call fcn.180283390
lea rax, [rsp + 0x38]
mov dword [rsp + 0x30], 0x104
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1801ce3b9
lea eax, [rdi + 4]
jmp 0x1801ce515
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.DatabasePath
lea rax, [rsp + 0x180]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x180]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x70]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1801ce414
mov eax, dword [str.hosts]
mov dword [rcx], eax
movzx eax, word [0x1803c6ebc]
mov word [rcx + 4], ax
movzx eax, byte [0x1803c6ebe]
mov byte [rcx + 6], al
lea rcx, [rsp + 0x70]
call fcn.1801c97f0
mov rdi, rax
test rax, rax
jne 0x1801ce457
mov eax, reloc.WS2_32.dll_ntohs
jmp 0x1801ce515
mov qword [rsp + 0x2b8], rbp
lea rdx, [rsp + 0x40]
mov rbp, qword [rsi + 0x138]
mov rcx, rdi
call fcn.180296bb0
xor ebx, ebx
test eax, eax
cmove rbx, qword [rsp + 0x60]
test rbp, rbp
je 0x1801ce4a8
test rbx, rbx
jne 0x1801ce492
xor ecx, ecx
call fcn.180299ea4
lea rbx, [rax - 0x3c]
mov rcx, qword [rbp + 8]
mov rdx, rdi
call fcn.1801d43c0
test eax, eax
jne 0x1801ce4a8
cmp qword [rbp], rbx
jg 0x1801ce502
mov rbx, qword [rsi + 0x138]
test rbx, rbx
je 0x1801ce4d9
mov rcx, qword [rbx + 8]
call qword [fcn.1800a58b0]
mov rcx, qword [rbx + 0x18]
call fcn.1801c95b0
mov rcx, qword [rbx + 0x10]
call fcn.1801c95b0
mov rcx, rbx
call qword [fcn.1800a58b0]
lea rdx, [rsi + 0x138]
mov qword [rsi + 0x138], 0
mov rcx, rdi
call fcn.1801cdf80
mov rcx, rdi
mov ebx, eax
call qword [fcn.1800a58b0]
mov eax, ebx
jmp 0x1801ce50d
mov rcx, rdi
call qword [fcn.1800a58b0]
xor eax, eax
mov rbp, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x290]
xor rcx, rsp
call fcn.1800a5910
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1801ce540
Capabilities:
Check if file exists

Disassembly:
sub rsp, 0x28
cmp ecx, 2
jne 0x1801ce54f
lea r9d, [rcx + 2]
jmp 0x1801ce558
cmp ecx, 0x17
jne 0x1801ce593
lea r9d, [rcx - 7]
mov qword [rsp + 0x20], rbx
call fcn.1801ce5b0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1801ce580
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1801ce580
mov rbx, qword [rsp + 0x20]
xor eax, eax
add rsp, 0x28
ret
sar ebx, 0x1f
and ebx, 0xfffffffe
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
add rsp, 0x28
ret
Function at 0x1801cf660
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push r14
push r15
sub rsp, 0x48
mov rax, qword [rdx + 0x20]
xor ebx, ebx
mov r14, rdx
mov rbp, rcx
test rax, rax
je 0x1801cf889
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rax + 0x20]
mov r15, rbx
inc rbx
test rax, rax
jne 0x1801cf690
test rbx, rbx
je 0x1801cf889
mov qword [rsp + 0x70], rsi
lea rsi, [rbx + rbx*2]
shl rsi, 4
mov rcx, rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x20], rsi
call qword [0x180428630]
mov qword [rsp + 0x88], rax
mov rdi, rax
test rax, rax
jne 0x1801cf6e0
lea eax, [rdi + 0xf]
jmp 0x1801cf85a
mov qword [rsp + 0x38], r12
xor r12d, r12d
mov qword [rsp + 0x30], r13
mov r13, qword [r14 + 0x20]
test rbx, rbx
je 0x1801cf7f0
lea r14, [rax + 0x28]
nop
mov qword [r14 - 0x28], r13
mov qword [r14], r12
mov rsi, qword [r13 + 0x18]
movzx edx, word [rsi]
cmp edx, 2
je 0x1801cf726
cmp edx, 0x17
je 0x1801cf71f
xor eax, eax
jmp 0x1801cf7c6
mov eax, 0x1c
jmp 0x1801cf72b
mov eax, reloc.WS2_32.dll_recv
mov r9d, reloc.WS2_32.dll_recvfrom
mov dword [rsp + 0x80], eax
mov rcx, rbp
lea r8d, [r9 - 0xf]
call fcn.1801d48d0
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1801cf762
call fcn.180286394
cmp dword [rax], 0x273f
jne 0x1801cf874
xor eax, eax
jmp 0x1801cf7c6
mov r9d, dword [rsp + 0x80]
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.1801d4af0
cmp eax, 0xffffffff
jne 0x1801cf799
call fcn.180286394
cmp dword [rax], 0x2714
je 0x1801cf762
mov rdx, rdi
mov rcx, rbp
call fcn.1801d4ab0
xor eax, eax
jmp 0x1801cf7c6
lea rdx, [r14 - 0x1c]
mov rcx, rdi
lea r8, [rsp + 0x80]
call qword [sym.imp.WS2_32.dll_getsockname]
mov rdx, rdi
mov rcx, rbp
test eax, eax
jne 0x1801cf86f
call fcn.1801d4ab0
mov eax, 1
mov dword [r14 - 0x20], eax
inc r12
mov r13, qword [r13 + 0x20]
add r14, 0x30
cmp r12, rbx
jb 0x1801cf700
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x78]
lea r9, [0x1801cfcf0]
mov r8d, 0x30
mov rdx, rbx
mov rcx, rdi
call fcn.1802a1c00
mov rax, qword [rdi]
mov qword [r14 + 0x20], rax
test r15, r15
je 0x1801cf838
mov rcx, rdi
nop word [rax + rax]
mov rax, qword [rcx + 0x30]
lea rdx, [rcx + 0x30]
mov rcx, qword [rcx]
mov qword [rcx + 0x20], rax
lea rcx, [rdx]
sub r15, 1
jne 0x1801cf820
mov rax, qword [rsi + rdi - 0x30]
mov rcx, rdi
mov qword [rax + 0x20], 0
call qword [fcn.1800a58b0]
xor eax, eax
mov r12, qword [rsp + 0x38]
mov r13, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
call fcn.1801d4ab0
mov rcx, qword [rsp + 0x88]
call qword [fcn.1800a58b0]
mov eax, 4
jmp 0x1801cf850
mov eax, 1
add rsp, 0x48
pop r15
pop r14
pop rbp
pop rbx
ret
Function at 0x1801d4920
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x110]
mov r10, r9
mov r11, r8
mov rbx, rdx
test rax, rax
je 0x1801d496b
mov rax, qword [rax + 0x20]
test rax, rax
je 0x1801d496b
mov qword [rsp + 0x28], r9
lea rdx, [rsp + 0x20]
mov r9, qword [rcx + 0x118]
mov rcx, rbx
mov qword [rsp + 0x20], r8
mov r8d, 1
call rax
add rsp, 0x30
pop rbx
ret
xor r9d, r9d
mov r8d, r10d
mov rdx, r11
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x1801d4990
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x110]
mov r11, r9
mov rbx, r8
mov rdi, rdx
test rax, rax
je 0x1801d49f7
mov r10, qword [rax + 0x18]
test r10, r10
je 0x1801d49f7
mov rax, qword [rcx + 0x118]
mov r8, r11
mov r9d, dword [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rax, qword [rsp + 0x80]
mov r8d, r11d
mov r9d, dword [rsp + 0x70]
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov rbx, qword [rsp + 0x50]
cdqe
add rsp, 0x40
pop rdi
ret

Function at 0x1801d4a30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [rcx + 0x110]
mov r11, r9
mov rbx, r8
mov rdi, rdx
test rax, rax
je 0x1801d4a8a
mov r10, qword [rax + 0x18]
test r10, r10
je 0x1801d4a8a
mov rax, qword [rcx + 0x118]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov r8, r11
xor eax, eax
mov rdx, rbx
mov qword [rsp + 0x28], rax
mov rcx, rdi
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
xor r9d, r9d
mov r8d, r11d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov rbx, qword [rsp + 0x50]
cdqe
add rsp, 0x40
pop rdi
ret

Function at 0x1801d4af0
Capabilities:
Connect socket

Disassembly:
push rbx
mov rax, qword [rcx + 0x110]
mov r10d, r9d
mov r11, r8
mov rbx, rdx
test rax, rax
je 0x1801d4b24
mov rax, qword [rax + 0x10]
test rax, rax
je 0x1801d4b24
mov r9, qword [rcx + 0x118]
mov r8d, r10d
mov rcx, rbx
mov rdx, r11
pop rbx
jmp rax
mov r8d, r10d
mov rdx, r11
mov rcx, rbx
pop rbx
jmp qword [sym.imp.WS2_32.dll_connect]
Function at 0x1801d5b60
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbx
push rbp
push r12
push r13
push r15
sub rsp, 0x180
mov rax, qword [0x180428208]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x50], rcx
mov r15, r8
mov rcx, rdx
mov r12, rdx
xor ebp, ebp
xor ebx, ebx
call fcn.18012dbc0
mov r13, rax
test rax, rax
jne 0x1801d5bde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800974d0
mov r9, rax
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800c0e70
xor ecx, ecx
lea ebx, [rbp + 0x4d]
call qword [fcn.18029e85c]
jmp 0x1801d5d98
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov rcx, r13
mov qword [rsp + 0x170], r14
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1801d5c51
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800974d0
mov r9, rax
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800c0e70
xor ecx, ecx
lea ebx, [r14 + 0x4e]
jmp 0x1801d5d82
lea rdx, [rsp + 0x48]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1801d5c9a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800974d0
mov r9, rax
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800c0e70
mov ebx, 0x4d
jmp 0x1801d5d76
mov qword [rsp + 0x178], rdi
mov rdi, qword [rsp + 0x48]
cmp rdi, 0x100000
jle 0x1801d5ccf
mov r8d, 0x100000
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, r15
call fcn.1800c0e70
mov ebx, 0x4d
jmp 0x1801d5d6e
lea rcx, [rdi + 1]
call qword [fcn.1802a0554]
mov rbp, rax
test rax, rax
jne 0x1801d5ce9
lea ebx, [rax + 0x1b]
jmp 0x1801d5d6e
mov qword [rsp + 0x1c8], rsi
test rdi, rdi
je 0x1801d5d48
nop word [rax + rax]
mov r8d, edi
mov dword [rsp + 0x40], 0
sub r8d, ebx
mov esi, ebx
lea rdx, [rbx + rbp]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1801d5dba
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x1801d5d3f
mov edi, esi
jmp 0x1801d5d41
add ebx, eax
mov eax, ebx
cmp rax, rdi
jb 0x1801d5d00
mov rcx, qword [rsp + 0x50]
mov r9, r12
mov r8, rdi
mov byte [rdi + rbp], 0
mov rdx, rbp
mov qword [rsp + 0x20], r15
call fcn.1801d58e0
mov ebx, eax
mov rsi, qword [rsp + 0x1c8]
mov rdi, qword [rsp + 0x178]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [fcn.18029e85c]
mov rcx, r13
call fcn.18029e85c
mov r14, qword [rsp + 0x170]
mov eax, ebx
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1800a5910
add rsp, 0x180
pop r15
pop r13
pop r12
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.1800974d0
mov r9, rax
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov r8, r12
mov rcx, r15
call fcn.1800c0e70
mov ebx, 0x4d
jmp 0x1801d5d66
Function at 0x1801e2900
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [rcx]
cmp rbx, 0x20
jb 0x1801e29dd
mov rdx, qword [rcx + 8]
mov r9, qword [rcx + 0x18]
mov rax, rdx
mov r8, qword [rcx + 0x10]
mov r11, r9
mov r10, qword [rcx + 0x20]
rol r11, 0xc
rol rax, 1
add r11, rax
mov qword [rsp + 0x30], rsi
movabs rsi, 0x9e3779b185ebca87
mov qword [rsp + 0x38], rdi
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, r8
rol rax, 7
add r11, rax
mov rax, r10
imul rdx, rdi
imul r8, rdi
imul r10, rdi
imul r9, rdi
mov rdi, qword [rsp + 0x38]
rol rax, 0x12
add r11, rax
rol rdx, 0x1f
imul rdx, rsi
movabs rax, 0x7a1435883d4d519d
rol r8, 0x1f
xor r11, rdx
rol r10, 0x1f
imul r11, rsi
imul r8, rsi
imul r10, rsi
sub r11, rax
rol r9, 0x1f
xor r11, r8
imul r11, rsi
imul r9, rsi
sub r11, rax
xor r11, r9
imul r11, rsi
sub r11, rax
xor r11, r10
movabs r10, 0x85ebca77c2b2ae63
imul r11, rsi
mov rsi, qword [rsp + 0x30]
add r10, r11
jmp 0x1801e29ee
mov r10, qword [rcx + 0x18]
movabs rdx, 0x27d4eb2f165667c5
add r10, rdx
add r10, rbx
lea rdx, [rcx + 0x28]
mov rcx, r10
xor r9d, r9d
mov r8, rbx
add rsp, 0x20
pop rbx
jmp 0x1801e2a10
Function at 0x1801fc980
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov r10, rcx
movdqa xmm6, xmmword [0x180342620]
movaps xmmword [rsp + 0x10], xmm7
movdqa xmm7, xmmword [0x180324c70]
movdqu xmm0, xmmword [rcx]
pshufb xmm0, xmm6
test r9, r9
je 0x1801fca6a
movaps xmmword [rsp], xmm8
xorps xmm8, xmm8
nop dword [rax]
movdqu xmm4, xmmword [r8]
lea rax, [rdx + 0x20]
mov ecx, 0x20
movdqa xmm5, xmm8
pshufb xmm4, xmm6
xorps xmm4, xmm0
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
movdqa xmm2, xmm4
psllq xmm4, 1
psrlq xmm2, 0x3f
movdqa xmm3, xmm4
psrlq xmm3, 0x3f
paddq xmm2, xmm7
psllq xmm4, 1
paddq xmm3, xmm7
movdqa xmm1, xmm2
punpckhqdq xmm1, xmm2
punpcklqdq xmm2, xmm2
andnps xmm1, xmm0
xorps xmm5, xmm1
movdqa xmm1, xmm3
punpckhqdq xmm1, xmm3
punpcklqdq xmm3, xmm3
movdqu xmm0, xmmword [rax - 0x50]
andnps xmm2, xmm0
xorps xmm5, xmm2
movdqu xmm0, xmmword [rax - 0x40]
andnps xmm1, xmm0
xorps xmm5, xmm1
movdqu xmm0, xmmword [rax - 0x30]
andnps xmm3, xmm0
xorps xmm5, xmm3
sub rcx, 1
jne 0x1801fc9e0
add r8, 0x10
pshufd xmm0, xmm5, 0x4e
sub r9, 1
jne 0x1801fc9c0
movaps xmm8, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
pshufb xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x20]
movdqu xmmword [r10], xmm0
add rsp, 0x38
ret
Function at 0x180227750
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rbx, r9
mov rbp, r8
mov r15, rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
lea rax, [r9 - 1]
shr rax, 3
mov qword [rsp + 0x98], rax
mov r13, qword [rsp + 0xa0]
lea rcx, [r13 - 1]
shr rcx, 3
mov qword [rsp + 0xa0], rcx
lea rsi, [rcx + 2]
add rsi, rax
mov qword [r15], r14
mov qword [r15 + 8], r14
mov qword [r15 + 0x10], r14
mov r12d, 1
mov edx, r12d
mov rcx, rsi
call fcn.18009de10
mov rcx, rax
mov qword [r15], rax
add rax, rsi
mov qword [r15 + 0x10], rax
lea rdi, [rcx + rsi]
mov r8, rsi
xor edx, edx
call fcn.180283390
mov qword [r15 + 8], rdi
mov dword [rsp + 0x30], r12d
mov rdi, rbx
and edi, 7
mov rsi, qword [rsp + 0x88]
mov rdx, qword [rsi]
mov rcx, qword [r15]
jne 0x18022785a
mov rbx, qword [rsp + 0x98]
inc rbx
test rdx, rdx
je 0x180227925
test rcx, rcx
je 0x180227925
mov r8, rbx
call fcn.180282cf0
mov r8, qword [rsp + 0xa0]
inc r8
mov rdx, qword [rbp]
mov rcx, qword [r15]
add rcx, rbx
test rdx, rdx
je 0x180227925
test rcx, rcx
je 0x180227925
call fcn.180282cf0
jmp 0x18022790a
shr rbx, 3
test rbx, rbx
je 0x180227877
test rdx, rdx
je 0x180227925
test rcx, rcx
je 0x180227925
jmp 0x180227886
test rdx, rdx
je 0x18022788e
test rcx, rcx
je 0x18022788e
test rbx, rbx
je 0x18022788e
mov r8, rbx
call fcn.180282cf0
mov rax, qword [rsi]
mov rcx, rdi
shl r12b, cl
dec r12b
movzx ecx, byte [rbx + rax]
and cl, r12b
mov rax, qword [r15]
mov byte [rbx + rax], cl
shr r13, 3
test r13, r13
je 0x1802278f5
mov r9d, 8
sub r9b, dil
nop dword [rax]
mov r8, qword [r15]
mov rax, qword [rbp]
mov rcx, rdi
movzx edx, byte [rax + r14]
shl dl, cl
xor byte [r8 + rbx], dl
inc rbx
mov rax, qword [rbp]
movzx edx, byte [r14 + rax]
movzx ecx, r9b
shr dl, cl
mov rax, qword [r15]
mov byte [rbx + rax], dl
inc r14
cmp r14, r13
jb 0x1802278c0
mov r8, qword [r15]
mov rax, qword [rbp]
mov rcx, rdi
movzx edx, byte [rax + r13]
shl dl, cl
xor byte [r8 + rbx], dl
mov rax, r15
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [rsp + 0x20], 0x7b
lea r9, [0x1803e49b0]
lea r8, str.copy_mem
lea rdx, str.If_n___0_then_args_are_not_null
lea rcx, str.n___0_implies_in___nullptr__out___nullptr
call fcn.1800d1f70
int3
Function at 0x18022f2d0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push r13
push r14
sub rsp, 0x50
mov rax, qword [rdx + 8]
mov rbx, r8
mov r14, rcx
shl rax, 3
mov ecx, dword [r8 + 0x18]
mov r13, rdx
mov r8d, ecx
imul r8d, dword [rbx + 0x14]
cmp rax, r8
jb 0x18022f43f
mov qword [r11 + 8], rbp
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
xor edi, edi
mov qword [r11 - 0x20], r12
mov r12d, ecx
mov qword [r11 - 0x28], r15
mov qword [r14], 0
mov qword [r14 + 8], 0
mov qword [r14 + 0x10], 0
test ecx, ecx
je 0x18022f3a3
lea rsi, [rcx*4]
cmp rsi, 0x1000
jb 0x18022f41d
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x18022f469
call fcn.1800a5868
test rax, rax
je 0x18022f439
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
lea rax, [rdi + rsi]
lea rdx, [r14 + 8]
mov qword [r14], rdi
mov rcx, rdi
mov r8, rdi
mov qword [rdx], rcx
lea r8, [r12*4]
xor edx, edx
mov qword [r14 + 0x10], rax
mov r9, r14
call fcn.180283390
add rdi, rsi
mov qword [r14 + 8], rdi
mov r9, qword [r14]
xor r8d, r8d
cmp r9, rdi
je 0x18022f3f4
mov ecx, dword [rbx + 0x14]
xor eax, eax
test ecx, ecx
je 0x18022f3eb
mov r10, qword [r13]
nop dword [rax + rax]
mov ecx, r8d
shr rcx, 3
movzx edx, byte [rcx + r10]
movzx ecx, r8b
inc r8d
and ecx, 7
shr edx, cl
mov ecx, eax
and edx, 1
inc eax
shl edx, cl
xor dword [r9], edx
mov ecx, dword [rbx + 0x14]
cmp eax, ecx
jb 0x18022f3c0
add r9, 4
cmp r9, rdi
jne 0x18022f3b1
mov r12, qword [rsp + 0x48]
mov rax, r14
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r14
pop r13
pop rbx
ret
test rsi, rsi
je 0x18022f372
mov rcx, rsi
call fcn.1800a5868
mov rdi, rax
add rax, rsi
jmp 0x18022f376
call fcn.1802986cc
int3
lea r9, [0x1803e2800]
mov dword [rsp + 0x20], 0x1d
lea r8, str.fors_message_to_indices
lea rdx, [0x1803c6beb]
lea rcx, str._message.size____8_____params.k____params.a___
call fcn.1800d1f70
int3
call fcn.180002ef8
int3