joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002200
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x860
mov rax, qword [0x1400700a0]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x38], rdx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r15
mov qword [rdx + 0x18], 7
mov word [rdx], r15w
mov dword [rsp + 0x30], 1
lea edx, [r15 + 1]
lea r8d, [r15 + 0x10]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
lea r14, [r15 - 1]
test rax, rax
je 0x14000237e
mov rdx, rax
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x14000237e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140002375
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, str.VarFileInfoTranslation
mov rcx, rax
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140002375
cmp dword [rsp + 0x48], 4
jne 0x140002375
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 0x18
movzx r9d, dl
shr edx, 8
movzx r8d, dl
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rdx, str.StringFileInfo_02X_02X_02X_02XFileVersion
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140002375
mov r9, qword [rsp + 0x40]
mov rdx, r14
nop dword [rax]
inc rdx
cmp word [r9 + rdx*2], 0
jne 0x140002330
mov rax, qword [rdi + 0x18]
cmp rdx, rax
ja 0x14000236d
mov rsi, rdi
cmp rax, 8
jb 0x140002350
mov rsi, qword [rdi]
mov qword [rdi + 0x10], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.140031000
mov word [rbx + rsi], r15w
jmp 0x140002375
mov rcx, rdi
call fcn.140005740
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
mov r8, qword [rdi + 0x18]
cmp r8, 8
jb 0x140002392
mov rcx, qword [rdi]
test rdx, rdx
je 0x1400023e5
lea rax, [rdx - 1]
cmp rax, r14
cmovb r14, rax
lea rax, [rcx + r14*2]
cmp word [rax], 0x2e
je 0x1400023bf
nop dword [rax]
cmp rax, rcx
je 0x1400023e5
sub rax, 2
cmp word [rax], 0x2e
jne 0x1400023b0
sub rax, rcx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x1400023e5
cmp rdx, rax
jb 0x14000240f
mov rcx, rdi
cmp r8, 8
jb 0x1400023dc
mov rcx, qword [rdi]
mov qword [rdi + 0x10], rax
mov word [rcx + rax*2], r15w
mov rax, rdi
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14002ef80
mov rbx, qword [rsp + 0x8a0]
add rsp, 0x860
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140004d40
int3
Function at 0x140002620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1400700a0]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r14, r8
mov rbx, rcx
mov edx, 0x66
lea r8d, [rdx - 0x5c]
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400027f6
mov rdx, rax
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140002813
mov rdx, rdi
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp - 0x80]
call fcn.140031740
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.140003a70
nop
mov r8d, edi
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140003c10
lea rcx, [rbp - 0x78]
call fcn.140004710
test rax, rax
jne 0x140002714
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x70]
and eax, 0x17
mov dword [rbp + rcx - 0x70], eax
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
jne 0x1400027a2
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.140003760
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x7c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x28], rax
lea rcx, [rbp + 0x28]
call fcn.14002dc38
nop
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14002ef80
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
test dl, 4
je 0x1400027b0
lea rbx, [0x140060828]
jmp 0x1400027c5
test dl, 2
lea rbx, [0x140060840]
lea rax, [0x140060858]
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x30]
call fcn.140001620
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140001f40
lea rdx, [0x14006ddb8]
lea rcx, [rsp + 0x50]
call fcn.140030e3c
nop
lea rdx, str.find_shim_inside_this_module
lea rcx, [rsp + 0x30]
call fcn.140003ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140011ac0
nop
lea rdx, str.load_shim_resource
lea rcx, [rsp + 0x30]
call fcn.140003ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140011ac0
int3
Function at 0x140002910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400700a0]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r8
mov r14, rdx
mov rbx, rcx
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
xor esi, esi
mov qword [rsp + 0x68], rsi
lea r9, [rsp + 0x58]
lea r8, [0x1400028d0]
mov rdx, r15
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
nop
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
cmp rdi, r13
je 0x140002ab1
nop dword [rax]
mov rbp, qword [rdi]
mov word [rsp + 0x50], si
mov word [rsp + 0x54], si
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1400020a0]
mov r8, rbp
mov rdx, r15
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
movzx r9d, word [rsp + 0x50]
test r9w, r9w
jne 0x1400029c2
mov r9d, esi
mov word [rsp + 0x50], si
mov r8, rbp
mov rdx, r15
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov rsi, rax
test rax, rax
je 0x140002a9c
mov rdx, rax
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r12d, eax
test eax, eax
je 0x140002a9c
mov rdx, rsi
mov rcx, qword [r14 + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140002a9c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
cmp byte [rbx + 0x28], 0
jne 0x140002a48
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140002a2b
mov rcx, qword [rbx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
mov qword [rbx + 0x30], rax
test rax, rax
je 0x140002a42
mov byte [rbx + 0x28], 1
jmp 0x140002a48
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
lea r9, [0x1400020a0]
mov r8, rbp
mov rdx, r15
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
movzx r9d, word [rsp + 0x54]
test r9w, r9w
jne 0x140002a7e
xor r9d, r9d
mov word [rsp + 0x54], r9w
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rsi
mov r8, rbp
mov rdx, r15
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x140002b1b
add rdi, 8
cmp rdi, r13
je 0x140002aac
xor esi, esi
jmp 0x140002980
mov rdi, qword [rsp + 0x58]
test rdi, rdi
je 0x140002aeb
mov rdx, qword [rsp + 0x68]
sub rdx, rdi
and rdx, 0xfffffffffffffff8
mov rax, rdi
cmp rdx, 0x1000
jb 0x140002ae3
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002b15
mov rcx, rdi
call fcn.14002efa0
mov al, 1
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14002ef80
mov rbx, qword [rsp + 0xd8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140037338
nop
lea rdx, [0x140060870]
lea rcx, [rsp + 0x30]
call fcn.140003ea0
nop
lea rcx, [rsp + 0x30]
call fcn.140011ac0
int3
Function at 0x140002fa0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140002fc2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000303c
mov rdi, r14
mov rcx, rbx
call fcn.140004830
test rax, rax
jle 0x140003014
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140031000
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000302c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140003034
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140002fd6
sub r14, rdi
jmp 0x14000311f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140003053
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003055
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003087
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140031000
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000311c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400030c2
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
cmp rbp, 0xfff
jbe 0x1400030fd
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140036b28
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000311c
cmp rbp, rax
ja 0x1400030d0
test rbp, rbp
je 0x14000311c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140036b28
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret

Function at 0x140011cd0
Capabilities:
Get file system object information

Disassembly:
sub rsp, 0x518
mov rax, qword [0x1400700a0]
xor rax, rsp
mov qword [rsp + 0x500], rax
cmp qword [rcx + 0x18], 8
jb 0x140011cf3
mov rcx, qword [rcx]
lea rax, [rsp + 0x2f0]
mov qword [rsp + 0x28], 0
mov rdx, rcx
mov qword [rsp + 0x20], rax
xor ecx, ecx
mov r9d, 0x104
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SearchPathW]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x2b8
call fcn.140031740
mov r9d, 0x2b8
mov dword [rsp + 0x20], 0x2000
lea r8, [rsp + 0x30]
xor edx, edx
lea rcx, [rsp + 0x2f0]
call qword [sym.imp.SHELL32.dll_SHGetFileInfoW]
shr rax, 0x10
test ax, ax
sete al
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.14002ef80
add rsp, 0x518
ret
Function at 0x14002e7f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14002e874
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140056be0]
cmp byte [rcx + rax], 0
je 0x14002e874
dec r8
sub rdx, 1
jne 0x14002e85a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14002fcd0
Capabilities:
Parse pe header

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

Function at 0x14003c468
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003c264

Function at 0x14003f4e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003f4fe
mov al, 1
jmp 0x14003f55e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003f50f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003f55c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140048fe4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003f55c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003f55c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003f55c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003f55e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140042568
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14002f6d0
sub rsp, rax
mov rax, qword [0x1400700a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14003f2cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400425b7
mov rax, rbp
jmp 0x1400426bf
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x74460]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400434b4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x74460]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400426bb
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400426bb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400434b4
test rax, rax
js 0x1400426bb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400426bb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400426ad
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400426ad
cmp byte [rcx], 0xd
jne 0x140042693
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400426a2
cmp byte [rcx + 1], 0xa
jne 0x1400426a2
inc rcx
jmp 0x1400426a2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x70490]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140042675
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400426bf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14002ef80
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140042854
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140074460]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400428ab
cmp word [rdx], r13w
jne 0x1400428ab
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400428b0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400429d5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400429f6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400428e9
mov rdx, r9
mov word [rbx], cx
jmp 0x140042910
cmp r9, r8
jae 0x140042920
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400428ca
jmp 0x1400429d5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400429ca
cmp dword [rsp + 0x80], esi
je 0x1400429ca
lea r8, [0x140074460]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400429a2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140042972
mov word [rbx], r13w
jmp 0x1400429d2
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14004297f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400429d2
cmp word [rsp + 0x70], r13w
jne 0x1400429af
cmp rbx, r14
je 0x14004296c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400434bc
cmp word [rsp + 0x70], r13w
je 0x1400429d5
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140074460]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400429cf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400429d5
Function at 0x1400465d8
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 0x14004665f
mov rsi, rbx
cmp word [rax], bp
je 0x14004661e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140046608
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140046604
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140043560
mov rdi, rax
test rax, rax
je 0x14004664c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140031000
mov rbp, rdi
xor ecx, ecx
call fcn.140040e30
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 0x14004b538
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.14003fa74
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 0x14004b5d9
cmp ebx, dword [rsp + 0x30]
je 0x14004b5d2
test esi, esi
je 0x14004b5d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004b5ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004b5ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004b597
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004b5be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004b5db
mov eax, 1
jmp 0x14004b5db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14004f8d4
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400434bc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400434bc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004fa24
cmp rax, 0xffffffffffffffff
je 0x14004fa24
xor edi, edi
test rbp, rbp
jle 0x14004f9cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400415c8
mov rbx, rax
test rax, rax
jne 0x14004f95c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004f9c5
mov edx, 0x8000
mov ecx, r14d
call fcn.14003cf18
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140040b28
cmp eax, 0xffffffff
je 0x14004f9a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14004f96c
mov edx, r15d
mov ecx, r14d
call fcn.14003cf18
jmp 0x14004f9c5
cmp byte [rsi + 0x38], dil
je 0x14004f9bc
cmp dword [rsi + 0x34], 5
jne 0x14004f9bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004f9c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140040e30
jmp 0x14004fa38
jns 0x14004fa38
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400434bc
cmp rax, 0xffffffffffffffff
jne 0x14004f9f0
cmp byte [rsi + 0x30], dil
je 0x14004fa38
mov edi, dword [rsi + 0x2c]
jmp 0x14004fa38
mov ecx, r14d
call fcn.140048fe4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14004fa38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14004fa38
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14004fa31
mov eax, dword [rsi + 0x2c]
jmp 0x14004fa36
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400434bc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180003a00
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x180068010]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rbx, [rcx + 8]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x180055720]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x180003b0c
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.18000cf20
mov rdi, rax
cmp rbx, rax
je 0x180003abc
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x180003a8e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180003a89
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003af5
mov rcx, r8
call fcn.1800527b8
xor eax, eax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], 7
mov word [rbx], ax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [rbx + 0x10], xmm1
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 7
mov word [rdi], ax
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x180003b01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003afc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003afc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800527b8
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.180051cfc
lea rcx, str.R3nzSkin
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 8
lea r8, [rsp + 0x40]
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1800032f0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180003530
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x180003b8a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003b84
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180003b84
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800527b8
nop
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800522f0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret