joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001bd1
Capabilities:
Create thread
Resume thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0
mov qword [rbp - 8], 0
lea rax, str._i__Local_Mapped_Memory_creation
mov rcx, rax
call sym.puts
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rdx, qword [0x14000a0a8]
mov rax, qword [0x14000a0a0]
lea rcx, [rbp - 0x10]
mov r8, rcx
mov rcx, rax
call sym.LocalMapInject
test eax, eax
jne 0x140001c5a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____LocalMapInject_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0xffffffff
jmp 0x140001ddb
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rax, str.____Copied_Payload_to_Mapped_Address:__p_n
mov rcx, rax
call sym.printf
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9d, 0
lea r8, [sym.Common]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140001d0a
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____CreateThread_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0
jmp 0x140001ddb
lea rax, str._i__Hijacking_Thread
mov rcx, rax
call sym.puts
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rcx, qword [0x14000a0a8]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sym.RunViaClassicThreadHijacking
test eax, eax
jne 0x140001d75
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rax, str.____RunViaClassicThreadHijacking_Failed_With_Error_:__d__n
mov rcx, rax
call sym.printf
mov eax, 0xffffffff
jmp 0x140001ddb
lea rax, str._i__Resuming_Thread
mov rcx, rax
call sym.puts
lea rax, str._i__Sleeping_2s
mov rcx, rax
call sym.puts
mov ecx, 0x7d0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
mov rax, qword [rbp - 8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call rax
mov eax, 0
add rsp, 0x40
pop rbp
ret
Function at 0x140002120
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140002df2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000a168]
test eax, eax
je 0x140002e8a
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000a170]
mov qword [rbp - 8], rax
jmp 0x140002e6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002e62
cmp qword [rbp - 0x10], 0
je 0x140002e62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002e28
lea rax, [0x14000a140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140002e8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002f90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140002fb8
mov eax, 0
jmp 0x140003006
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140002fe1
mov eax, 0
jmp 0x140003006
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003001
mov eax, 0
jmp 0x140003006
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400010d0
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
sub rsp, 0x158
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x140], rax
movsxd rbx, ecx
mov rsi, rdx
cmp ebx, 2
je 0x1400011ab
lea r8, str.EthirisBin
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__dupenv_s]
mov r8, qword [rsp + 0x20]
test r8, r8
jne 0x14000118d
mov qword [rsp + 0x180], rbp
lea edx, [rbx - 1]
lea rcx, str.Need_to_supply_1___ld__parameter___InstallPath__n
mov qword [rsp + 0x150], rdi
call fcn.140001070
mov edi, 1
mov rbp, rbx
cmp rbx, rdi
jle 0x14000116c
mov ebx, edi
nop word [rax + rax]
mov r8, qword [rsi + rbx*8]
lea rcx, str._tParam__ld:__s_n
mov edx, edi
call fcn.140001070
inc edi
inc rbx
cmp rbx, rbp
jl 0x140001150
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov rdi, qword [rsp + 0x150]
mov rbp, qword [rsp + 0x180]
lea rdx, str._sx64AxisJoystickModuleX64.dll
lea rcx, [rsp + 0x30]
call fcn.140001290
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x1400011c0
mov r8, qword [rdx + 8]
lea rcx, [rsp + 0x30]
lea rdx, [0x14000331c]
call fcn.140001290
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x1400011f4
lea rdx, [rsp + 0x30]
lea rcx, str.Cannot_load__s__
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
lea ecx, [rbx - 2]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
lea rdx, str.DllRegisterServer
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140001230
lea rcx, str.Cannot_find_entry_point_DllRegisterServer_
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ecx, 0xfffffffd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call rax
test eax, eax
jns 0x14000125d
lea rcx, str.Failure_calling_entry_point_DllRegisterServer_
call fcn.140001010
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ecx, 0xfffffffc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001300
add rsp, 0x158
pop rsi
pop rbx
ret

Function at 0x140001bd4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov esi, edx
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rbx, rcx
call fcn.1400540d0
xor r11d, r11d
mov qword [rbx + 0x110], r11
mov byte [rbx + 0x118], r11b
mov rcx, qword [rbx + 0xf8]
lea rax, [0x140064eb0]
mov eax, dword [r11 + rax]
mov dword [r11 + rcx], eax
add r11, 4
cmp r11, 0x20
jl 0x14000f685
mov rax, qword [rbx + 0xf8]
bts edi, 0xd
xor dword [rax], 0x2080020
mov rax, qword [rbx + 0xf8]
shl edi, 0x10
xor dword [rax + 8], esi
mov rax, qword [rbx + 0xf8]
mov rbx, qword [rsp + 0x30]
xor dword [rax + 0xc], edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140016320
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
sub rsp, 0x30
mov dil, dl
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
mov r12b, 1
jmp 0x14001638b
mov bpl, 1
test r12b, r12b
jne 0x140016371
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
test dil, dil
je 0x14001636c
call fcn.140016198
mov bpl, al
jmp 0x140016371
call fcn.140015e78
mov rcx, qword [rsp + 0x20]
call fcn.140053fa0
test dil, dil
je 0x140016385
test bpl, bpl
je 0x14001639d
xor r12b, r12b
mov rcx, r13
lea rdx, [rsp + 0x20]
call fcn.1400134f8
mov r13, rax
test rax, rax
jne 0x14001634d
test dil, dil
jne 0x1400163aa
mov rcx, rsi
call fcn.140013eb4
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret

Function at 0x1400163c8
Capabilities:
Query environment variable

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rcx
lea rcx, [0x140065420]
call fcn.140055a94
mov rbx, rax
test rax, rax
je 0x14001645c
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
not rcx
and qword [rsp + 0x28], rax
and qword [rsp + 0x30], rax
and qword [rsp + 0x38], rax
and qword [rsp + 0x40], rax
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.140007518
nop
mov r8, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rdx, rdi
mov rcx, rbx
call fcn.140046674
mov rdx, rdi
mov rcx, rsi
call fcn.1400162b8
mov byte [rsi + 0x83d9], 0
test rdi, rdi
je 0x14001645c
mov rcx, rdi
call fcn.140053fa0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x140016b88
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x850
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x840], rax
mov rax, rdx
mov rbx, r8
mov rdi, rcx
lea rdx, [rsp + 0x40]
mov r8d, 0x400
mov rcx, rax
call fcn.140044f28
call fcn.140055db0
add rax, 0x30
cmp rdi, rax
jne 0x140016bd8
cmp byte [0x140074af9], 0
jne 0x140016bf7
call fcn.140055db0
add rax, 0x60
cmp rdi, rax
jne 0x140016c83
cmp byte [0x140074afa], 0
je 0x140016c83
mov qword [rsp + 0x20], rbx
lea rbx, [0x140076310]
mov esi, 0x1800
lea r8, [rsp + 0x40]
xor r9d, r9d
mov rcx, rbx
mov rdx, rsi
call fcn.140053f68
mov r8, rsi
lea rsi, [0x140074b10]
mov rdx, rsi
mov rcx, rbx
call fcn.140046620
mov rdx, rsi
mov rcx, rsi
call qword [sym.imp.USER32.dll_CharToOemA]
call fcn.140055db0
add rax, 0x30
sub rdi, rax
neg rdi
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x34]
and qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
mov rdx, rsi
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140016cea
mov qword [rsp + 0x20], rbx
lea rbx, [0x140076310]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov edx, 0x1800
mov rcx, rbx
call fcn.140053f68
call fcn.140055db0
xor ecx, ecx
add rax, 0x60
cmp rdi, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
or rcx, 0xffffffffffffffff
mov rdi, rbx
mov r11, rax
xor eax, eax
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], rax
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.140053930
add rsp, 0x850
pop rdi
pop rsi
pop rbx
ret

Function at 0x140017884
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [rcx + 4], 0
mov r8, rcx
jne 0x1400178cb
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 0x140017899
inc r9d
mov dword [r8], r10d
add r8, 4
cmp r9d, 0x100
jb 0x140017890
repz ret
Function at 0x140017944
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov r10, r8
mov rbx, rdx
mov r11d, ecx
lea rsi, [0x140080b20]
test r8, r8
je 0x14001798d
test bl, 7
je 0x14001798d
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140017968
cmp r10, 8
jb 0x140017a3a
mov rdi, r10
shr rdi, 3
mov rax, rdi
imul rax, rax, 0xfffffffffffffff8
add r10, rax
xor r11d, dword [rbx]
mov r9d, dword [rbx + 4]
add rbx, 8
mov eax, r9d
shr eax, 0x10
movzx edx, al
mov eax, r9d
mov r8d, dword [rsi + rdx*4 + 0x400]
shr eax, 0x18
movzx ecx, al
mov eax, r9d
xor r8d, dword [rsi + rcx*4]
shr eax, 8
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x800]
shr eax, 0x18
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1000]
shr eax, 0x10
movzx ecx, al
mov eax, r11d
xor r8d, dword [rsi + rcx*4 + 0x1400]
shr eax, 8
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 0x1400179a8
test r10, r10
je 0x140017a5f
movzx ecx, byte [rbx]
movzx eax, r11b
inc rbx
xor rcx, rax
mov eax, r11d
mov r11d, dword [rsi + rcx*4]
shr eax, 8
xor r11d, eax
sub r10, 1
jne 0x140017a3f
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r11d
ret

Function at 0x140017a94
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov r8, rcx
xor r9d, r9d
mov r10d, 0x100
mov r11, r9
mov ebx, 8
mov rdx, r11
mov cl, r11b
movabs r11, 0xc96c5795d7870f42
shr rdx, 1
mov rax, rdx
xor rax, r11
and cl, 1
mov r11, rdx
cmovne r11, rax
sub rbx, 1
jne 0x140017aad
mov qword [r8], r11
inc r9
add r8, 8
sub r10, 1
jne 0x140017aa5
mov rbx, qword [rsp + 8]
ret
Function at 0x140017b60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10, r8
mov r11, rdx
mov r9, rcx
lea rdi, [0x14007cb20]
test r8, r8
je 0x140017ba7
test r11b, 7
je 0x140017ba7
movzx ecx, byte [r11]
movzx eax, r9b
inc r11
xor rcx, rax
mov rax, r9
mov r9, qword [rdi + rcx*8]
shr rax, 8
xor r9, rax
sub r10, 1
jne 0x140017b7f
mov rax, r10
shr rax, 3
lea rbx, [r11 + rax*8]
jmp 0x140017c44
mov r8, qword [r11]
xor r8, r9
mov rax, r8
shr rax, 0x30
movzx edx, al
mov rax, r8
mov r9, qword [rdi + rdx*8 + 0x800]
shr rax, 0x38
xor r9, qword [rdi + rax*8]
mov rax, r8
shr rax, 0x28
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x1000]
shr rax, 0x20
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x1800]
shr rax, 0x18
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x2000]
shr rax, 0x10
movzx ecx, al
mov rax, r8
xor r9, qword [rdi + rcx*8 + 0x2800]
shr rax, 8
movzx ecx, al
movzx eax, r8b
xor r9, qword [rdi + rcx*8 + 0x3000]
xor r9, qword [rdi + rax*8 + 0x3800]
add r11, 8
cmp r11, rbx
jb 0x140017bb7
and r10d, 7
jbe 0x140017c75
movzx ecx, byte [r11]
movzx eax, r9b
inc r11
xor rcx, rax
mov rax, r9
mov r9, qword [rdi + rcx*8]
shr rax, 8
xor r9, rax
sub r10, 1
jne 0x140017c53
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov rax, r9
ret

Function at 0x140017dc0
Capabilities:
Encode data using xor

Disassembly:
mov r10, rdx
mov r9, rcx
test r8, r8
je 0x140017e72
mov eax, 0x1234
add word [r9 + 0xc00], ax
mov dx, word [r9 + 0xc00]
mov rax, rdx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0x6ec]
mov rax, rdx
xor word [r9 + 0xc02], cx
shr rax, 1
movzx eax, al
movzx ecx, word [r9 + rax*4 + 0x6ee]
sub word [r9 + 0xc04], cx
movzx eax, word [r9 + 0xc04]
mov ecx, 1
xor ax, dx
mov word [r9 + 0xc00], ax
movzx eax, word [r9 + 0xc06]
ror ax, cl
xor ax, word [r9 + 0xc02]
ror ax, cl
xor word [r9 + 0xc00], ax
mov word [r9 + 0xc06], ax
movzx eax, word [r9 + 0xc00]
shr ax, 8
xor byte [r10], al
inc r10
sub r8, 1
jne 0x140017dcf
repz ret

Function at 0x140017e74
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, rcx
lea r9, [rdx + 1]
mov r10d, 4
movzx eax, byte [r9 - 1]
mov edx, dword [r8 + rax*4 + 0x6ec]
xor dword [r8 + 0xbec], edx
movzx eax, byte [r9]
add r9, 4
mov ecx, dword [r8 + rax*4 + 0x6ec]
xor dword [r8 + 0xbf0], ecx
movzx eax, byte [r9 - 3]
mov ecx, dword [r8 + rax*4 + 0x6ec]
xor dword [r8 + 0xbf4], ecx
movzx eax, byte [r9 - 2]
mov ecx, dword [r8 + rax*4 + 0x6ec]
xor dword [r8 + 0xbf8], ecx
sub r10, 1
jne 0x140017e81
repz ret
Function at 0x140018260
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x200
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbp, qword [rsp + 0x260]
mov r14d, 0x40
mov r13, r9
mov r12, r8
mov rbx, rdx
mov rsi, rcx
cmp rdx, r14
jbe 0x1400182e4
lea rcx, [rsp + 0x100]
call fcn.140044488
lea rcx, [rsp + 0x100]
mov r8, rbx
mov rdx, rsi
call fcn.140044714
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x100]
call fcn.1400447d8
lea rsi, [rsp + 0x1b0]
lea ebx, [r14 - 0x20]
xor edi, edi
mov dl, 0x36
mov r8, rdi
cmp rbx, rdi
jbe 0x140018316
lea rax, [rsp + 0x170]
mov r9, rsi
sub r9, rax
lea rcx, [rsp + r8 + 0x170]
inc r8
mov al, byte [r9 + rcx]
xor al, dl
mov byte [rcx], al
cmp r8, rbx
jb 0x1400182fe
cmp rbx, r14
jae 0x14001832e
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.1400540d0
lea rcx, [rsp + 0x20]
call fcn.140044488
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x20]
mov r8, r14
call fcn.140044714
lea rcx, [rsp + 0x20]
mov r8, r13
mov rdx, r12
call fcn.140044714
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x20]
call fcn.1400447d8
lea rcx, [rsp + 0x90]
call fcn.140044488
mov dl, 0x5c
cmp rbx, rdi
jbe 0x1400183a5
lea rax, [rsp + 0x170]
sub rsi, rax
lea rcx, [rsp + rdi + 0x170]
inc rdi
mov al, byte [rsi + rcx]
xor al, dl
mov byte [rcx], al
cmp rdi, rbx
jb 0x14001838e
cmp rbx, r14
jae 0x1400183bd
mov r8, r14
lea rcx, [rsp + rbx + 0x170]
sub r8, rbx
call fcn.1400540d0
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x90]
mov r8, r14
call fcn.140044714
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x90]
mov r8d, 0x20
call fcn.140044714
lea rcx, [rsp + 0x90]
mov rdx, rbp
call fcn.1400447d8
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.140053930
add rsp, 0x200
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140018424
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x120
mov rax, qword [0x140071fd0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rdi, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x190]
mov rax, r8
mov r8d, 0x40
mov r12, rcx
cmp r9, r8
mov r13, rdx
lea rcx, [rsp + 0xa0]
cmovb r8, r9
mov rdx, rax
mov rbx, r9
call fcn.140053b10
lea rax, [rsp + 0x58]
lea r9, [rbx + 4]
lea r8, [rsp + 0xa0]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
mov byte [rsp + rbx + 0xa0], 0
mov byte [rsp + rbx + 0xa1], 0
mov byte [rsp + rbx + 0xa2], 0
mov byte [rsp + rbx + 0xa3], 1
call fcn.140018260
mov r14d, 0x20
lea rcx, [rsp + 0x78]
lea rdx, [rsp + 0x58]
mov r8, r14
call fcn.140053b10
mov r11d, dword [rsp + 0x198]
lea eax, [r14 - 0x10]
dec r11d
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rbp
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r11d
lea rsi, [rsp + 0x40]
lea rdi, [rsp + 0x30]
lea ebp, [rax - 0xd]
cmp dword [rdi], 0
jbe 0x140018575
mov ebx, dword [rdi]
lea rax, [rsp + 0xf0]
lea r8, [rsp + 0x58]
mov r9, r14
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], rax
call fcn.140018260
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0xf0]
mov r8, r14
call fcn.140053b10
xor r11d, r11d
mov rcx, r14
mov al, byte [rsp + r11 + 0x58]
inc r11
xor byte [rsp + r11 + 0x77], al
sub rcx, 1
jne 0x14001855c
sub rbx, 1
jne 0x140018521
mov rcx, qword [rsi]
lea rdx, [rsp + 0x78]
mov r8, r14
call fcn.140053b10
add rdi, 4
add rsi, 8
sub rbp, 1
jne 0x14001851a
lea edx, [rbp + 0x44]
lea rcx, [rsp + 0xa0]
call fcn.1400424f0
lea rcx, [rsp + 0x78]
mov rdx, r14
call fcn.1400424f0
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.1400424f0
lea rcx, [rsp + 0xf0]
mov rdx, r14
call fcn.1400424f0
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.140053930
add rsp, 0x120
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140018994
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbp, rcx
mov rsi, rdx
lea rcx, [rax + 0x18]
lea r9d, [rdi + 1]
xor r8d, r8d
xor edx, edx
mov qword [rax + 0x18], rdi
mov dword [rax - 0x28], 0xf0000040
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, edi
je 0x1400189f4
mov rcx, qword [rsp + 0x60]
mov r8, rbp
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x60]
cmp eax, 1
sete bl
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp bl, dil
jne 0x140018a56
lea rcx, [rsp + 0x68]
call fcn.1400460d0
lea rcx, [rsp + 0x68]
call fcn.14004602c
lea rcx, [rsp + 0x68]
call fcn.140046024
mov rbx, rax
call fcn.140055fd4
movsxd rcx, eax
add rbx, rcx
cmp rsi, rdi
jbe 0x140018a56
mov r8d, dword [0x140082ff0]
mov cl, dil
mov rdx, rbx
and cl, 7
shl cl, 3
shr rdx, cl
xor dl, dil
add dl, r8b
inc r8d
mov byte [rdi + rbp], dl
inc rdi
cmp rdi, rsi
jb 0x140018a2c
mov dword [0x140082ff0], r8d
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140018a64
Capabilities:
Encode data using add xor sub operations
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 r13
push r14
sub rsp, 0x20
mov ebx, dword [rcx + 0xbec]
mov r11d, dword [rcx + 0xbf0]
mov esi, dword [rdx + 8]
mov ebp, dword [rdx + 0xc]
xor r11d, dword [rdx + 4]
xor esi, dword [rcx + 0xbf4]
xor ebp, dword [rcx + 0xbf8]
mov edi, ebx
mov r9, rdx
xor edi, dword [rdx]
xor r13d, r13d
mov r10, rcx
lea r14d, [r13 + 0x20]
mov rax, r13
mov edx, ebp
inc r13
and eax, 3
rol edx, 0xb
mov r8d, dword [r10 + rax*4 + 0xbec]
add edx, esi
xor edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r12d, byte [rax + r10 + 0xaec]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xaec]
mov eax, edx
shr eax, 8
shl ecx, 8
movzx eax, al
or r12d, ecx
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xaec]
shl r12d, 8
mov edx, esi
or r12d, eax
movzx eax, byte [rcx + r10 + 0xaec]
shl r12d, 8
or r12d, eax
xor r12d, edi
ror edx, 0xf
mov edi, esi
xor edx, ebp
mov esi, r12d
add edx, r8d
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx r8d, byte [rax + r10 + 0xaec]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [rax + r10 + 0xaec]
mov eax, edx
shr eax, 8
shl ecx, 8
or r8d, ecx
movzx eax, al
movzx ecx, dl
movzx eax, byte [rax + r10 + 0xaec]
shl r8d, 8
or r8d, eax
movzx eax, byte [rcx + r10 + 0xaec]
shl r8d, 8
or r8d, eax
xor r8d, r11d
sub r14, 1
mov r11d, ebp
mov ebp, r8d
jne 0x140018ab5
xor ebx, r12d
mov rdx, r9
mov rcx, r10
mov dword [r9], ebx
mov eax, dword [r10 + 0xbf0]
xor eax, r8d
mov dword [r9 + 4], eax
mov eax, dword [r10 + 0xbf4]
xor eax, edi
mov dword [r9 + 8], eax
xor r11d, dword [r10 + 0xbf8]
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 r14
pop r13
pop r12
jmp fcn.140017e74