joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140015b9f
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
jmp 0x1400252f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x4f8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0xc6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x518]
mov rax, qword [0x140070328]
xor rax, rbp
mov qword [rbp + 0x488], rax
lea rcx, [0x140078cb5]
call fcn.140015b09
mov dword [rbp + 0x44], 0
mov dword [rbp + 0xa4], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001b
xor r8d, r8d
mov rdx, qword [rbp + 0x4b8]
mov rcx, qword [rbp + 0x4b0]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140025383
jmp 0x1400254fb
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rax, [rbp + 0x44]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400253e6
jmp 0x1400254fb
cmp dword [rbp + 0x44], 0
jne 0x1400253f1
jmp 0x1400254fb
mov edx, 0x20a
lea rcx, [rbp + 0xd0]
call fcn.1400157e4
mov dword [rbp + 0x24], 0
jmp 0x140025413
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0x24], eax
jae 0x1400254f1
mov dword [rbp + 0x84], 0
mov dword [rbp + 0x64], 0x104
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
lea r8, [rbp + 0xd0]
mov edx, dword [rbp + 0x24]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1400254ec
cmp dword [rbp + 0x84], 3
jne 0x1400254b7
mov rdx, qword [rbp + 0x4c0]
lea rcx, [rbp + 0xd0]
call fcn.140015b4f
test rax, rax
je 0x1400254b7
lea rdx, [rbp + 0xd0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1400254b7
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, 2
imul rax, rax, 0
mov qword [rbp + 0x478], rax
cmp qword [rbp + 0x478], 0x20a
jae 0x1400254d6
jmp 0x1400254db
call fcn.140015811
xor eax, eax
mov rcx, qword [rbp + 0x478]
mov word [rbp + rcx + 0xd0], ax
jmp 0x14002540b
xor eax, eax
test eax, eax
jne 0x140025354
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [rbp + 0xa4]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140049f80]
call fcn.14001595b
mov rax, rdi
mov rcx, qword [rbp + 0x488]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x498]
pop rdi
pop rbp
ret
Function at 0x140015bbd
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
jmp 0x140037ba0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x278
lea rbp, [rsp + 0x50]
lea rdi, [rsp + 0x50]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x298]
mov rax, qword [0x140070328]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x140079a23]
call fcn.140015b09
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x260]
bts eax, 0x1a
or eax, 0x20
mov dword [rbp + 0x24], eax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
cmp qword [rbp + 0x270], 0
je 0x140037c37
mov rax, qword [rbp + 0x270]
mov qword [rax], 0
mov edx, 0x18
lea rcx, [rbp + 0x138]
call fcn.1400157e4
mov edx, 0x70
lea rcx, [rbp + 0xb0]
call fcn.1400157e4
mov rcx, qword [rbp + 0x250]
call fcn.14001528a
lea rax, [rax + rax + 2]
mov qword [rbp + 0x88], rax
mov rcx, qword [rbp + 0x88]
call fcn.140015659
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x140037e2f
mov rdx, qword [rbp + 0x250]
mov rcx, qword [rbp + 0x68]
call fcn.1400151ea
mov dword [rbp + 0xb0], 0x70
mov qword [rbp + 0x88], 0x30
cmp qword [rbp + 0x88], 0x400
jbe 0x140037cc3
jmp 0x140037e26
mov rcx, qword [rbp + 0x88]
call fcn.140015659
mov qword [rbp + 0x118], rax
cmp qword [rbp + 0x118], 0
je 0x140037e17
lea r9, [rbp + 0x88]
xor r8d, r8d
mov edx, 1
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140037e0b
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 8
lea r9, [rbp + 0x240]
mov r8d, 0x20000
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140037df4
mov dword [rbp + 0xec], 1
movzx eax, word [rbp + 0x268]
mov word [rbp + 0xf0], ax
mov eax, dword [rbp + 0x24]
bts eax, 0x13
lea rcx, [rbp + 0x138]
mov qword [rsp + 0x48], rcx
lea rcx, [rbp + 0xb0]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp + 0x258]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0x248]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
je 0x140037df4
mov rax, qword [rbp + 0x138]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x270], 0
je 0x140037de7
mov rax, qword [rbp + 0x270]
mov rcx, qword [rbp + 0x140]
mov qword [rax], rcx
jmp 0x140037df4
mov rcx, qword [rbp + 0x140]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x118], 0
je 0x140037e0b
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0x118]
call fcn.140015bae
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140037cb1
mov rcx, qword [rbp + 0x68]
call fcn.140015bae
mov rax, qword [rbp + 0x48]
mov rdi, rax
lea rcx, [rbp - 0x50]
lea rdx, [0x14005eff0]
call fcn.14001595b
mov rax, rdi
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x14000ff80
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000ff8d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000ff9d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000ff85
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000ffb5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000ffa2
sub eax, 3
jb 0x14000ffcf
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140010006
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000fff6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000fff4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000ffe3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000ff42
jmp 0x14000ff8d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x5a00
mov dl, 3
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140010052
cmp rsi, rcx
jae 0x14001005a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140010039
cmp al, 0x8f
ja 0x140010039
cmp byte [rsi - 2], 0xf
je 0x14001003f
sub al, 0xe8
cmp al, 1
ja 0x140010023
cmp rsi, rcx
jae 0x14001005a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140010029
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14001005a
lodsb al, byte [rsi]
jmp 0x140010039
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd000]
mov eax, dword [rdi]
or eax, eax
je 0x1400100b7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x101e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140010067
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400100b1
mov qword [rbx], rax
add rbx, 8
jmp 0x140010087
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400100f1
cmp al, 0xef
ja 0x1400100e3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400100c3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400100d2
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140010145
sub rsp, 0xffffffffffffff80
jmp 0x1400059d0
Function at 0x1809bc058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809bc1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1809bc089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809bc06f
add dl, dl
jne 0x1809bc096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809bc0f6
xor eax, eax
add dl, dl
jne 0x1809bc0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809bc1ad
add dl, dl
jne 0x1809bc0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809bc0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809bc0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809bc0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809bc0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1809bc07e
mov eax, 1
add dl, dl
jne 0x1809bc106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809bc113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809bc0fb
sub eax, ebx
mov ebx, 1
jne 0x1809bc14c
mov ecx, 1
add dl, dl
jne 0x1809bc12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1809bc13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809bc123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809bc07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1809bc168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1809bc175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809bc15d
cmp eax, 0x7d00
jae 0x1809bc19b
cmp eax, 0x500
jb 0x1809bc196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809bc07e
cmp eax, 0x7f
ja 0x1809bc19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809bc07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809bc1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1809bc07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004a30
Capabilities:
Encode data using xor
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov ebx, 0xa
mov ecx, ebx
call qword [sym.imp.kernel32.dll_Sleep]
lea rdx, [rsp + 0x20]
call fcn.140004ab0
mov r10, rax
mov r8, rax
mov r9, rax
nop dword [rax]
movzx edx, byte [r8]
lea r9, [r9 + 1]
movzx ecx, byte [r8]
lea r8, [r8 + 1]
shl cl, 4
shr dl, 4
or cl, dl
mov byte [r9 - 1], cl
movzx eax, byte [r8 - 1]
xor al, 0x67
mov byte [r9 - 1], al
sub rbx, 1
jne 0x140004a60
mov rdx, qword [rdi]
xor r9d, r9d
mov r8, r10
xor ecx, ecx
call qword [sym.imp.user32.dll_MessageBoxA]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x140011010
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400c1900]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400110e3
cmp byte [rcx + 0x71], 0
je 0x1400110e3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400110df
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.msvcp140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400110a4
sub eax, 1
je 0x1400110a8
cmp eax, 2
jne 0x1400110df
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400929b0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400110d6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.ucrtbase.dll_fwrite]
cmp rdi, rax
jne 0x1400110df
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001108c
xor al, al
jmp 0x14001108c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400929b0
add rsp, 0x60
pop rbx
ret

Function at 0x140012030
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c1900]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400929d0
mov r9, rax
mov rax, qword [rbx]
mov qword [r9], rax
mov qword [rsp + 0x30], r9
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x1400151a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x1400120ac
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400929b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3

Function at 0x140014800
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400c1900]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rdx
mov rdi, rcx
mov ecx, 8
call fcn.1400929d0
mov rdx, qword [rbx]
mov qword [rax], rdx
mov qword [rsp + 0x30], rax
lea rbx, [rdi + 8]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1400151a0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ucrtbase.dll__beginthreadex]
mov qword [rdi], rax
test rax, rax
je 0x140014879
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400929b0
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov dword [rbx], 0
mov ecx, 6
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1400180a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1400c1900]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1400c2220]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400180e8
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x1400180dc
mov rax, qword [rax + 0x10]
jmp 0x1400180e2
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1400180d0
cmp byte [rcx + 0x19], 0
jne 0x1400181c4
cmp dword [rcx + 0x20], 4
jg 0x1400181c4
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140018111
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x140018143
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + rdx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x140018130
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140017a60
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14001817e
cmp rcx, qword [rbx + 8]
je 0x14001817e
cmp qword [rbx + 0x10], 1
jne 0x140018182
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400929b0
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x140018168
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.1400181f0
nop
mov r8, rax
lea rdx, [0x140096e60]
lea rcx, [rsp + 0x58]
call fcn.140011f60
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140018040
lea rdx, [0x1400bcd18]
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [0x140096ed0]
call sub.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_
int3
Function at 0x1400221d0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.ucrtbase.dll__read]
cdqe
add rsp, 0x28
ret

Function at 0x1400224f0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1400225cb
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.140026130
cmp eax, 4
je 0x140022548
mov edx, eax
jmp 0x140022575
cmp byte [0x1400c2504], r14b
jne 0x14002257f
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x1400225cd
mov eax, dword [rsp + 0x50]
jmp 0x14002259e
imul eax, dword [0x1400c2500], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1400c2500], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1400225c2
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1400225b0
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x140022520
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1400225e0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x140022683
xor ebp, ebp
lea r14, [0x140097c10]
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140026130
cmp eax, 4
jne 0x14002264f
cmp byte [0x1400c2504], bpl
jne 0x14002269b
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x140022688
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x140022610
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x140022610
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x1400c2500], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1400c2500], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x140022657
Function at 0x140028720
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x140028802
call fcn.14003ecd0
test al, al
jne 0x140028802
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x140028752
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.140040030
test rax, rax
je 0x140028797
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.140040030
mov rsi, rax
test rax, rax
je 0x140028797
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1400287cb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.140021fb0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1400287b0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140037490
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xab7], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x14003755b
cmp qword [rcx + 0x268], 0
je 0x14003750e
mov qword [rsp + 0x40], rbx
call fcn.1400309e0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.140030d50
mov rcx, qword [rdi + 0x1e0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x268]
movzx edx, bl
mov rcx, rdi
call fcn.140030d50
mov rbx, qword [rsp + 0x40]
jmp 0x14003755b
mov ecx, esi
test edx, edx
je 0x14003751e
sub ecx, 1
je 0x14003751e
cmp ecx, 1
jne 0x14003755b
mov r9, qword [rdi + 0x1d8]
lea rax, [0x1400995d8]
mov edx, 2
lea rcx, [rsi + rsi*2]
add rcx, rax
lea r8d, [rdx - 1]
call qword [sym.imp.ucrtbase.dll_fwrite]
mov r9, qword [rdi + 0x1d8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.ucrtbase.dll_fwrite]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x140039dc0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, [0x1400999a0]
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x140039dea
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x1400999b8]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
lea rdx, [0x1400999c8]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.ucrtbase.dll_wcspbrk]
test rax, rax
je 0x140039e4a
mov rcx, rbx
test r14, r14
je 0x140039e37
xor edx, edx
lea r8d, [rdx + 8]
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.kernel32.dll_LoadLibraryW]
test r14, r14
je 0x140039e81
lea rdx, [0x1400999d0]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140039e81
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x140039f4a
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop word [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x140039eb0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [sub.ucrtbase.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140039f3c
mov edx, r15d
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x140039f3c
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x140039ee3
mov dword [rsi + rax*2], 0x5c
cmp word [rsi + rdi*2 + 2], bp
lea rdi, [rdi + 1]
jne 0x140039ef5
lea rcx, [rdi + rdi]
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x140039f10
mov rcx, rsi
test r14, r14
je 0x140039f33
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x140039f39
call qword [sym.imp.kernel32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.140093ac4]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret