joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003770
Capabilities:
Create directory
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 4
jb 0x140003940
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400037c2
mov r9, qword [rbx]
mov qword [rsp + 0x30], 4
lea rax, str..zip
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x1f]
call fcn.1400055a0
nop
lea rdx, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0x10
cmovae rdx, qword [rbp + 0x1f]
cmp qword [rbx + 0x18], 0x10
jb 0x1400037fe
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140003814
lea rdx, str.Failed_to_rename_File
jmp 0x140003841
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140003821
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x1400038a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400038a4
lea rdx, str.Failed_to_Create_path
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov r8d, 0x15
lea rcx, [rbp - 9]
call fcn.140001a90
lea rcx, [rbp - 9]
call fcn.1400012d0
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x1400038a0
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000389b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003915
call fcn.14000647c
xor al, al
jmp 0x140003921
lea rax, [rbp - 9]
xorps xmm0, xmm0
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], rsi
mov r8d, 0x25
lea rdx, str.Renamed_Fluster_Binary_for_extraction
lea rcx, [rbp - 9]
call fcn.140001a90
lea rcx, [rbp - 9]
call fcn.1400011d0
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.140002eb0
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0x10
jb 0x140003921
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000391c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000391c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000647c
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140006300
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011b0
int3
Function at 0x140003ce0
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 0x140003d08
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 0x140003d2e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003d30
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003d89
test ecx, ecx
jle 0x140003d69
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 0x140003d89
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003d89
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

Function at 0x140003db0
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 0x140003dd2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003de8
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 0x140003e04
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003e06
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003e42
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 0x140003ede
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003e7d
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 0x140003ebe
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 0x140003ede
cmp rbx, rax
ja 0x140003e90
test rbx, rbx
je 0x140003ede
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
Function at 0x140004300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000432d
xor eax, eax
jmp 0x140004499
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004367
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004367
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 0x140004499
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000448c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400043aa
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 0x1400043d5
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 0x140004491
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 0x140004444
sub eax, 1
je 0x140004444
cmp eax, 2
jne 0x14000448c
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 0x140004491
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004472
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 0x14000448c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004491
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006300
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400046b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004783
cmp byte [rcx + 0x71], 0
je 0x140004783
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000477f
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 0x140004744
sub eax, 1
je 0x140004748
cmp eax, 2
jne 0x14000477f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006300
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004776
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 0x14000477f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000472c
xor al, al
jmp 0x14000472c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006300
add rsp, 0x60
pop rbx
ret
Function at 0x140005870
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, r8
mov rbx, rdx
mov r14, rcx
xor dil, dil
mov rcx, rdx
cmp qword [rdx + 0x18], 0x10
jb 0x1400058ab
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400058bf
mov edi, eax
shr edi, 4
and dil, 1
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x140005a7e
cmp qword [rbx + 0x18], 0x10
jb 0x1400058e4
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1400087a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x40]
call fcn.1400055a0
nop
mov r9, rsi
cmp qword [rsi + 0x18], 0x10
jb 0x140005919
mov r9, qword [rsi]
mov rsi, qword [rsi + 0x10]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x140005966
lea rax, [rcx + rsi]
mov qword [rsp + 0x50], rax
lea rbx, [rsp + 0x40]
cmp rdx, 0x10
cmovae rbx, qword [rsp + 0x40]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
lea rax, [rsp + 0x40]
jmp 0x140005978
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140005000
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x68], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x78], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x1400059ed
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400059e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400059e8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000647c
lea rcx, [rsp + 0x68]
cmp qword [rsp + 0x80], 0x10
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov byte [r14], dil
cmp eax, 0xffffffff
setne al
mov byte [r14 + 1], al
mov rdx, qword [rsp + 0x80]
cmp rdx, 0x10
jb 0x140005a57
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000647c
mov rax, r14
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006300
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop r14
pop rdi
pop rsi
ret
call fcn.1400011b0
int3
Function at 0x140006dbc
Capabilities:
Parse pe header

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

Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
xor rdx, rdx
push rcx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
mov rdx, qword [rdx + 0x20]
push rsi
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
push r9
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
mov ecx, dword [rax + 0x18]
jrcxz 0x1400040ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140004088
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rdi, rdx
mov rsi, rcx
and dword [rax + 0x10], 0
mov rdx, qword [rdx + 8]
sub rdx, qword [rdi]
lea rcx, [rax + 0x10]
mov qword [rax - 0x28], rcx
xor r9d, r9d
lea r8d, [r9 + 1]
mov rcx, qword [rdi]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
nop dword [rax + rax]
test eax, eax
je 0x140004185
mov ecx, dword [rsp + 0x58]
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14003b000
mov rbx, rax
mov qword [rsp + 0x60], rax
mov rdx, qword [rdi + 8]
sub rdx, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x20], rcx
mov r9, rax
mov r8d, 1
mov rcx, qword [rdi]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
nop dword [rax + rax]
test eax, eax
je 0x140004176
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
lea rdx, [0x140044428]
mov rax, qword [rax + 0xc0]
call qword [0x140043810]
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
mov rdx, rbx
mov rax, qword [rax + 0x40]
call qword [0x140043810]
mov rcx, qword [rsi + 0x10]
mov rax, qword [rcx]
lea rdx, [0x140044428]
mov rax, qword [rax + 0xc0]
call qword [0x140043810]
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000742c
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x60]
jmp 0x1400075e5
cmp ecx, 0x7c
je 0x1400075f1
cmp ecx, 0x29
jne 0x140007477
cmp dword [rbx + 0x1c], 0
jne 0x1400075f1
test dword [rbx + 0x64], 0x10000000
jne 0x1400075b4
mov ecx, 5
call fcn.14003bddc
jmp 0x1400075d8
cmp ecx, 0x2e
jne 0x140007497
lea rcx, [rbx + 0x28]
mov edx, 5
call fcn.1400078bc
mov rcx, rbx
call fcn.140006fbc
jmp 0x1400075d8
cmp ecx, 0x5c
jne 0x1400074f8
mov rcx, rbx
call fcn.140006fbc
test byte [rbx + 0x64], 0x80
je 0x1400074eb
cmp word [rbx + 0x5e], 0x62
jne 0x1400074cc
mov edx, 4
lea rcx, [rbx + 0x28]
call fcn.1400078bc
mov rcx, rbx
call fcn.140006fbc
jmp 0x1400075e0
cmp word [rbx + 0x5e], 0x42
jne 0x1400074eb
lea rcx, [rbx + 0x28]
mov edx, 4
call fcn.1400078bc
mov rax, qword [rbx + 0x30]
xor dword [rax + 0xc], 1
jmp 0x1400074bf
mov rcx, rbx
call fcn.1400052a8
jmp 0x1400075d8
cmp ecx, 0x5b
jne 0x140007526
mov rcx, rbx
call fcn.140006fbc
mov rcx, rbx
call fcn.1400067d8
cmp dword [rbx + 0x60], 0x5d
je 0x14000748a
mov ecx, 4
call fcn.14003bddc
jmp 0x14000748a
cmp ecx, 0x28
jne 0x140007558
mov rcx, rbx
call fcn.140006fbc
mov rcx, rbx
call fcn.140006a9c
cmp dword [rbx + 0x60], 0x29
mov dil, al
je 0x14000754e
mov ecx, 5
call fcn.14003bddc
mov rcx, rbx
call fcn.140006fbc
jmp 0x1400075d3
cmp ecx, 0x5e
jne 0x140007565
lea edx, [rcx - 0x5c]
jmp 0x1400074b6
cmp ecx, 0x24
jne 0x140007572
lea edx, [rcx - 0x21]
jmp 0x1400074b6
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x1400075c6
cmp ecx, 0x3f
je 0x1400075c6
cmp ecx, 0x7b
je 0x1400075c6
cmp ecx, 0x7d
jne 0x14000759c
test dword [rbx + 0x64], 0x10000000
jne 0x1400075b4
mov ecx, 6
jmp 0x14000746d
cmp ecx, 0x5d
jne 0x1400075b4
test dword [rbx + 0x64], 0x10000000
jne 0x1400075b4
mov ecx, 4
jmp 0x14000746d
movzx edx, word [rbx + 0x5e]
lea rcx, [rbx + 0x28]
call fcn.140007084
jmp 0x14000748a
mov ecx, 0xa
call fcn.14003bddc
mov dil, 1
test dil, dil
je 0x1400075e0
mov rcx, rbx
call fcn.14000732c
mov ecx, dword [rbx + 0x60]
mov al, 1
cmp ecx, 0xffff
jne 0x140007443
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140015164
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp - 0x29], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14005e898]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rcx
xor r14d, r14d
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
lea r8d, [r14 + 0x15]
lea rdx, str.markcontainerschanged
lea rcx, [rbp - 0x19]
call fcn.140002e38
nop
lea rdx, [rbp - 0x19]
mov rcx, rsi
call fcn.140003730
mov dil, al
cmp qword [rbp - 1], 8
jb 0x1400151e6
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov ebx, r14d
mov eax, 2
test dil, dil
cmovne ebx, eax
mov qword [rbp - 1], 7
mov qword [rbp - 9], r14
mov word [rbp - 0x19], r14w
lea r8d, [rax + 2]
lea rdx, str.stop
lea rcx, [rbp - 0x19]
call fcn.140002e38
nop
lea rdx, [rbp - 0x19]
mov rcx, rsi
call fcn.140003730
mov dil, al
cmp qword [rbp - 1], 8
jb 0x140015240
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
test ebx, ebx
jne 0x14001524f
test dil, dil
je 0x14001533c
jmp 0x140015258
test dil, dil
jne 0x14001531d
mov rcx, rsi
call fcn.140005054
mov dword [rbp - 0x31], ebx
mov qword [rbp - 0x39], r14
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesXblGameSaveParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x1400152ea
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x31]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 4]
xor r8d, r8d
lea rdx, str.TestFlags
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegFlushKey]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop dword [rax + rax]
mov ecx, ebx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400360b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov edx, 0x6f
lea rcx, [rbp - 0x19]
call fcn.140002d14
lea rdx, [0x14005b730]
lea rcx, [rbp - 0x19]
call sub.msvcrt.dll__CxxThrowException
int3
mov edx, 0x6f
lea rcx, [rbp - 0x19]
call fcn.140002d14
lea rdx, [0x14005b730]
lea rcx, [rbp - 0x19]
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x140019fdc
Capabilities:
Decode data using base64 via winapi

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14005e898]
xor rax, rsp
mov qword [rsp + 0x90], rax
and qword [rsp + 0x30], 0
mov r9, r8
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rdx
xor edx, edx
lea r8d, [rdx + 7]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
nop dword [rax + rax]
test eax, eax
je 0x14001a038
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400360b0
add rsp, 0xa8
ret
mov edx, 0x6e
lea rcx, [rsp + 0x40]
call fcn.140002d14
lea rdx, [0x14005b730]
lea rcx, [rsp + 0x40]
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x14001b054
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14005e898]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea r8, [rsp + 0x20]
call fcn.14001b8c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
setne al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400360b0
add rsp, 0x248
ret

Function at 0x14001b0b0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub rsp, 0x248
mov rax, qword [0x14005e898]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea r8, [rsp + 0x20]
call fcn.14001b8c0
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
nop dword [rax + rax]
cmp eax, 0xffffffff
je 0x14001b12c
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001b12c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
mov edx, 0x80000000
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea eax, [rcx + rdx]
test edx, eax
jne 0x14001b12c
cmp ecx, 0x80070002
jne 0x14001b145
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400360b0
add rsp, 0x248
ret
lea rdx, str.File::DeleteFile
call fcn.140010688
int3