joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002bd0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x22
lea rdx, str.SystemCurrentControlSetServices_
lea rcx, [rsp + 0x40]
call fcn.140005f00
nop
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x140002c26
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140005820
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0xf
cmova rdx, qword [rsp + 0x40]
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x140002d4b
mov byte [rsp + 0x38], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Type
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002d4b
mov byte [rsp + 0x39], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.ErrorControl
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002d4b
mov byte [rsp + 0x3a], 3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x3a]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.Start
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002d4b
mov eax, dword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x140002d11
mov rbx, qword [rbx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.ImagePath
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x140002d4b
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
sete bl
jmp 0x140002d4d
xor bl, bl
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140002d8d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002d88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002d88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007aac
movzx eax, bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400076f0
mov rbx, qword [rsp + 0x90]
add rsp, 0x70
pop rdi
ret
Function at 0x1400049f0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140004a11
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140004a3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004a40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004a99
test ecx, ecx
jle 0x140004a79
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140004a99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004a99
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140004ac0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140004ae2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140004af1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004b14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004b16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004b52
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140004bee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140004b8d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140004bce
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140004bee
cmp rbx, rax
ja 0x140004ba0
test rbx, rbx
je 0x140004bee
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140005050
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000507d
xor eax, eax
jmp 0x1400051e9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400050b7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400050b7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400051e9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400051dc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400050fa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140005125
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400051e1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140005194
sub eax, 1
je 0x140005194
cmp eax, 2
jne 0x1400051dc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400051e1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400051c2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400051dc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400051e1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400076f0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005530
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005603
cmp byte [rcx + 0x71], 0
je 0x140005603
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400055ff
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 0x1400055c4
sub eax, 1
je 0x1400055c8
cmp eax, 2
jne 0x1400055ff
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400076f0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400055f6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400055ff
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400055ac
xor al, al
jmp 0x1400055ac
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400076f0
add rsp, 0x60
pop rbx
ret

Function at 0x140006b88
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 0x140006bc2
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140006bc7
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 0x140006c10
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140009580]
cmp byte [rcx + rax], 0
je 0x140006c10
dec r8
sub rdx, 1
jne 0x140006bf6
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400072a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.140006ca0
mov ebx, eax
test eax, eax
jne 0x1400072d8
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14000733b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140007332
test al, 0x10
je 0x140007332
bt eax, 0xa
jae 0x14000732b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14000734c
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140007327
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140007327
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140007332
and dword [rsp + 0x3c], 0
jmp 0x140007337
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400082ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400082f6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400082f6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400082f6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400082f6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400082f6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400082f8
xor al, al
add rsp, 0x28
ret

Function at 0x140002920
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000296a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000296a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000296a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000296a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000296a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000296c
xor al, al
add rsp, 0x28
ret
Function at 0x1400099c4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140052b88]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rcx
lea rcx, [rbp - 0x28]
call fcn.14001f3a0
nop
lea rcx, [rbp - 0x28]
call fcn.14001f104
mov ecx, 1
call fcn.1400304a0
cmp rbx, rax
jne 0x140009a10
cmp byte [0x140053655], 0
jne 0x140009a30
mov ecx, 2
call fcn.1400304a0
cmp rbx, rax
jne 0x140009b3d
cmp byte [0x140053656], 0
je 0x140009b3d
mov ecx, 1
call fcn.1400304a0
sub rbx, rax
neg rbx
sbb ecx, ecx
add ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov ecx, dword [0x140053650]
cmp ecx, 3
jne 0x140009a86
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r8d, dword [rbp - 0x18]
add r8d, r8d
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140009b7e
and qword [rbp - 0x48], 0
movdqa xmm0, xmmword [0x14003fa10]
movdqu xmmword [rbp - 0x38], xmm0
mov byte [rbp - 0x48], 0
lea rdx, [rbp - 0x48]
cmp ecx, 4
lea rcx, [rbp - 0x28]
jne 0x140009ab0
call fcn.140022158
jmp 0x140009ab5
call fcn.140022004
test dword [0x140053650], 0xfffffffd
jne 0x140009ade
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x48]
cmovae rcx, qword [rbp - 0x48]
call qword [sym.imp.USER32.dll_CharToOemA]
lea rdx, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae rdx, qword [rbp - 0x48]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x50]
mov r8d, dword [rbp - 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140009b7e
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009ba4
call fcn.140028644
jmp 0x140009b7e
mov ecx, 2
call fcn.1400304a0
xor ecx, ecx
cmp rbx, rax
setne cl
add ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x4c]
mov r8d, dword [rbp - 0x18]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
nop
lea rcx, [rbp - 0x28]
call fcn.1400028f8
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140028760
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rbp
ret
call fcn.14002d924
nop
int3

Function at 0x140009f84
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140009faa
movzx r9d, byte [rdx]
inc rdx
movzx eax, cl
xor r9, rax
shr ecx, 8
lea rax, [0x140053660]
xor ecx, dword [rax + r9*4]
sub r8, 1
jne 0x140009f89
mov eax, ecx
ret
Function at 0x14000a218
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x80
mov rax, qword [0x140052b88]
xor rax, rsp
mov qword [rsp + 0x78], rax
cmp dword [rcx], 2
lea rbx, [rcx + 4]
mov rsi, rdx
mov rdi, rcx
mov r14d, 0x20
jne 0x14000a2ab
and qword [r11 - 0x58], 0
lea r9d, [r14 - 0x1c]
and qword [r11 - 0x60], 0
lea r8, [r11 - 0x48]
mov eax, dword [rbx]
mov edx, r14d
and qword [r11 - 0x68], 0
mov rcx, rsi
and qword [r11 - 0x70], 0
mov dword [rsp + 0x50], eax
lea rax, [r11 - 0x40]
mov qword [r11 - 0x78], rax
call fcn.14000abe4
xor edx, edx
lea r9, [rsp + 0x58]
xor r8d, r8d
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, r14d
jb 0x14000a28d
mov dword [rbx], edx
cmp dword [rdi], 3
jne 0x14000a2f3
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x58]
and qword [rsp + 0x38], 0
mov r9, r14
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000abe4
mov r8, r14
lea rdx, [rsp + 0x58]
mov rcx, rbx
call fcn.140029880
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140028760
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop rdi
pop rsi
ret
Function at 0x14000af00
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140052b88]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, qword [rbp + 0x190]
mov rax, r8
mov rsi, qword [rbp + 0x198]
mov r8d, 0x40
mov r14, qword [rbp + 0x1a0]
cmp r9, r8
mov r12, rdx
mov r15, rcx
cmovb r8, r9
lea rcx, [rbp + 0xb0]
mov rdx, rax
mov rbx, r9
call fcn.140029880
cmp rbx, 0x44
jae 0x14000b155
lea rax, [rbx + 1]
mov byte [rbp + rbx + 0xb0], 0
cmp rax, 0x44
jae 0x14000b155
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbx + 2]
cmp rax, 0x44
jae 0x14000b155
and qword [rsp + 0x40], 0
lea r9, [rbx + 4]
and qword [rsp + 0x38], 0
lea r8, [rbp + 0xb0]
and qword [rsp + 0x30], 0
mov rdx, r12
and qword [rsp + 0x28], 0
mov rcx, r15
mov byte [rbp + rax + 0xb0], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x20], rax
mov byte [rbp + rbx + 0xb3], 1
call fcn.14000abe4
mov ebx, 0x20
lea rdx, [rbp + 0x68]
mov r8d, ebx
lea rcx, [rbp + 0x88]
call fcn.140029880
mov eax, dword [rbp + 0x1a8]
dec eax
mov qword [rbp + 0x50], rdi
mov qword [rbp + 0x58], rsi
lea rdi, [rbp + 0x40]
mov qword [rbp + 0x60], r14
lea rsi, [rbp + 0x50]
mov dword [rbp + 0x40], eax
lea r14d, [rbx - 0x1d]
mov dword [rbp + 0x44], 0x10
mov dword [rbp + 0x48], 0x10
mov byte [rsp + 0x51], 0
mov byte [rsp + 0x50], 0
cmp dword [rdi], 0
jbe 0x14000b0d6
mov ebx, dword [rdi]
lea rax, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x40], rax
lea r8, [rbp + 0x68]
lea rax, [rsp + 0x60]
mov rdx, r12
mov qword [rsp + 0x38], rax
mov rcx, r15
lea rax, [rsp + 0x51]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x100]
mov qword [rsp + 0x20], rax
call fcn.14000abe4
mov r8d, 0x20
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0x68]
call fcn.140029880
xor eax, eax
lea ecx, [rax + 2]
movdqu xmm0, xmmword [rbp + rax + 0x88]
movdqu xmm1, xmmword [rbp + rax + 0x68]
lea rax, [rax + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rbp + rax + 0x78], xmm1
sub rcx, 1
jne 0x14000b0a6
sub rbx, 1
jne 0x14000b043
lea ebx, [rcx + 0x20]
mov rcx, qword [rsi]
lea rdx, [rbp + 0x88]
mov r8, rbx
call fcn.140029880
add rdi, 4
add rsi, 8
sub r14, 1
jne 0x14000b038
lea edx, [r14 + 0x44]
lea rcx, [rbp + 0xb0]
call fcn.14001d768
mov rdx, rbx
lea rcx, [rbp + 0x88]
call fcn.14001d768
mov rdx, rbx
lea rcx, [rbp + 0x68]
call fcn.14001d768
mov rdx, rbx
lea rcx, [rbp + 0x100]
call fcn.14001d768
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140028760
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.140028994
int3
Function at 0x140013480
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140052b88]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rsi, r8
mov r15, rdx
mov rdi, rcx
test r8, r8
jne 0x1400134b3
mov al, 1
jmp 0x140013649
lea r14, [rcx + 8]
cmp dword [rcx + 0x14], 1
jne 0x1400134cb
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [r14], rax
mov r13d, 0x4000
xor bpl, bpl
and dword [rsp + 0x30], 0
cmp dword [rdi + 0x14], 0
je 0x140013526
xor ebx, ebx
test rsi, rsi
je 0x14001354f
mov rcx, rsi
sub rcx, rbx
mov eax, esi
sub eax, ebx
mov r8d, r13d
cmp rcx, r13
cmovb r8d, eax
lea rdx, [r15 + rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test eax, eax
je 0x140013546
add rbx, r13
cmp rbx, rsi
jb 0x1400134e6
jmp 0x140013546
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, esi
mov rdx, r15
mov rcx, qword [r14]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bpl
test bpl, bpl
jne 0x140013642
cmp byte [rdi + 0x22], 0
je 0x140013642
cmp dword [rdi + 0x14], 0
jne 0x140013642
xor r8d, r8d
lea rdx, [rdi + 0x40]
lea rcx, [0x140057700]
call fcn.14000b898
test al, al
je 0x1400135be
mov ecx, dword [rsp + 0x30]
cmp rcx, rsi
jae 0x1400134d1
test ecx, ecx
je 0x1400134d1
mov rbx, qword [rdi]
mov rcx, rdi
mov rax, qword [rbx + 0x28]
call qword [0x14003f440]
mov ecx, dword [rsp + 0x30]
sub rax, rcx
xor r8d, r8d
mov rdx, rax
mov rcx, rdi
mov rax, qword [rbx + 0x20]
call qword [0x14003f440]
jmp 0x1400134d1
and qword [rsp + 0x38], 0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rcx, [0x14003fe28]
call fcn.14002da58
mov r8, rax
lea rdx, [0x14003fe28]
lea rcx, [rsp + 0x38]
call fcn.140002ac0
nop
lea r8, [rdi + 0x40]
lea rdx, [rsp + 0x38]
lea rcx, [0x140057700]
call fcn.14000c118
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140013642
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001363d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013665
call fcn.140028644
mov byte [rdi + 0x10], 1
mov al, bpl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140028760
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14002d924
int3
Function at 0x1400182b0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140018368
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
and qword [rsp + 0x30], 0
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.140008c80
nop
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
sub rcx, rdx
sar rcx, 1
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
mov rbx, qword [rsp + 0x20]
mov rcx, rbx
call fcn.14002da58
mov r8, rax
mov rdx, rbx
mov rcx, rsi
call fcn.140002984
test edi, edi
setne bl
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140018366
mov rdx, qword [rsp + 0x30]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140018361
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140018378
call fcn.140028644
mov al, bl
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
call fcn.14002d924
int3