joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d138
Capabilities:
Get http response content encoding

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x48]
mov dword [rsp + 0x58], 4
xor ebx, ebx
mov qword [rsp + 0x20], rax
bts edx, 0x1d
mov dword [rsp + 0x48], ebx
lea r9, [rsp + 0x58]
call qword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x14007d1c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edx, 0x94
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov ebx, ecx
mov r8d, ecx
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilinetutil.cpp
call fcn.1400012b0
mov edx, 0x94
lea rax, str.Failed_to_get_query_information.
mov qword [rsp + 0x28], rax
lea rcx, str.d:_awixwix_srclibsdutilwixtoolset.dutilinetutil.cpp
mov dword [rsp + 0x20], ebx
lea r9d, [rdx - 0x7d]
lea r8d, [r9 - 0x12]
call fcn.1400012b4
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140002e60
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003f50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003f50
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002ed0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400090a4]
mov rbx, rcx
test esi, esi
jle 0x140003000
mov rax, qword [0x1400090a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002f1b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002fa5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002f00
mov rcx, rbx
call fcn.140003920
mov rdi, rax
test rax, rax
je 0x140003022
mov rax, qword [0x1400090a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003a60
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400090a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003007
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002f9e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002fb0
add dword [0x1400090a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400090a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002e60
nop dword [rax]
xor esi, esi
jmp 0x140002f28
mov rax, qword [0x1400090a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002e60
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002e60
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003590
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140009100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x1400035ec
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400035e3
test rsi, rsi
je 0x1400035e3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400035c8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x180001aa0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
sub rsp, 0x60
mov rax, qword [0x180060030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbp, qword [0x180062dd0]
mov rax, qword [0x1800629b8]
add rbp, 0x34435a0
test rax, rax
jne 0x180001be9
mov qword [rsp + 0x70], rbx
lea rcx, [0x18005cc30]
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov dword [rsp + 0x4c], 0x7865742e
mov byte [rsp + 0x50], 0x74
movsxd rcx, dword [rax + 0x3c]
movzx eax, word [rcx + rax + 0x14]
lea rbx, [rcx + rsi]
add rax, 0x18
add rbx, rax
movzx eax, word [rcx + rsi + 6]
lea rcx, [rax + rax*4]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
jbe 0x180001b8a
xor r9d, r9d
lea rax, str.transposed_pointer_range
mov qword [rsp + 0x28], rax
lea rdx, [0x18005cc70]
lea rax, [0x18005cb4c]
mov r8d, 0x507
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 2]
call fcn.18000e870
cmp eax, 1
jne 0x180001b5f
int3
mov r9d, 0x507
mov qword [rsp + 0x20], 0
lea r8, str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includexutility
lea rdx, str.std::_Verify_range
lea rcx, str._transposed_pointer_range_
call fcn.18000f260
jmp 0x180001b90
je 0x180001bae
nop dword [rax]
lea rdx, [rbx + 5]
mov rcx, rbx
lea r8, [rsp + 0x4c]
call fcn.180002930
test al, al
jne 0x180001bae
add rbx, 0x28
cmp rbx, rdi
jne 0x180001b90
mov ecx, dword [rbx + 0xc]
lea r9, [rsp + 0x4a]
mov edx, dword [rbx + 8]
lea r8, [rsp + 0x48]
add rcx, rsi
mov word [rsp + 0x48], 0x26ff
add rdx, rcx
call fcn.1800027e0
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov qword [0x1800629b8], rax
mov qword [rsp + 0x30], rax
lea r8, str.Engine.Canvas.K2_DrawLine
xor eax, eax
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor edx, edx
lea rax, [rsp + 0x30]
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1800029f0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180003060
add rsp, 0x60
pop rbp
ret
Function at 0x180001c30
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x180060030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r12, qword [0x180062dd0]
mov r15, r8
mov rax, qword [0x180065290]
add r12, 0x3405390
mov r14, rdx
mov rbp, rcx
test rax, rax
jne 0x180001d86
mov qword [rsp + 0x70], rbx
lea rcx, [0x18005cc30]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rsi, rax
mov dword [rsp + 0x4c], 0x7865742e
mov byte [rsp + 0x50], 0x74
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
movzx ebx, word [rcx + 0x14]
movzx eax, word [rcx + 6]
add rbx, 0x18
add rbx, rcx
lea rcx, [rax + rax*4]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
jbe 0x180001d23
xor r9d, r9d
lea rax, str.transposed_pointer_range
mov qword [rsp + 0x28], rax
lea rdx, [0x18005cc70]
lea rax, [0x18005cb4c]
mov r8d, 0x507
mov qword [rsp + 0x20], rax
lea ecx, [r9 + 2]
call fcn.18000e870
cmp eax, 1
jne 0x180001cf8
int3
mov r9d, 0x507
mov qword [rsp + 0x20], 0
lea r8, str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133includexutility
lea rdx, str.std::_Verify_range
lea rcx, str._transposed_pointer_range_
call fcn.18000f260
jmp 0x180001d30
je 0x180001d4e
nop word [rax + rax]
lea rdx, [rbx + 5]
mov rcx, rbx
lea r8, [rsp + 0x4c]
call fcn.180002930
test al, al
jne 0x180001d4e
add rbx, 0x28
cmp rbx, rdi
jne 0x180001d30
mov ecx, dword [rbx + 0xc]
lea r9, [rsp + 0x4a]
mov edx, dword [rbx + 8]
lea r8, [rsp + 0x48]
add rcx, rsi
mov word [rsp + 0x48], 0x26ff
add rdx, rcx
call fcn.1800027e0
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov qword [0x180065290], rax
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor eax, eax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x28], rax
mov r8, r15
mov qword [rsp + 0x40], rax
mov rdx, r14
lea rax, [rsp + 0x30]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.1800029f0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.180003060
add rsp, 0x78
pop r15
pop r14
pop r12
pop rbp
ret
Function at 0x180001dd0
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xa70
mov rax, qword [0x180060030]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov r8, rcx
lea rcx, [rsp + 0x660]
sub rcx, rdx
movzx eax, byte [rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x180001e02
lea rcx, [rsp + 0x660]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x180001e20
mov eax, dword [str.:__p]
lea rdi, [0x1800629c0]
mov dword [rcx], eax
lea rdx, [rsp + 0x660]
movzx eax, byte [0x18005cb7c]
mov byte [rcx + 4], al
mov rcx, rdi
call fcn.180001920
xor esi, esi
lea rdx, [rsp + 0x50]
mov ecx, 0x104
mov dword [rsp + 0x44], esi
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rdx, str.config_ptr_x.txt
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 4
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea rdx, [rsp + 0x260]
mov r8d, 0x3ff
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, esi
movzx ecx, byte [rdx + rdi]
mov byte [rsp + rdx + 0x260], cl
lea rdx, [rdx + 1]
test cl, cl
jne 0x180001ed0
lea rcx, [rsp + 0x260]
dec rcx
nop
cmp byte [rcx + 1], sil
lea rcx, [rcx + 1]
jne 0x180001ef0
movzx eax, word [0x18005cb74]
mov r8, 0xffffffffffffffff
mov word [rcx], ax
lea rax, [rsp + 0x260]
inc r8
cmp byte [rax + r8], sil
jne 0x180001f13
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
lea rdx, [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.180003060
lea r11, [rsp + 0xa70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18000d6d0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.18000d1b0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x18000d70f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1800482c0]
jmp 0x18000d719
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x18002c9e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1800386b0
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180002b70
lea rcx, [rsp + 0x40]
call fcn.180038670
movzx eax, al
test eax, eax
jne 0x1800386f8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1800385a0
mov rax, qword [rsp + 0x70]
jmp 0x1800388c9
lea rcx, [rsp + 0x40]
call fcn.180002e90
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.180038620
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.180002e90
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.180035980
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18003879e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1800385a0
mov rax, qword [rsp + 0x80]
jmp 0x1800388c9
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.180021570
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180002b70
lea rcx, [rsp + 0x48]
call fcn.180003000
movzx eax, al
test eax, eax
jne 0x180038805
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.180002fe0
lea rcx, [rsp + 0x40]
call fcn.1800385a0
mov rax, qword [rsp + 0x88]
jmp 0x1800388c9
lea rcx, [rsp + 0x48]
call fcn.180002e90
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.180002e90
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.180035980
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x18003889b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.180002fe0
lea rcx, [rsp + 0x40]
call fcn.1800385a0
mov rax, qword [rsp + 0xa0]
jmp 0x1800388c9
lea rcx, [rsp + 0x48]
call fcn.1800060d0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.180002fe0
lea rcx, [rsp + 0x40]
call fcn.1800385a0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x180043dc0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.180046500
sub rsp, rax
mov rax, qword [0x180060030]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x180061c80]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180043fb2
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x180043f06
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x180043f06
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x180043eeb
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x180043e88
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180043f72
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180043fd1
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x180043fad
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x180043fd1
jmp 0x180043e5e
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.180003060
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x180043ff0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.180046500
sub rsp, rax
mov rax, qword [0x180060030]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x180061c80]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1800441fd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x180044149
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x180044149
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x180044129
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1800440b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800441bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x18004421c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1800441f8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x18004421c
jmp 0x18004408e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.180003060
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x180003970
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x58]
xor r8d, r8d
lea rcx, [0x18008a5d0]
xor edx, edx
lea r9, [rsp + 0x68]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x180003a6e
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.180010720
mov rdi, rax
cmp rbx, rax
je 0x180003a21
mov rdx, qword [rbx + 0x18]
cmp rdx, 8
jb 0x1800039f3
mov rcx, qword [rbx]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x1800039ee
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180003af5
mov rcx, r8
call fcn.18005c8bc
mov qword [rbx + 0x18], 7
xor eax, eax
mov qword [rbx + 0x10], rax
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 + 0x48]
cmp rdx, 8
jb 0x180003a63
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003a5e
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003af5
call fcn.18005c8bc
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
call fcn.18005abec
lea rcx, str.R3nzSkin
mov qword [rsp + 0x28], 8
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov edx, eax
call fcn.1800032e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180003520
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x180003ae4
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180003adf
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180003aef
call fcn.18005c8bc
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call fcn.18006b89c
int3
call fcn.18006b89c
int3

Function at 0x180019d70
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x180019dcd
lea rbx, [0x1800968a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x180019db4
cmp r10, 2
jb 0x180019db4
cmp byte [r9], r8b
jne 0x180019db4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x180019d90
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x180019e0f
lea rbx, [0x1800968a0]
cmp r8b, 0x23
jne 0x180019df3
cmp byte [r9], r8b
jne 0x180019df3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x180019de0
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x180019f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x180019f6a
mov qword [r8], 0
lea rdx, [0x18009bbe4]
call fcn.180019e20
mov rbx, rax
test rax, rax
jne 0x180019f8a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.18006bf3c
mov esi, eax
cmp eax, 0xffffffff
je 0x18001a058
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.18006b45c
test eax, eax
jne 0x18001a058
mov rcx, rbx
call fcn.18006bf3c
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x18001a058
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.18006b45c
test eax, eax
jne 0x18001a058
cmp rdi, 0xffffffffffffffff
je 0x18001a058
mov rax, qword [0x1800afdc8]
test rax, rax
je 0x180019ffa
inc dword [rax + 0x3b0]
mov rcx, rdi
call fcn.18006ef68
mov rsi, rax
test rax, rax
je 0x18001a058
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.18006b08c
mov rcx, rbx
cmp rax, rdi
je 0x18001a046
call fcn.1800671c8
mov rax, qword [0x1800afdc8]
test rax, rax
je 0x18001a03c
dec dword [rax + 0x3b0]
mov rcx, rsi
call fcn.18006ac68
jmp 0x18001a060
call fcn.1800671c8
test r14, r14
je 0x18001a053
mov qword [r14], rdi
mov rax, rsi
jmp 0x18001a062
mov rcx, rbx
call fcn.1800671c8
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret