joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x1400e91cb
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.1400e9560
test al, al
jne 0x1400e9266
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1400e915f
cmp edx, dword [rbx + 0x60]
jl 0x1400e915f
cmp edx, dword [rbx + 0x64]
jg 0x1400e915f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1400e915f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1400e915f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1400e9182
test byte [r9 + 0x18], 8
je 0x1400e9182
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1400e9193
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1400e9f30
test al, al
jne 0x1400e9266
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1400e91b6
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1400e90f3
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1400e926a
test rdx, rdx
je 0x1400e926a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1400e9208
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1400e920b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1400e9226
dec r11d
add r11d, eax
jmp 0x1400e923d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1400ea250
test al, al
jne 0x1400e9266
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1400ea250
test al, al
jne 0x1400e9266
mov rdx, qword [rsi]
add di, bp
jne 0x1400e91f0
jmp 0x1400e926e
mov al, 1
jmp 0x1400e9279
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1400ef310
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push rbx
push rbp
sub rsp, 0x48
mov rbp, rdx
mov rbx, rcx
test rcx, rcx
jne 0x1400ef32c
lea eax, [rcx + 0x28]
add rsp, 0x48
pop rbp
pop rbx
ret
mov qword [rsp + 0x68], rsi
xor r9d, r9d
mov qword [rsp + 0x40], r14
mov edx, 0x80000000
xor r14d, r14d
mov rcx, rbp
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400ef380
mov r14, qword [rsp + 0x40]
lea eax, [rsi + 2]
mov rsi, qword [rsp + 0x68]
add rsp, 0x48
pop rbp
pop rbx
ret
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x78], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400ef4a5
mov rax, qword [rsp + 0x70]
cmp rax, 0x7fffffff
jg 0x1400ef4a5
test rax, rax
je 0x1400ef4a5
xor r9d, r9d
mov qword [rsp + 0x28], r14
xor edx, edx
mov dword [rsp + 0x20], r14d
mov rcx, rsi
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov rdi, rax
test rax, rax
je 0x1400ef4a5
mov ecx, dword [rsp + 0x70]
xor r9d, r9d
mov dword [rbx + 8], ecx
xor r8d, r8d
mov rcx, rax
mov dword [rbx + 0xc], r14d
mov qword [rsp + 0x20], r14
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rdi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], r14
je 0x1400ef41a
lea rax, [0x1400ef500]
jmp 0x1400ef473
mov rcx, qword [rbx + 0x30]
xor edx, edx
movsxd r8, dword [rbx + 8]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
test rax, rax
je 0x1400ef4a5
mov edi, r14d
nop dword [rax + rax]
mov r8d, dword [rbx + 8]
lea r9, [rsp + 0x60]
mov edx, edi
sub r8d, edi
add rdx, qword [rbx]
mov rcx, rsi
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ef493
add edi, dword [rsp + 0x60]
cmp edi, dword [rbx + 8]
jne 0x1400ef440
lea rax, [0x1400ef4d0]
mov rcx, rsi
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx]
mov qword [rbx + 0x10], rax
xor eax, eax
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], r14
jmp 0x1400ef4ba
mov rcx, qword [rbx + 0x30]
xor edx, edx
mov r8, qword [rbx]
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x51
mov qword [rbx], r14
mov qword [rbx + 8], r14
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop rbp
pop rbx
ret
Function at 0x1400f0c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1400f0c1b
xor eax, eax
ret
lea r11, [0x1401173e0]
not ecx
cmp r8d, 8
jb 0x1400f0cf1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1400f0c40
test r8d, r8d
je 0x1400f0d1d
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1400f0d00
not ecx
mov eax, ecx
ret
Function at 0x1400f48cc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400f4906
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400f490b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400f4954
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1401179f0]
cmp byte [rcx + rax], 0
je 0x1400f4954
dec r8
sub rdx, 1
jne 0x1400f493a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400f62d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f631a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f631a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f631a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f631a
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f631a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400f631c
xor al, al
add rsp, 0x28
ret
Function at 0x140010274
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp dword [0x1400a5f04], 2
mov edi, r8d
mov esi, edx
mov rbx, rcx
jl 0x1400102d4
movdqa xmm0, xmmword [0x140071730]
movdqa xmm1, xmmword [0x140071720]
movdqa xmmword [0x14008b0d0], xmm0
movdqa xmm0, xmmword [0x140071700]
movdqa xmmword [0x14008b0e0], xmm1
movdqa xmm1, xmmword [0x140071710]
movdqa xmmword [0x14008b0f0], xmm0
movdqa xmmword [0x14008b100], xmm1
xor edx, edx
mov r8d, 0xf0
call fcn.14005c700
xor edx, edx
mov qword [rbx + 0x110], rdx
mov byte [rbx + 0x118], dl
mov rcx, qword [rbx + 0xf8]
lea rax, [0x1400716e0]
mov eax, dword [rdx + rax]
mov dword [rdx + rcx], eax
add rdx, 4
cmp rdx, 0x20
jl 0x1400102f0
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
shl edi, 0x10
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
xor dword [rax + 0xc], edi
add rsp, 0x20
pop rdi
ret

Function at 0x140014d1c
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
xor r15d, r15d
mov sil, dl
mov word [rcx + 0x8522], r15w
mov rbx, rcx
mov byte [rcx + 0x8519], r15b
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov r14b, 1
jmp 0x140014d83
test r14b, r14b
jne 0x140014d73
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
test sil, sil
je 0x140014d6e
call fcn.140014ecc
jmp 0x140014d73
call fcn.1400149f8
mov rcx, qword [rsp + 0x40]
call fcn.14005eb88
mov rcx, rbp
mov r14b, r15b
lea rdx, [rsp + 0x40]
call fcn.140014094
mov rbp, rax
test rax, rax
jne 0x140014d55
test sil, sil
jne 0x140014da2
mov rcx, rbx
call fcn.140014db8
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x1400180c0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x850
mov rax, qword [0x14008a6c0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rax, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x40]
mov rcx, rax
mov r8d, 0x400
call fcn.14004a5f4
mov esi, 1
mov ecx, esi
call fcn.140062830
xor r14d, r14d
cmp rbx, rax
jne 0x140018119
cmp byte [0x14008c73c], r14b
jne 0x14001813b
mov ebp, 2
mov ecx, ebp
call fcn.140062830
cmp rbx, rax
jne 0x140018203
cmp byte [0x14008c73d], r14b
je 0x140018203
mov ecx, esi
call fcn.140062830
sub rbx, rax
neg rbx
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbp, rax
call fcn.140006484
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
mov esi, 0x1800
mov qword [rsp + 0x20], r14
lea rdi, [0x14008ff50]
mov r8d, esi
mov rcx, qword [rax]
mov rdx, rdi
call fcn.1400613c4
mov ecx, dword [0x14008c738]
cmp ecx, 3
jne 0x1400181a5
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r14w
jne 0x140018193
add r8d, r8d
mov rdx, rdi
jmp 0x1400181ee
lea rbx, [0x140092f50]
cmp ecx, 4
mov rdx, rbx
mov r8, rsi
mov rcx, rdi
jne 0x1400181c1
call fcn.14004d8c4
jmp 0x1400181c6
call fcn.14004d840
test dword [0x14008c738], 0xfffffffd
jne 0x1400181de
mov rdx, rbx
mov rcx, rbx
call qword [sym.imp.USER32.dll_CharToOemA]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], r14b
jne 0x1400181e2
mov rdx, rbx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x14001826c
call fcn.140006484
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x40]
lea rdi, [0x14008ff50]
mov qword [rsp + 0x20], r14
mov r8d, 0x1800
mov rdx, rdi
mov rcx, qword [rax]
call fcn.1400613c4
mov ecx, ebp
call fcn.140062830
mov ecx, r14d
cmp rbx, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], r14w
jne 0x14001824c
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.14005a610
add rsp, 0x850
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140018598
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea rsi, [0x140094750]
mov r10, r8
mov rbx, rdx
mov r11d, ecx
test r8, r8
je 0x1400185e1
test bl, 7
je 0x1400185e1
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x1400185bc
cmp r10, 8
jb 0x14001868b
mov rdi, r10
shr rdi, 3
imul rax, rdi, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x18
movzx edx, al
mov eax, r9d
shr eax, 0x10
movzx ecx, al
mov eax, r9d
shr eax, 8
mov r8d, dword [rsi + rdx*4]
xor r8d, dword [rsi + rcx*4 + 0x400]
movzx ecx, al
mov eax, r11d
shr eax, 0x18
xor r8d, dword [rsi + rcx*4 + 0x800]
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8d, dword [rsi + rcx*4 + 0x1000]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8d, dword [rsi + rcx*4 + 0x1400]
movzx ecx, al
movzx eax, r9b
xor r8d, dword [rsi + rcx*4 + 0x1800]
xor r8d, dword [rsi + rax*4 + 0xc00]
movzx eax, r11b
mov r11d, r8d
xor r11d, dword [rsi + rax*4 + 0x1c00]
sub rdi, 1
jne 0x1400185f9
test r10, r10
je 0x1400186b0
movzx ecx, byte [rbx]
inc rbx
movzx eax, r11b
xor rcx, rax
mov eax, r11d
shr eax, 8
mov r11d, dword [rsi + rcx*4]
xor r11d, eax
sub r10, 1
jne 0x140018690
mov rbx, qword [rsp + 8]
mov eax, r11d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x1400186c4
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
xor esi, esi
lea r14, [0x140096750]
mov r10, r8
mov r11, rdx
mov r9, rcx
test r8, r8
je 0x140018716
test r11b, 7
je 0x140018716
movzx ecx, byte [r11]
inc r11
movzx eax, r9b
xor rcx, rax
mov rax, r9
shr rax, 8
mov r9, qword [r14 + rcx*8]
xor r9, rax
sub r10, 1
jne 0x1400186ee
mov rax, r10
mov rdi, rsi
shr rax, 3
lea rbx, [rax*8 + 7]
shr rbx, 3
lea rcx, [r11 + rax*8]
cmp r11, rcx
cmova rbx, rsi
test rbx, rbx
je 0x1400187d9
mov r8, qword [r11]
inc rdi
xor r8, r9
add r11, 8
mov rdx, r8
mov rax, r8
shr rax, 0x30
movzx ecx, al
mov rax, r8
shr rax, 0x28
shr rdx, 0x38
mov r9, qword [r14 + rdx*8]
xor r9, qword [r14 + rcx*8 + 0x800]
movzx ecx, al
mov rax, r8
shr rax, 0x20
xor r9, qword [r14 + rcx*8 + 0x1000]
movzx ecx, al
mov rax, r8
shr rax, 0x18
xor r9, qword [r14 + rcx*8 + 0x1800]
movzx ecx, al
mov rax, r8
shr rax, 0x10
xor r9, qword [r14 + rcx*8 + 0x2000]
movzx ecx, al
mov rax, r8
shr rax, 8
xor r9, qword [r14 + rcx*8 + 0x2800]
movzx ecx, al
movzx eax, r8b
xor r9, qword [r14 + rcx*8 + 0x3000]
xor r9, qword [r14 + rax*8 + 0x3800]
cmp rdi, rbx
jb 0x140018740
and r10d, 7
jbe 0x140018801
movzx ecx, byte [r11]
inc r11
movzx eax, r9b
xor rcx, rax
mov rax, r9
shr rax, 8
mov r9, qword [r14 + rcx*8]
xor r9, rax
sub r10, 1
jne 0x1400187df
mov rbx, qword [rsp + 8]
mov rax, r9
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
ret
Function at 0x14001883c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x140018883
xor r9d, r9d
mov r10d, r9d
mov r11d, 8
mov edx, r10d
mov ecx, r10d
shr edx, 1
mov eax, edx
mov r10d, edx
xor eax, 0xedb88320
and cl, 1
cmovne r10d, eax
sub r11, 1
jne 0x140018851
mov dword [r8], r10d
inc r9d
add r8, 4
cmp r9d, 0x100
jb 0x140018848
ret

Function at 0x140018884
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8, rcx
xor r9d, r9d
mov r11d, 0x100
mov r10, r9
mov ebx, 8
mov rdx, r10
mov cl, r10b
shr rdx, 1
movabs r10, 0xc96c5795d7870f42
mov rax, rdx
xor rax, r10
mov r10, rdx
and cl, 1
cmovne r10, rax
sub rbx, 1
jne 0x14001889d
mov qword [r8], r10
inc r9
add r8, 8
sub r11, 1
jne 0x140018895
mov rbx, qword [rsp + 8]
ret

Function at 0x140018a48
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rdi
sub rsp, 0x80
mov rax, qword [0x14008a6c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
mov rdi, rdx
mov rbx, rcx
mov ebp, 0x20
jne 0x140018adc
and qword [r11 - 0x48], 0
lea r9d, [rbp - 0x1c]
mov eax, dword [rcx + 4]
lea r8, [r11 - 0x38]
and qword [r11 - 0x50], 0
mov edx, ebp
and qword [r11 - 0x58], 0
mov rcx, rdi
and qword [r11 - 0x60], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x30]
mov qword [r11 - 0x68], rax
call fcn.140019dd8
and dword [rbx + 4], 0
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
movzx eax, byte [r9]
mov ecx, r8d
and ecx, 3
inc r8d
shl ecx, 3
inc r9
shl eax, cl
xor edx, eax
cmp r8d, ebp
jb 0x140018abd
mov dword [rbx + 4], edx
cmp dword [rbx], 3
jne 0x140018b27
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
lea r8, [rbx + 4]
and qword [rsp + 0x30], 0
mov r9, rbp
and qword [rsp + 0x28], 0
mov rdx, rbp
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.140019dd8
movups xmm0, xmmword [rsp + 0x58]
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rbx + 4], xmm0
movups xmmword [rbx + 0x14], xmm1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14005a610
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140018b4c
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x140018bfc
mov eax, 0x1234
add word [r9 + 0x10b8], ax
movzx edx, word [r9 + 0x10b8]
mov eax, edx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba4]
mov eax, edx
xor word [r9 + 0x10ba], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0xba6]
sub word [r9 + 0x10bc], cx
mov ecx, 1
movzx eax, word [r9 + 0x10bc]
xor ax, dx
mov word [r9 + 0x10b8], ax
movzx eax, word [r9 + 0x10be]
ror ax, cl
xor ax, word [r9 + 0x10ba]
ror ax, cl
xor word [r9 + 0x10b8], ax
mov word [r9 + 0x10be], ax
movzx eax, word [r9 + 0x10b8]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140018b5b
ret
Function at 0x140018c30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14008a6c0]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, dword [rdx]
mov r15d, 0x1f
mov r11d, dword [rdx + 4]
mov r10, rdx
mov esi, dword [rdx + 8]
mov r9, rcx
movups xmm0, xmmword [rdx]
mov ebx, dword [rcx + 0x10a4]
mov r12d, r15d
xor r11d, dword [rcx + 0x10a8]
xor edi, ebx
xor esi, dword [rcx + 0x10ac]
mov ebp, dword [rdx + 0xc]
xor ebp, dword [rcx + 0x10b0]
movdqu xmmword [rsp + 0x20], xmm0
mov rax, r12
mov edx, ebp
and eax, 3
rol edx, 0xb
add edx, esi
dec r12
mov r8d, dword [r9 + rax*4 + 0x10a4]
xor edx, r8d
mov eax, edx
shr rax, 0x10
movzx eax, al
movzx r14d, byte [rax + r9 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r9 + 0xfa4]
mov eax, edx
shr rax, 8
movzx eax, al
shl ecx, 8
or r14d, ecx
shl r14d, 8
movzx ecx, byte [rax + r9 + 0xfa4]
or r14d, ecx
movzx ecx, dl
shl r14d, 8
mov edx, esi
ror edx, 0xf
xor edx, ebp
movzx eax, byte [rcx + r9 + 0xfa4]
add edx, r8d
or r14d, eax
mov eax, edx
shr rax, 0x10
xor r14d, edi
movzx eax, al
mov edi, esi
mov esi, r14d
movzx r8d, byte [rax + r9 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r9 + 0xfa4]
mov eax, edx
shl ecx, 8
or r8d, ecx
shr rax, 8
shl r8d, 8
movzx eax, al
movzx ecx, byte [rax + r9 + 0xfa4]
or r8d, ecx
movzx ecx, dl
shl r8d, 8
movzx eax, byte [rcx + r9 + 0xfa4]
or r8d, eax
xor r8d, r11d
mov r11d, ebp
sub r15d, 1
mov ebp, r8d
jns 0x140018c94
xor ebx, r14d
lea rdx, [rsp + 0x20]
mov dword [r10], ebx
mov rcx, r9
mov eax, dword [r9 + 0x10a8]
xor eax, r8d
mov dword [r10 + 4], eax
mov eax, dword [r9 + 0x10ac]
xor eax, edi
mov dword [r10 + 8], eax
xor r11d, dword [r9 + 0x10b0]
mov dword [r10 + 0xc], r11d
call fcn.140019d24
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14005a610
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140018e68
Capabilities:
Encode data using xor

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 ebx, dword [rcx + 0x10a4]
mov r9, rdx
mov r11d, dword [rdx + 4]
mov edi, ebx
mov esi, dword [rdx + 8]
mov r10, rcx
mov ebp, dword [rdx + 0xc]
xor edi, dword [rdx]
xor r11d, dword [rcx + 0x10a8]
xor esi, dword [rcx + 0x10ac]
xor ebp, dword [rcx + 0x10b0]
xor r15d, r15d
lea r12d, [r15 + 0x20]
mov rax, r15
mov edx, ebp
and eax, 3
rol edx, 0xb
add edx, esi
inc r15
mov r8d, dword [r10 + rax*4 + 0x10a4]
xor edx, r8d
mov eax, edx
shr rax, 0x10
movzx eax, al
movzx r14d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shr rax, 8
movzx eax, al
shl ecx, 8
or r14d, ecx
shl r14d, 8
movzx ecx, byte [rax + r10 + 0xfa4]
or r14d, ecx
movzx ecx, dl
shl r14d, 8
mov edx, esi
ror edx, 0xf
xor edx, ebp
movzx eax, byte [rcx + r10 + 0xfa4]
add edx, r8d
or r14d, eax
mov eax, edx
shr rax, 0x10
xor r14d, edi
movzx eax, al
mov edi, esi
mov esi, r14d
movzx r8d, byte [rax + r10 + 0xfa4]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rax + r10 + 0xfa4]
mov eax, edx
shl ecx, 8
or r8d, ecx
shr rax, 8
shl r8d, 8
movzx eax, al
movzx ecx, byte [rax + r10 + 0xfa4]
or r8d, ecx
movzx ecx, dl
shl r8d, 8
movzx eax, byte [rcx + r10 + 0xfa4]
or r8d, eax
xor r8d, r11d
mov r11d, ebp
mov ebp, r8d
sub r12, 1
jne 0x140018eb9
xor ebx, r14d
mov rdx, r9
mov dword [r9], ebx
mov rcx, r10
mov eax, dword [r10 + 0x10a8]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0x10ac]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0x10b0]
mov dword [r9 + 0xc], r11d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
jmp fcn.140019d24

Function at 0x14001901c
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
and qword [rax + 0x18], 0
mov rdi, rdx
mov rsi, rcx
mov dword [rax - 0x18], 0xf0000040
xor edx, edx
lea rcx, [rax + 0x18]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x14001907e
mov rcx, qword [rsp + 0x50]
mov r8, rsi
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x50]
cmp eax, 1
sete bl
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test bl, bl
jne 0x140019089
mov rdx, rdi
mov rcx, rsi
call fcn.140019c9c
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14001923c
Capabilities:
Encode data using xor

Disassembly:
xor r11d, r11d
mov r8, rdx
mov word [rcx + 0x10b5], r11w
mov byte [rcx + 0x10b4], r11b
mov al, byte [rdx]
test al, al
je 0x140019288
mov dl, r11b
mov r9b, r11b
mov r10b, r11b
add dl, al
add r10b, al
xor r9b, al
rol dl, 1
inc r8
mov byte [rcx + 0x10b6], dl
mov byte [rcx + 0x10b4], r10b
mov byte [rcx + 0x10b5], r9b
mov al, byte [r8]
test al, al
jne 0x140019260
ret
Function at 0x14001928c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
add rcx, 0xba4
call fcn.14001883c
or r8, 0xffffffffffffffff
xor esi, esi
inc r8
cmp byte [rdi + r8], sil
jne 0x1400192b3
mov rdx, rdi
or ecx, 0xffffffff
call fcn.140018598
mov word [rbx + 0x10b8], ax
shr eax, 0x10
mov word [rbx + 0x10ba], ax
mov dword [rbx + 0x10bc], esi
mov al, byte [rdi]
test al, al
je 0x140019327
mov r8d, esi
mov r9d, esi
movzx edx, al
inc rdi
movzx ecx, al
movzx eax, word [rbx + rdx*4 + 0xba4]
xor ax, cx
xor r9w, ax
mov word [rbx + 0x10bc], r9w
movzx eax, word [rbx + rdx*4 + 0xba6]
add ax, cx
add r8w, ax
mov word [rbx + 0x10be], r8w
mov al, byte [rdi]
test al, al
jne 0x1400192ea
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret