joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400dd0d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400dd0f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400dd0f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400e7128
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1400e0c74
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400e71c9
cmp ebx, dword [rsp + 0x30]
je 0x1400e71c2
test esi, esi
je 0x1400e71c2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400e719d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400e71aa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400e7187
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400e71ae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400e71cb
mov eax, 1
jmp 0x1400e71cb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400e8114
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400e8144
xor eax, eax
jmp 0x1400e8207
mov rbp, rbx
cmp word [rax], si
je 0x1400e8169
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400e8150
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400e814c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1400e8034
movsxd r14, eax
test eax, eax
jne 0x1400e81a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400e813d
mov rcx, r14
call fcn.140025c20
mov rdi, rax
test rax, rax
jne 0x1400e81c0
xor ecx, ecx
call fcn.140076410
jmp 0x1400e819c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1400e8034
test eax, eax
jne 0x1400e81f1
mov rcx, rdi
call fcn.140076410
jmp 0x1400e81fb
xor ecx, ecx
call fcn.140076410
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1400e8224
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400e82ab
mov rsi, rbx
cmp word [rax], bp
je 0x1400e826a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400e8254
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400e8250
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140025c20
mov rdi, rax
test rax, rax
je 0x1400e8298
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bf060
mov rbp, rdi
xor ecx, ecx
call fcn.140076410
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ea864
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400c6328
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ea8ee
cmp byte [rbp - 0x21], r15b
je 0x1400ea8e9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ea924
call fcn.1400e1444
test eax, eax
jne 0x1400ea910
cmp byte [rbp - 0x21], r15b
je 0x1400ea908
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ea924
cmp byte [rbp - 0x21], r15b
je 0x1400ea921
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400cb93c
test eax, eax
jne 0x1400ea9c4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400c6328
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ea963
cmp byte [rbp - 0x21], r15b
je 0x1400ea998
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ea998
call fcn.1400e1444
test eax, eax
jne 0x1400ea984
cmp byte [rbp - 0x21], r15b
je 0x1400ea97d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ea998
cmp byte [rbp - 0x21], r15b
je 0x1400ea995
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400cb93c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ea9c4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ea9c7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ea9d5
mov rcx, rdi
call fcn.140076410
cmp byte [rbp + 0x3f], r15b
je 0x1400ea9e4
mov rcx, qword [rbp + 0x27]
call fcn.140076410
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1400eb320
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400eb336
mov al, 1
jmp 0x1400eb396
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400eb347
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400eb394
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400cfb6c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400eb394
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400eb394
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400eb394
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400eb396
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400f3b60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rdx, rdx
je 0x1400f3b73
cmp dword [0x1401a91d0], ecx
jle 0x1400f3b7a
add rsp, 0x28
pop rdi
pop rsi
ret
mov rsi, rdx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
movsxd rdi, eax
mov rcx, rsi
mov rdx, rdi
call fcn.1400f3bc0
test edi, edi
je 0x1400f3b73
cmp byte [rdi + rsi - 1], 0xa
je 0x1400f3b73
lea rcx, [0x14016ff2d]
mov edx, 1
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1400f3bc0

Function at 0x1400f3bc0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
add rsi, rdi
xor r15d, r15d
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1400f3c0e
mov rdx, rcx
add rdi, rdx
cmp al, 1
je 0x1400f3c4c
cmp rdi, rsi
jae 0x1400f3c4c
mov dword [rsp + 0x2c], 0
mov r8d, esi
sub r8d, edi
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r9, r14
call r12
test eax, eax
sete dl
mov ecx, dword [rsp + 0x2c]
test rcx, rcx
sete al
or al, dl
mov edx, 0
jne 0x1400f3c07
jmp 0x1400f3c04
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400bd5c0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400ff1b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor edx, edx
jmp 0x1400ff300
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebx, edx
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x60], 0
je 0x1400ff35c
mov edi, dword [rsi + 0x5c]
test bl, bl
je 0x1400ff33c
mov dword [rsi + 0x5c], 0xffffffff
mov byte [rsi + 0x60], 0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x61], 0
je 0x1400ff3a7
mov rcx, qword [rsi + 0x40]
call fcn.1400d8754
mov ecx, 0xaa
mov edi, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
je 0x1400ff33c
test bl, bl
je 0x1400ff38b
movzx ebx, cl
mov dword [rsi + 0x5c], ebx
mov edi, ebx
jmp 0x1400ff33c
mov rdx, qword [rsi + 0x40]
movzx ebx, cl
mov ecx, ebx
call fcn.1400dc1a4
cmp eax, 0xffffffff
jne 0x1400ff387
jmp 0x1400ff33c
mov edi, 0xffffffff
jmp 0x1400ff33c
movabs rdi, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x58], rdi
mov eax, dword [rsi + 0x58]
cmp eax, 2
mov r15d, 1
cmovge r15d, eax
xor r14d, r14d
mov rcx, qword [rsi + 0x40]
call fcn.1400d8754
cmp eax, 0xffffffff
je 0x1400ff3a0
mov byte [rsp + r14 + 0x58], al
inc r14
cmp r15, r14
jne 0x1400ff3c9
lea rax, [rsp + 0x58]
mov byte [rax - 1], 0xaa
lea rax, [rsp + 0x48]
mov qword [rax], rdi
lea rbp, [rsp + 0x40]
mov qword [rbp], rdi
mov edi, 0xffffffff
mov rcx, qword [rsi + 0x48]
mov rdx, qword [rsi + 0x50]
mov r14d, dword [rdx]
movzx r12d, word [rdx + 4]
movzx r13d, word [rdx + 6]
lea r9, [rsp + r15 + 0x58]
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x58]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x57]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x58]
call qword [0x1401c0008]
cmp eax, 1
jne 0x1400ff491
mov rax, qword [rsi + 0x50]
mov dword [rax], r14d
mov word [rax + 4], r12w
mov word [rax + 6], r13w
cmp r15d, 8
je 0x1400ff33c
mov rcx, qword [rsi + 0x40]
call fcn.1400d8754
cmp eax, 0xffffffff
je 0x1400ff33c
mov byte [rsp + r15 + 0x58], al
inc r15
jmp 0x1400ff403
cmp eax, 2
je 0x1400ff33c
cmp eax, 3
jne 0x1400ff4a7
mov al, byte [rsp + 0x58]
mov byte [rsp + 0x57], al
test bl, bl
je 0x1400ff4c2
movzx edi, byte [rsp + 0x57]
mov dword [rsi + 0x5c], edi
jmp 0x1400ff33c
movzx edi, byte [rsp + 0x57]
jmp 0x1400ff33c
test r15, r15
jle 0x1400ff4b8
mov rdx, qword [rsi + 0x40]
dec r15
mov eax, r15d
movzx ecx, byte [rsp + rax + 0x58]
call fcn.1400dc1a4
cmp eax, 0xffffffff
jne 0x1400ff4c2
jmp 0x1400ff33c

Function at 0x1400ffdc0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400ffdf7
movabs rcx, 0xf000000000000000
shl rax, 4
movsx r9, byte [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
inc rdx
cmp rdx, r8
jne 0x1400ffdd1
ret
Function at 0x1400ffe60
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp rdx, r8
je 0x1400ffe98
movabs rcx, 0xf000000000000000
shl rax, 4
movzx r9d, word [rdx]
add r9, rax
mov r10, r9
and r10, rcx
mov rax, r10
shr rax, 0x38
or rax, r10
xor rax, r9
add rdx, 2
cmp rdx, r8
jne 0x1400ffe71
ret

Function at 0x140114d60
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x140114dd1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x140114ddb
mov dil, 1
test bl, bl
je 0x140114dba
cmp byte [rsi + 8], 0
je 0x140114dd6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x140114d8d
mov rcx, qword [rsi]
jmp 0x140114daf
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x140114e03
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140114e08
xor edi, edi
jmp 0x140114dba
mov rcx, qword [rsi]
jmp 0x140114df0
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x140114e2f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x140114dba
mov rcx, qword [rsi]
jmp 0x140114e1f
Function at 0x1401152b0
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx + 0x40], rax
movaps xmm0, xmmword [0x14016f5f0]
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
lea rdx, str.DeleteFileAfterReboot
lea r8, str....._base_files_file_util_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0x1ca
call fcn.140085cf0
xor edi, edi
mov rcx, rbx
mov rdx, r14
xor r8d, r8d
call fcn.14008a920
mov al, byte [rsi + 0x17]
test al, al
jns 0x14011533c
cmp qword [rsi + 8], 0x103
ja 0x14011535a
test al, al
jns 0x140115343
mov rsi, qword [rsi]
mov rcx, rsi
xor edx, edx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne dil
lea rcx, [rsp + 0x40]
call fcn.14008ab90
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, edi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140115ed0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x1401b04f8], 0
je 0x140115f16
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400bd5c0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov rdi, qword [0x1401b04d0]
test rdi, rdi
je 0x140115fb7
test byte [0x1401a4078], 1
je 0x140115ef9
cmp byte [rdi + 0x17], 0
jns 0x140115f38
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401b04f8], rax
inc rax
cmp rax, 1
ja 0x140115ef9
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bf710
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x140116080
xor esi, esi
jmp 0x140115ef9
mov ecx, 0x18
call fcn.1400bc06c
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400bf710
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x14016f5f0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400f09d0
movzx eax, byte [rdi + 0x17]
test al, al
js 0x14011601d
and eax, 0x7f
mov rcx, rdi
jmp 0x140116024
mov rax, qword [rdi + 8]
mov rcx, qword [rdi]
test rax, rax
je 0x14011605f
lea r8, [rax + rax]
test r8, r8
je 0x14011605f
lea rdx, [r8 - 2]
cmp word [rcx + r8 - 2], 0x5c
mov r8, rdx
jne 0x14011602d
cmp rdx, 0xfffffffffffffffe
je 0x14011605f
sar rdx, 1
cmp rax, rdx
jbe 0x140116147
inc rdx
mov rcx, rdi
call fcn.140115be0
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140031f90
mov qword [0x1401b04d0], rdi
jmp 0x140115f26
mov rdi, qword [0x1401b04d0]
lea rbx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400dca48
mov rcx, rdi
mov rdx, rbx
mov r8, rax
call fcn.140031e90
mov rcx, qword [0x1401b04d0]
call fcn.140112890
cmp word [rax], 0x5c
je 0x1401160cd
mov rcx, qword [0x1401b04d0]
lea rdx, [0x1401733fc]
mov r8d, 1
call fcn.140031f90
mov rcx, qword [0x1401b04d0]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140031f90
mov rcx, qword [0x1401b04d0]
cmp byte [rcx + 0x17], 0
jns 0x1401160f6
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x1401b04f8], rax
inc rax
cmp rax, 1
ja 0x140115ef9
mov qword [0x1401b04f8], 0
jmp 0x140115fb0
mov rcx, rdi
call fcn.1400f0900
int3
Function at 0x1401258d0
Capabilities:
Encode data using xor

Disassembly:
movsxd r9, dword [rdx + 8]
mov r8, qword [rdx]
movsxd rdx, dword [rcx + 8]
mov rcx, qword [rcx]
jmp fcn.140094010

Function at 0x140126dd0
Capabilities:
Encode data using xor

Disassembly:
push rsi
movsxd r9, dword [rcx + 8]
movsxd rax, dword [rdx + 8]
cmp r9d, eax
jge 0x140126df5
mov r10, qword [rdx]
xor r8d, r8d
mov r11, r9
or r8, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140126de7
jmp 0x140126df8
xor r8d, r8d
cmp eax, r9d
jge 0x140126e0f
mov r10, qword [rcx]
mov r11, rax
or r8, qword [r10 + r11*8]
inc r11
cmp r9, r11
jne 0x140126e03
cmp r9d, eax
cmovl eax, r9d
test eax, eax
jle 0x140126e38
mov r9, qword [rcx]
mov r10, qword [rdx]
mov eax, eax
xor r11d, r11d
mov rsi, qword [r10 + r11*8]
xor rsi, qword [r9 + r11*8]
or r8, rsi
inc r11
cmp rax, r11
jne 0x140126e25
mov eax, dword [rdx + 0x10]
xor eax, dword [rcx + 0x10]
movsxd rcx, eax
xor eax, eax
or rcx, r8
sete al
pop rsi
ret

Function at 0x14012c350
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov edx, dword [rcx + 8]
test edx, edx
jle 0x14012c4c7
mov rcx, qword [rcx]
shl rdx, 6
xor r8d, r8d
xor eax, eax
xor r9d, r9d
mov rsi, qword [rcx]
mov r11, rsi
shl r11, 0x20
mov r10, r11
not r10
dec r11
and r11, r10
sar r11, 0x3f
mov r10d, r11d
mov rdi, rsi
shr rdi, 0x20
and edi, r11d
not r11
and r11, rsi
or r11, rdi
mov rbx, r11
shl rbx, 0x30
mov rdi, rbx
dec rbx
not rdi
and rbx, rdi
sar rbx, 0x3f
mov r14, r11
mov edi, ebx
shr r14, 0x10
xor r14, r11
and r14, rbx
xor r14, r11
mov r12, r14
shl r12, 0x38
lea r11, [rsi - 1]
mov rbx, r12
not rbx
dec r12
and r12, rbx
sar r12, 0x3f
mov r15, r14
shr r15, 8
mov ebx, r12d
xor r15, r14
and r15, r12
and r10d, 0x20
xor r15, r14
mov r12, r15
shl r12, 0x3c
mov r13, rsi
mov rsi, r12
not rsi
dec r12
and r12, rsi
sar r12, 0x3f
mov r14, r15
shr r14, 4
mov esi, r12d
xor r14, r15
and r14, r12
not r13
xor r14, r15
mov r12, r14
shl r12, 0x3e
and r11, r13
mov r15, r12
not r15
dec r12
and edi, 0x10
and r12, r15
sar r12, 0x3f
mov ebp, r12d
mov r15d, r14d
shr r15d, 2
xor r15d, r14d
or edi, r10d
and r15d, r12d
sar r11, 0x3f
and ebx, 8
or ebx, edi
mov r10, r11
not r10
and esi, 4
or esi, ebx
or r10, r9
xor r15d, r14d
shl r15, 0x3f
and ebp, 2
mov rdi, r15
not rdi
dec r15
or ebp, esi
and r15, rdi
shr r15, 0x3f
or r15d, ebp
or r15d, r8d
or r9d, r11d
not r9d
and r9d, r15d
or eax, r9d
add r8, 0x40
add rcx, 8
mov r9, r10
cmp rdx, r8
jne 0x14012c376
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14012c4ba
Function at 0x14012ed10
Capabilities:
Hash data using sha512

Disassembly:
push rsi
push rdi
sub rsp, 0x108
mov rsi, r8
mov r8, rdx
mov rdx, rcx
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x100], rax
movaps xmm0, xmmword [0x14016f5f0]
lea rdi, [rsp + 0x28]
movups xmmword [rdi + 0xc0], xmm0
movups xmmword [rdi + 0xb0], xmm0
movups xmmword [rdi + 0xa0], xmm0
movups xmmword [rdi + 0x90], xmm0
movups xmmword [rdi + 0x80], xmm0
movups xmmword [rdi + 0x70], xmm0
movups xmmword [rdi + 0x60], xmm0
movups xmmword [rdi + 0x50], xmm0
movabs rax, 0x6a09e667f3bcc908
mov qword [rdi], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rdi + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rdi + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rdi + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rdi + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rdi + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rdi + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rdi + 0x38], rax
movabs rax, 0x4000000000
mov qword [rdi + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rdi + 0x40], xmm0
mov rcx, rdi
call fcn.14004f230
mov edx, dword [rdi + 0xd4]
mov rcx, rsi
mov r8, rdi
call fcn.140051d60
mov edx, 0xd8
mov rcx, rdi
call fcn.1400966f0
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.1400bd5c0
mov rax, rsi
add rsp, 0x108
pop rdi
pop rsi
ret
Function at 0x14012fbf0
Capabilities:
Hash data using sha512

Disassembly:
movabs rax, 0x6a09e667f3bcc908
mov qword [rcx], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 8], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x10], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x18], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x20], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x28], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x30], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x38], rax
movabs rax, 0x4000000000
mov qword [rcx + 0xd0], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x40], xmm0
mov eax, 1
ret
Function at 0x140134380
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov edx, dword [rsp + 0xe0]
mov rax, qword [0x140196028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movsxd r8, dword [rcx + 0x108]
lea ecx, [rdx + 4]
mov r11, rcx
shr r11, 6
xor eax, eax
mov r10d, 0
cmp r11, r8
jae 0x1401343df
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 5
and r10d, 0x20
lea ecx, [rdx + 3]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x1401343fb
mov rax, qword [r9 + r11*8]
shr rax, cl
shl eax, 4
and eax, 0x10
or eax, r10d
lea ecx, [rdx + 2]
mov r14, rcx
shr r14, 6
xor r10d, r10d
mov r11d, 0
cmp r14, r8
jae 0x140134425
mov r11, qword [r9 + r14*8]
shr r11, cl
shl r11d, 3
and r11d, 8
or eax, r11d
lea ecx, [rdx + 1]
mov r11, rcx
shr r11, 6
cmp r11, r8
jae 0x140134446
mov r10, qword [r9 + r11*8]
shr r10, cl
shl r10d, 2
and r10d, 4
or eax, r10d
mov ecx, edx
mov r11, rcx
shr r11, 6
xor r10d, r10d
cmp r11, r8
jae 0x140134468
mov r10, qword [r9 + r11*8]
shr r10, cl
add r10d, r10d
and r10d, 2
or eax, r10d
test edx, edx
je 0x14013448e
dec edx
mov r10, rdx
shr r10, 6
xor ecx, ecx
cmp r10, r8
jae 0x14013448c
mov r8, qword [r9 + r10*8]
xor ecx, ecx
bt r8, rdx
setb cl
or eax, ecx
mov r14d, eax
shr r14, 5
lea ecx, [r14 - 1]
neg r14
and ecx, eax
xor eax, 0x3f
mov r15d, r14d
and r15d, eax
or r15d, ecx
mov rax, r15
shr rax, 1
and r15d, 1
add r15, rax
xor r12d, r12d
mov r8d, 0xd8
mov rcx, rsi
xor edx, edx
call fcn.1400bf710
mov r8, r12
xor r8, r15
dec r8
sar r8, 0x3f
mov qword [rsp + 0x20], rsi
mov rcx, rdi
mov rdx, rsi
mov r9, rbx
call fcn.1401311d0
inc r12
add rbx, 0xd8
cmp r12, 0x11
jne 0x1401344ca
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
movaps xmm0, xmmword [0x14016f5f0]
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
add rsi, 0x48
mov eax, dword [rdi + 0x148]
test eax, eax
jle 0x14013459b
xor ecx, ecx
xor edx, edx
or rdx, qword [rsi + rcx*8]
inc rcx
cmp rax, rcx
jne 0x140134536
test rdx, rdx
sete dl
test rax, rax
je 0x1401345ec
movsxd rcx, eax
mov rax, qword [rdi + 0x140]
xor r8d, r8d
lea r9, [rsp + 0x30]
sub r10, r10
jmp 0x140134570
mov r10, qword [rax + r8*8]
sbb r10, qword [rsi + r8*8]
mov qword [r9 + r8*8], r10
lea r8, [r8 + 1]
dec rcx
jne 0x140134570
sbb r10, r10
movsxd rax, dword [rdi + 0x148]
mov ecx, eax
test rax, rax
jle 0x1401345ba
xor r8d, r8d
jmp 0x1401345af
mov dl, 1
jmp 0x140134548
xor r9d, r9d
mov qword [rsp + r8*8 + 0x30], r9
inc r8
cmp rcx, r8
je 0x1401345ba
test dl, dl
jne 0x14013459f
mov r9, qword [rsp + r8*8 + 0x30]
jmp 0x1401345a2
test rcx, rcx
je 0x1401345ec
and r14d, 1
neg r14
mov rcx, r14
not rcx
xor edx, edx
mov r8, qword [rsp + rdx*8 + 0x30]
and r8, r14
mov r9, qword [rsi + rdx*8]
and r9, rcx
or r9, r8
mov qword [rsi + rdx*8], r9
inc rdx
cmp rax, rdx
jne 0x1401345ce
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400bd5c0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret