joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400454f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rsp + 0x38], rdx
cmp qword [rdx + 0x10], 0
jne 0x140045590
mov rcx, qword [rdx + 0x18]
cmp rcx, 1
jb 0x140045545
mov rax, rdx
cmp rcx, 0xf
jbe 0x140045536
mov rax, qword [rdx]
mov qword [rdx + 0x10], 1
mov word [rax], 0x20
jmp 0x140045590
mov rax, rcx
shr rax, 1
add rcx, rax
mov edi, reloc.OLEAUT32.dll_SafeArrayDestroy
cmp rcx, rdi
cmova rdi, rcx
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x14004556e
call fcn.140020330
jmp 0x14004557c
test rcx, rcx
je 0x14004557a
call fcn.140087a74
jmp 0x14004557c
xor eax, eax
mov qword [rbx + 0x10], 1
mov qword [rbx + 0x18], rdi
mov word [rax], 0x20
mov qword [rbx], rax
and dword [rsp + 0x30], 0
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x34], eax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400455c9
mov rdx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, dword [rbx + 0x10]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x140045619
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140045614
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140045646
mov rcx, r8
call fcn.140087a40
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140087a20
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
call fcn.14008e954
int3

Function at 0x14004564c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x38], rdx
cmp qword [rdx + 0x10], 0
jne 0x140045686
lea rdx, [0x1400edb2c]
mov rcx, rbx
call fcn.14001a6a0
and dword [rsp + 0x30], 0
mov eax, dword [rbx + 0x10]
add eax, eax
mov dword [rsp + 0x34], eax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 4
lea rdx, [rsp + 0x34]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [rbx + 0x10]
add r8d, r8d
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x1400456c8
mov rdx, qword [rbx]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, rbx
call fcn.14001b224
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140087a20
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140045770
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0xc8]
sub rsp, 0x1c0
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor esi, esi
mov edi, esi
mov dword [rsp + 0x30], esi
call fcn.140054e84
test al, al
je 0x14004597a
lea rcx, [rbp + 0x70]
call fcn.140054dcc
nop
lea r8d, [rsi + 0xe]
lea rdx, str.debug_log.txt
mov rcx, rax
call fcn.14001a624
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
or edi, 2
lea rcx, [rbp + 0x70]
call fcn.14001b224
lea rdx, [rbp + 0x90]
lea rcx, [0x140127010]
call fcn.14004e5e4
mov rbx, rax
or edi, 1
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rdx, qword [rbp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.14004e844
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x40], rax
mov rax, qword [rsp + 0x40]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x3c], edx
cmp qword [rbp - 0x38], rsi
jne 0x14004588e
lea rcx, [rbp - 0x18]
call fcn.140041af8
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14008628c
nop
jmp 0x1400458f7
lea rcx, [rsp + 0x40]
call fcn.140041f7c
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400458bd
lea r8, [rax + rax]
cmp qword [rbx + 0x18], 7
jbe 0x1400458af
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14004e498
nop
lea rcx, [rbp - 0x18]
call fcn.140041af8
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x18]
call fcn.14008628c
nop
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov bl, 1
jne 0x1400458fa
mov bl, sil
test dil, 1
je 0x14004590c
lea rcx, [rbp + 0x90]
call fcn.14001b224
test bl, bl
je 0x14004593e
lea r8, [rbp + 0x50]
cmp qword [rbp + 0x68], 7
cmova r8, qword [rbp + 0x50]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
nop
mov rdx, qword [rbp + 0x68]
cmp rdx, 7
jbe 0x14004597a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140045975
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400459a2
call fcn.140087a40
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140087a20
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.14008e954
int3
Function at 0x140047a18
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rsi, r9
mov r15, r8
mov rbx, rdx
mov r14, rcx
mov qword [rsp + 0x38], rdx
xor r12d, r12d
mov rdi, qword [rcx]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140047a5c
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140047a8f
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
mov r8d, 0x19
lea rdx, str.Error:_Ini_File_Not_Exist
mov rcx, rbx
call fcn.1400060ec
jmp 0x140047ba4
mov ecx, 0x208
mov r13d, 1
call fcn.140088094
mov rbp, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], 7
mov word [rsp + 0x40], r12w
lea r12, [r14 + 8]
mov r14d, 0x104
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140047ad5
mov rax, qword [rdi]
mov r8, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140047ae2
mov r8, qword [rsi]
mov rdx, r15
cmp qword [r15 + 0x18], 7
jbe 0x140047aef
mov rdx, qword [r15]
mov rcx, r12
cmp qword [r12 + 0x18], 7
jbe 0x140047afe
mov rcx, qword [r12]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9, rbp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [r14 - 1]
cmp eax, ecx
jb 0x140047b7e
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x140047b26
mov rcx, qword [rsi]
mov rax, rbp
sub rcx, rbp
movzx edx, word [rax]
movzx r8d, word [rax + rcx]
sub edx, r8d
jne 0x140047b42
add rax, 2
test r8d, r8d
jne 0x140047b2c
test edx, edx
je 0x140047b7e
mov rcx, rbp
call fcn.140087a40
inc r13d
imul r14d, r13d, 0x104
mov ecx, r14d
mov eax, 2
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140088094
mov rbp, rax
jmp 0x140047ac8
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.14001a6a0
mov rcx, rbp
call fcn.140087a40
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140087a20
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140048468
Capabilities:
Create process on windows

Disassembly:
sub rsp, 0x8f8
mov rax, qword [0x1401120c0]
xor rax, rsp
mov qword [rsp + 0x8e0], rax
call fcn.140061050
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x800
call fcn.1400adca0
mov r8d, 0x400
lea rdx, [rsp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
lea rcx, [rsp + 0x74]
xorps xmm0, xmm0
mov qword [rsp + 0x60], rax
xor edx, edx
movups xmmword [rsp + 0x50], xmm0
lea r8d, [rax + 0x64]
call fcn.1400adca0
lea rax, [rsp + 0x50]
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0xe0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
and qword [rsp + 0x38], 0
xor edx, edx
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140048532
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
call fcn.1400998a4
int3
Function at 0x1400491b0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
xor ebp, ebp
lea rbx, [rcx + 0x80]
mov rcx, rbx
call fcn.140063974
mov ecx, dword [rbx + 0x60]
test ecx, ecx
je 0x1400491fc
cmp dword [0x140126ff0], ecx
je 0x1400491fa
mov dword [0x140126ff0], ecx
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14004921e
test ecx, ecx
setne al
mov byte [rbx + 0xa8], al
test ecx, ecx
je 0x14004921e
cmp qword [rdi + 0xe8], 0x10000
jae 0x14004921e
mov rcx, rbx
call fcn.140063ed4
mov eax, dword [rdi + 0x330]
cmp byte [rdi + 0x128], bpl
je 0x140049357
cmp eax, 1
je 0x140049390
mov dword [rdi + 0x330], 1
call fcn.140046e74
test al, al
je 0x1400493a5
cmp byte [rdi + 0x4b8], bpl
jne 0x1400493ad
mov byte [rdi + 0x4b8], 1
cmp qword [0x140127288], rbp
je 0x14004929b
lea rbx, [rdi + 0x80]
mov rcx, rbx
call fcn.140063e94
mov rcx, rbx
call fcn.140063ed4
mov rcx, qword [0x140127288]
test rcx, rcx
je 0x1400493b3
mov rax, qword [rcx]
call qword [rax + 0x10]
xor edx, edx
mov rcx, rdi
call fcn.14004c804
mov rcx, rdi
call fcn.14004c15c
lea rcx, [rdi + 0x10]
call fcn.140060118
test al, al
je 0x1400493a5
lea rcx, [rdi + 0x10]
call fcn.1400601e0
lea rbx, [rdi + 0x550]
cmp byte [rbx + 8], bpl
jne 0x14004934b
cmp qword [rbx + 0x18], rbp
je 0x14004934b
mov word [rbx + 8], 0x101
mov dword [rbx + 0x20], 0x32
mov ecx, 8
call fcn.140087a74
mov qword [rax], rbx
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], ebp
mov r9, rax
lea r8, [0x140050590]
xor edx, edx
xor ecx, ecx
call fcn.1400992dc
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400493c4
cmp dword [rsp + 0x38], ebp
je 0x1400493b9
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.140086db0
test eax, eax
jne 0x1400493b9
mov dl, 1
mov rcx, rdi
call fcn.14004c804
jmp 0x140049390
test eax, eax
je 0x140049390
mov dword [rdi + 0x330], ebp
mov rcx, rdi
call fcn.14004c15c
mov byte [rdi + 0x558], bpl
mov ebx, 0x1388
jmp 0x140049387
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 0x32
js 0x140049390
cmp byte [rdi + 0x559], bpl
jne 0x140049377
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
xor ecx, ecx
call fcn.1400998a4
int3
call fcn.140048468
int3
call fcn.14008539c
nop
mov ecx, 1
call fcn.1400864a4
nop
mov dword [rsp + 0x38], ebp
mov ecx, 6
call fcn.1400864a4
int3
Function at 0x14004bf58
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
lea rbx, [rcx + 0x578]
mov rdi, rcx
mov r8, rbx
lea rdx, str.Cover
mov ecx, 0x75
call fcn.140053a38
mov rax, qword [rbx + 8]
cmp rax, qword [rbx]
je 0x14004c01f
lea rcx, [0x140126d30]
call fcn.140086500
test eax, eax
jne 0x14004c03f
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004c02a
lea edx, [rax + 3]
mov rcx, rdi
call fcn.140053bbc
mov eax, dword [rbx + 8]
lea r9, [rsp + 0x40]
sub eax, dword [rbx]
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 8]
mov r8d, 4
and dword [rsp + 0x40], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x48], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rax, qword [rbx]
lea r9, [rsp + 0x40]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x48]
and dword [rsp + 0x40], 0
mov r8d, 8
and qword [rsp + 0x20], 0
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140126d30]
call fcn.140086508
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov ecx, 6
mov dword [0x140126d7c], 0x7ffffffe
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3

Function at 0x14004c15c
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
lea rcx, [0x140126d30]
call fcn.140086500
test eax, eax
jne 0x14004c1e1
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004c1cc
lea edx, [rax + 2]
mov rcx, rbx
call fcn.140053bbc
mov eax, dword [rbx + 0xe0]
lea r9, [rsp + 0x48]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
and dword [rsp + 0x48], 0
mov r8d, 4
and qword [rsp + 0x20], 0
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140126d30]
add rsp, 0x30
pop rbx
jmp fcn.140086508
mov ecx, 6
mov dword [0x140126d7c], 0x7ffffffe
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3

Function at 0x14004c69c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
movzx edi, dl
lea rcx, [0x140126d30]
call fcn.140086500
test eax, eax
jne 0x14004c727
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004c712
lea edx, [rax + 7]
mov rcx, rbx
call fcn.140053bbc
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x50]
and dword [rsp + 0x50], 0
lea rdx, [rsp + 0x58]
and qword [rsp + 0x20], 0
mov r8d, 4
mov dword [rsp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140126d30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140086508
mov ecx, 6
mov dword [0x140126d7c], 0x7ffffffe
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3
Function at 0x14004c734
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
mov edi, r8d
lea rcx, [0x140126d30]
mov esi, edx
call fcn.140086500
test eax, eax
jne 0x14004c7f7
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004c7e2
lea edx, [rax + 9]
mov rcx, rbx
call fcn.140053bbc
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
and dword [rsp + 0x68], 0
lea rdx, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov dword [rsp + 0x30], esi
mov esi, 4
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rbx + 8]
lea r9, [rsp + 0x68]
and dword [rsp + 0x68], 0
lea rdx, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov r8d, esi
mov dword [rsp + 0x30], edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [0x140126d30]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.140086508
mov ecx, 6
mov dword [0x140126d7c], 0x7ffffffe
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3

Function at 0x14004c804
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
movzx edi, dl
mov rbx, rcx
lea r14, [0x140126d30]
mov qword [rbp + 0x30], r14
mov rcx, r14
call fcn.140086500
test eax, eax
jne 0x14004c8ff
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004c8ea
lea edx, [rax + 0xa]
mov rcx, rbx
call fcn.140053bbc
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r8d, SafeArrayUnaccessData
lea rdx, str.TRAINER_INITIALIZE
lea rcx, [rbp - 0x20]
call fcn.140013434
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.1400454f0
and dword [rbp + 0x30], 0
and dword [rbp + 0x38], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x38]
mov r8d, 4
lea rdx, [rbp + 0x30]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x30], 1
jne 0x14004c8d5
mov dword [rbp + 0x38], edi
and dword [rbp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, 4
lea rdx, [rbp + 0x38]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
mov rcx, r14
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rdi
pop rbp
jmp fcn.140086508
mov dword [0x140126d7c], 0x7ffffffe
mov ecx, 6
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3
Function at 0x14004d978
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov rbx, rdx
mov rdi, qword [0x140126fb8]
lea r14, [0x140126d30]
mov qword [rbp + 0x38], r14
mov rcx, r14
call fcn.140086500
test eax, eax
jne 0x14004da8e
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004da79
lea edx, [rax + 0xa]
mov rcx, rdi
call fcn.140053bbc
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r8d, SafeArrayUnaccessData
lea rdx, str.SET_GAMEPASS_EXE_PATH
lea rcx, [rbp - 0x20]
call fcn.140013434
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.1400454f0
and dword [rbp + 0x20], 0
and dword [rbp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x30]
mov r8d, 4
lea rdx, [rbp + 0x20]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [rbp + 0x20], 1
jne 0x14004da64
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
and qword [rbp - 0x10], 0
and qword [rbp - 8], 0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 7
jbe 0x14004da4b
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, [rbp - 0x20]
call fcn.14001d4f8
lea rdx, [rbp - 0x20]
mov rcx, rdi
call fcn.14004564c
nop
mov rcx, r14
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rbp
jmp fcn.140086508
mov dword [0x140126d7c], 0x7ffffffe
mov ecx, 6
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3
Function at 0x14004dc9c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
mov rbp, rsp
sub rsp, 0x80
mov rdi, r8
mov rbx, rdx
mov qword [rbp - 0x18], rdx
xor r14d, r14d
mov dword [rbp - 0x48], r14d
mov rsi, qword [0x140126fb8]
lea r12, [0x140126d30]
mov qword [rbp - 0x10], r12
mov rcx, r12
call fcn.140086500
test eax, eax
jne 0x14004ddef
cmp dword [0x140126d7c], 0x7fffffff
je 0x14004ddda
lea edx, [rax + 8]
mov rcx, rsi
call fcn.140053bbc
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r14
mov qword [rbp - 0x20], r14
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14004dd1d
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140013624
lea rdx, [rbp - 0x38]
mov rcx, rsi
call fcn.1400454f0
nop
mov dword [rbp - 0x40], r14d
mov dword [rbp - 0x50], r14d
mov dword [rbp - 0x4c], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x4c]
mov r8d, 4
lea rdx, [rbp - 0x50]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsxd rdi, dword [rbp - 0x50]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], r14b
mov dword [rbp - 0x48], 2
mov rdx, rdi
cmp rdi, 0xf
jbe 0x14004dd94
mov rcx, rbx
call fcn.14001d694
mov qword [rbx + 0x10], r14
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14004dda1
mov rdx, qword [rbx]
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x40]
mov r8d, edi
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
nop
mov rcx, r12
call fcn.140086508
mov rax, rbx
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov dword [0x140126d7c], 0x7ffffffe
mov ecx, 6
call fcn.1400864a4
int3
mov ecx, 5
call fcn.1400864a4
int3

Function at 0x14004ee14
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x14004f904
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14004f936
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x14004f919
mov rax, r8
ret
Function at 0x1400507e4
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 + 0x7c]
jmp 0x140050857
cmp ecx, 0x7c
je 0x14005085c
cmp ecx, 0x29
jne 0x140050867
cmp dword [rbx + 0x1c], 0
jne 0x14005085c
test dword [rbx + 0x80], 0x10000000
je 0x1400509a5
cmp ecx, 0x5d
jne 0x14005082d
test dword [rbx + 0x80], 0x10000000
je 0x14005096e
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14005185c
mov dil, 1
mov rcx, rbx
call fcn.1400507a8
test dil, dil
je 0x140050852
mov rcx, rbx
call fcn.140051714
mov ecx, dword [rbx + 0x7c]
mov al, 1
cmp ecx, 0xffffffff
jne 0x1400507f8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ecx, 0x2e
jne 0x140050884
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14002220c
mov rcx, rbx
call fcn.1400507a8
jmp 0x14005084a
cmp ecx, 0x5c
jne 0x1400508e5
mov rcx, rbx
call fcn.1400507a8
test byte [rbx + 0x80], 0x80
je 0x1400508d8
cmp word [rbx + 0x78], 0x62
jne 0x1400508b9
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14002220c
mov rcx, rbx
call fcn.1400507a8
jmp 0x140050852
cmp word [rbx + 0x78], 0x42
jne 0x1400508d8
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14002220c
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x1400508af
mov rcx, rbx
call fcn.1400514d0
jmp 0x14005084a
cmp ecx, 0x5b
jne 0x140050905
mov rcx, rbx
call fcn.1400507a8
mov rcx, rbx
call fcn.140051368
cmp dword [rbx + 0x7c], 0x5d
jne 0x140050979
jmp 0x14005087a
cmp ecx, 0x28
jne 0x140050928
mov rcx, rbx
call fcn.1400507a8
mov rcx, rbx
call fcn.140051618
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x140050984
jmp 0x14005083d
cmp ecx, 0x5e
jne 0x140050935
lea edx, [rcx - 0x5c]
jmp 0x1400508a6
cmp ecx, 0x24
jne 0x140050942
lea edx, [rcx - 0x21]
jmp 0x1400508a6
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14005099a
cmp ecx, 0x3f
je 0x14005099a
cmp ecx, 0x7b
je 0x14005099a
cmp ecx, 0x7d
jne 0x140050818
test dword [rbx + 0x80], 0x10000000
je 0x14005098f
jmp 0x14005082d
mov edx, 4
call fcn.140020958
int3
mov edx, 4
call fcn.140020958
int3
mov edx, 5
call fcn.140020958
int3
mov edx, 6
call fcn.140020958
int3
mov edx, 0xa
call fcn.140020958
int3
mov edx, 5
call fcn.140020958
int3

Function at 0x140053a38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
mov rbp, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx edx, bx
mov r8, rdi
mov rcx, rax
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x140053abb
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rbx
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test rdi, rdi
je 0x140053abb
test eax, eax
je 0x140053abb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x140053abb
mov r8, rbp
mov edx, ebx
mov rcx, rax
call fcn.140053ad4
mov al, 1
jmp 0x140053abd
xor al, al
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140053bbc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
sub rsp, 0x38
and dword [rax + 0x10], 0
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
mov r8d, 4
mov rcx, qword [rcx + 8]
mov dword [rax + 8], edx
lea rdx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rsp, 0x38
ret