joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e74c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140386220]
mov rcx, qword [rax + 0x4dd8]
mov r10, qword [rax + 0x4038]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.1400d29e0

Function at 0x1400e75a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140386220]
mov rcx, qword [rax + 0x4dd8]
mov r9, qword [rax + 0x4038]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.1400d29e0
Function at 0x1800012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov rsi, rdx
cmp dword [rcx + 0x48], 1
mov rdi, rcx
jne 0x1800013ac
mov dword [rdx], 1
lea r8, [0x1800042a8]
mov rcx, qword [rcx + 8]
lea edx, [rbx + 0x68]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14d, 0x67
mov rbp, rax
mov ecx, r14d
test rax, rax
je 0x180001334
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
mov ecx, r14d
test rax, rax
je 0x180001334
mov rcx, qword [rdi + 8]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x18000133a
mov r14, rcx
mov rax, rbx
mov qword [rsi + 8], rax
lea r8, [0x1800042a8]
mov rcx, qword [rdi + 8]
mov rdx, r14
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov r14, rax
test rax, rax
je 0x18000138c
mov rcx, qword [rdi + 8]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r15, rax
test rax, rax
je 0x18000138c
mov rcx, qword [rdi + 8]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, r15
mov ebp, eax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov r15, qword [rsp + 0x50]
xor eax, eax
mov r14, qword [rsp + 0x48]
mov dword [rsi + 0x18], ebp
mov rbp, qword [rsp + 0x40]
mov qword [rsi + 0x10], rbx
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
mov dword [rdx], ebx
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001d660
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rdi, [rdi + 0x64]
sub rsp, 0xe8
mov r9, rsi
lea rsi, [rsp + 0x64]
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
lea r15, reloc.WS2_32.dll_accept
mov qword [rsi + 0x74], rcx
cmp rdx, rcx
jb 0x14001d700
shr rcx, 3
lea r8, [rdi - 0x64]
mov rax, qword [r9]
lea r9, [r9 + 8]
xor rax, qword [r8]
lea r8, [r8 + 8]
sub rdx, 8
mov qword [r8 - 8], rax
sub rcx, 1
jne 0x14001d6c6
mov qword [rsi + 0x64], r9
mov qword [rsi + 0x6c], rdx
call fcn.14001d300
mov r9, qword [rsi + 0x64]
mov rdx, qword [rsi + 0x6c]
mov rcx, qword [rsi + 0x74]
jmp 0x14001d6b9
mov rax, rdx
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret

Function at 0x1400213a0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
lea rcx, [rsp + 0x28]
sub rcx, 8
lea r8, [0x140025c10]
lea rdx, [rsp + 0x30]
call fcn.140029110
call fcn.140021c20
mov rcx, qword [rsp + 0x30]
mov rdx, rax
call fcn.14002a280
mov qword [rsp + 0x30], rax
lea rdx, [0x1401a4e20]
mov rcx, qword [rax]
call fcn.14002a160
test eax, eax
jne 0x1400213ff
call fcn.140021c20
mov rcx, rax
mov edx, 0x1ff
call fcn.1401719d0
add rsp, 0x28
ret
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rbx
call fcn.14002ce20
mov rcx, qword [rsp + 0x30]
mov edx, 0x5c
mov rcx, qword [rcx]
call fcn.14017c0a4
mov rbx, rax
mov byte [rax], 0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14017698c
mov byte [rbx], 0x5c
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14017698c
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret
Function at 0x1400219f0
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax + 0x20], rbx
mov qword [rax - 0x10], rbp
mov qword [rax - 0x18], rsi
mov qword [rax - 0x20], r12
mov r12, rdx
mov qword [rax - 0x28], r13
mov r13, rcx
mov qword [rax - 0x30], r14
mov qword [rax - 0x38], r15
mov dword [rax + 8], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x90]
mov rsi, rax
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ebp, ebp
mov rdi, rax
test rax, rax
je 0x140021a52
mov r15d, dword [rsp + 0x90]
jmp 0x140021adf
lea rax, [rsp + 0x88]
mov dword [rsp + 0x80], ebp
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x88], ebp
xor edx, edx
mov rcx, rsi
call fcn.14001fdd0
movsxd rax, dword [rsp + 0x88]
movsxd rbx, dword [rsp + 0x80]
lea rcx, [rax + rbx*4]
add rcx, rcx
call fcn.140176304
mov rdi, rax
lea r9, [rsp + 0x80]
mov rdx, rdi
mov rcx, rsi
lea r8, [rax + rbx*8]
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.14001fdd0
mov r15d, dword [rsp + 0x80]
dec r15d
mov dword [rsp + 0x80], ebp
mov dword [rsp + 0x90], r15d
mov r8d, r15d
lea rdx, str.main_argc__d
mov ecx, 5
call fcn.14002d450
movsxd r14, r15d
lea ebp, [r15*8 + 8]
mov esi, ebp
test r15d, r15d
jle 0x140021b47
xor eax, eax
mov ebx, eax
nop dword [rax]
mov r8, qword [rdi + rbx*8]
or r9d, 0xffffffff
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], rax
mov ecx, 0xfde9
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esi, eax
inc rbx
mov eax, 0
cmp rbx, r14
jl 0x140021b10
movsxd rcx, esi
mov dword [r13], r15d
call fcn.140176304
xor edx, edx
mov qword [r12], rax
mov r13d, edx
test r15d, r15d
jle 0x140021bc1
mov ebx, edx
mov r13d, r15d
nop word [rax + rax]
mov rcx, qword [r12]
or r9d, 0xffffffff
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdx
xor edx, edx
movsxd rax, ebp
add rax, rcx
mov qword [rcx + rbx*8], rax
mov ecx, esi
mov rax, qword [r12]
sub ecx, ebp
mov r8, qword [rdi + rbx*8]
mov dword [rsp + 0x28], ecx
mov ecx, 0xfde9
mov rax, qword [rax + rbx*8]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc rbx
mov edx, 0
add ebp, eax
cmp rbx, r14
jl 0x140021b70
cmp dword [rsp + 0x80], 0
mov rax, qword [r12]
mov r15, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x98]
movsxd rcx, r13d
mov r13, qword [rsp + 0x50]
mov qword [rax + rcx*8], rdx
mov rcx, rdi
je 0x140021c0b
call qword [sym.imp.KERNEL32.dll_LocalFree]
add rsp, 0x70
pop rdi
ret
call fcn.1401762fc
add rsp, 0x70
pop rdi
ret
Function at 0x140021c20
Capabilities:
Get common file path

Disassembly:
push rbp
push r14
mov rbp, rsp
sub rsp, 0x48
lea r14, [rbp + 0x10]
add r14, 0xfffffffffffffff8
lea r8, [0x140025c10]
mov rcx, r14
lea rdx, [rbp + 0x18]
call fcn.140029110
lea r8, [0x140025c10]
mov qword [rbp + 0x18], rax
lea rdx, [rbp - 0x20]
mov rcx, r14
call fcn.140029110
call fcn.140021980
mov rcx, qword [rbp - 0x20]
mov rdx, rax
call fcn.14002a280
mov r8, rax
mov qword [rbp - 0x20], rax
mov rax, qword [0x140278ed8]
test rax, rax
jne 0x140021e36
mov r8, qword [r8]
lea rdx, str._s_luminati
mov rcx, qword [rbp + 0x18]
call fcn.14002a330
cmp dword [reloc.WS2_32.dll_accept], 0
je 0x140021e1a
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
call fcn.14002ca40
test eax, eax
jne 0x140021e1a
lea r8, [0x140025c10]
mov rcx, r14
lea rdx, [rbp - 0x28]
call fcn.140029110
lea r8, [0x140025c10]
mov qword [rbp - 0x28], rax
lea rdx, [rbp + 0x30]
mov rcx, r14
call fcn.140029110
lea r8, [0x140025c10]
mov qword [rbp + 0x30], rax
lea rdx, [rbp + 0x28]
mov rcx, r14
call fcn.140029110
call fcn.140021980
mov rcx, qword [rbp + 0x28]
mov rdx, rax
call fcn.14002a280
mov rdx, qword [0x140278ed0]
mov qword [rbp + 0x28], rax
test rdx, rdx
jne 0x140021dff
mov qword [rsp + 0x40], rbx
mov rbx, qword [rbp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x38], rsi
mov qword [rbp + 0x20], rdx
call fcn.14002a470
lea r9, [rbp + 0x20]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1401a4dd0]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x140021df3
mov rdx, qword [rbp + 0x20]
xor r8d, r8d
xor ecx, ecx
call fcn.140176984
mov rcx, rax
call fcn.140171260
mov rsi, rax
cmp eax, 0xffffffff
je 0x140021df3
mov edx, esi
mov rcx, rbx
call fcn.14002a4b0
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbx]
movsxd r8, esi
call fcn.140176984
mov rcx, rax
call fcn.140171260
cmp rax, 0xffffffffffffffff
je 0x140021df3
mov rcx, rbx
call fcn.14002ce10
mov rcx, qword [rbp + 0x28]
call fcn.14002ce20
mov rcx, r14
mov rbx, rax
call fcn.140029530
mov rdx, qword [rbx]
mov rcx, rax
call fcn.140025b90
mov r8, qword [rbp + 0x30]
lea rdx, str._s_BrightData__s
mov rcx, qword [rbp - 0x28]
mov r9, qword [rax]
mov r8, qword [r8]
call fcn.14002a330
mov rax, qword [rbp - 0x28]
mov rdx, qword [rax]
mov qword [0x140278ed0], rdx
mov qword [rax], 0
jmp 0x140021df5
xor edx, edx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
lea rcx, [0x140278ed8]
call fcn.14002a280
mov rax, qword [0x140278ed8]
add rsp, 0x48
pop r14
pop rbp
ret
mov rcx, qword [rbp + 0x18]
mov rax, qword [rcx]
mov qword [0x140278ed8], rax
mov qword [rcx], 0
mov rax, qword [0x140278ed8]
add rsp, 0x48
pop r14
pop rbp
ret
Function at 0x140027870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push r13
push r14
push r15
sub rsp, 0x48
mov r8, qword [rcx]
mov r14, rcx
movabs rcx, 0xffffffff00000000
movzx eax, word [r8 + 0x14]
mov r12, qword [r8 + 0x30]
mov r9d, dword [r14 + 0x68]
and r12, rcx
dec r9
mov r11d, dword [rax + r8 + 0x20]
not r9
mov ecx, dword [rax + r8 + 0x28]
or r11, r12
and r9, r11
mov qword [rsp + 0x20], r11
mov qword [rsp + 0x28], r9
test ecx, ecx
jne 0x1400278d8
mov edx, dword [rax + r8 + 0x3c]
test dl, 0x40
je 0x1400278d0
mov ecx, dword [r8 + 0x20]
jmp 0x1400278d8
test dl, dl
jns 0x1400278d8
mov ecx, dword [r8 + 0x24]
mov edx, dword [rax + r8 + 0x3c]
mov r13d, 1
mov r15d, r13d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rbp
mov r10d, ecx
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x3c], 0
cmp r13w, word [r8 + 6]
jae 0x1400279d8
lea rdi, [r8 + 0x64]
add rdi, rax
nop word [rax + rax]
mov ebx, dword [r14 + 0x68]
mov esi, dword [rdi - 0x1c]
dec rbx
mov eax, dword [rdi - 0x14]
or rsi, r12
not rbx
and rbx, rsi
test eax, eax
jne 0x14002795f
mov ecx, dword [rdi]
test cl, 0x40
je 0x140027957
mov eax, dword [r8 + 0x20]
jmp 0x14002795f
test cl, cl
jns 0x14002795f
mov eax, dword [r8 + 0x24]
mov ebp, eax
cmp r9, rbx
je 0x14002799f
lea rax, [r10 + r11]
cmp rax, rbx
ja 0x14002799f
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400277a0
test eax, eax
je 0x1400279fe
mov edx, dword [rdi]
mov r11, rsi
mov r8, qword [r14]
mov r9, rbx
mov qword [rsp + 0x20], rsi
mov r10d, ebp
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rbp
jmp 0x1400279bf
mov ecx, dword [rdi]
mov eax, ecx
and eax, edx
or edx, ecx
bt eax, 0x19
jb 0x1400279b1
btr edx, 0x19
mov r10, rbp
sub r10, r11
add r10, rsi
mov qword [rsp + 0x30], r10
movzx eax, word [r8 + 6]
inc r15d
add rdi, 0x28
mov dword [rsp + 0x38], edx
cmp r15d, eax
jl 0x140027930
test r10, r10
je 0x140027a57
bt edx, 0x19
jae 0x140027a02
cmp r11, r9
jne 0x140027a57
mov r9, qword [r14 + 0x58]
mov r8d, 0x4000
mov rdx, r10
mov rcx, r11
call qword [r14 + 0x30]
jmp 0x140027a57
xor eax, eax
jmp 0x140027a5a
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov rax, rcx
shr rcx, 0x1e
shr rax, 0x1d
and ecx, r13d
and eax, r13d
lea rcx, [rcx + rax*2]
mov eax, edx
shr rax, 0x1f
lea rcx, [rax + rcx*2]
lea rax, [0x140263018]
mov eax, dword [rax + rcx*4]
mov r8d, eax
bts r8d, 9
mov rcx, r11
and edx, 0x4000000
mov rdx, r10
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400279fe
mov eax, r13d
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
ret
Function at 0x140028780
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400287ae
lea ecx, [rax + 0x19]
int 0x29
test byte [rsp + 0x44], 0x44
je 0x140028808
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r9d, dword [rsp + 0x54]
xor edx, edx
lea ecx, [r9 - 1]
mov eax, ecx
lea r8, [r9 - 1]
and eax, edi
and ecx, ebx
add eax, ecx
not r8
dec rax
and r8, rbx
add rax, r9
div r9
xor edx, edx
mov rcx, rax
mov rax, rdi
div r9
add rcx, rax
mov eax, ecx
test ecx, ecx
je 0x140028808
lock or dword [r8], 0
add r8, r9
sub rax, 1
jne 0x1400287fa
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret

Function at 0x14002881c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
movsxd r8, dword [0x14000003c]
lea rdi, [0x140000000]
add r8, rdi
mov r11, rdx
mov rbx, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x14002888f
mov r9d, dword [r8 + 0xf0]
xor edx, edx
test r9d, r9d
je 0x14002888f
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r10d, word [r8 + 6]
add rcx, rax
mov r9d, dword [r9 + rdi + 0xc]
test r10d, r10d
je 0x14002888f
mov eax, dword [rcx + 0xc]
cmp r9d, eax
jb 0x140028884
mov r8d, dword [rcx + 8]
add eax, r8d
cmp r9d, eax
jb 0x14002889c
inc edx
add rcx, 0x28
cmp edx, r10d
jb 0x140028870
xor eax, eax
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
mov dword [rbx], r8d
mov eax, dword [rcx + 0x24]
mov dword [r11], eax
mov eax, dword [rcx + 0xc]
add rax, rdi
jmp 0x140028891

Function at 0x140028d70
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x38
mov rdx, rcx
mov qword [rax - 0x18], 0
lea rcx, [rax - 0x18]
lea r8, [rax + 0x10]
call fcn.14002a360
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140028dd6
mov rdx, qword [rsp + 0x20]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call fcn.14002ae40
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsp + 0x28]
call fcn.14002ae10
mov ecx, 2
call fcn.140176af8
mov rcx, qword [rsp + 0x20]
mov rdx, rax
call fcn.14017dbd0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140028dfc
call fcn.1401762fc
add rsp, 0x38
ret
Function at 0x14002be90
Capabilities:
Read 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 r12
push r14
push r15
sub rsp, 0x20
mov eax, 0x40
mov r12d, 0x2f80
xor edi, edi
mov ebx, r9d
cmp r9d, eax
mov r14, r8
mov r15, rdx
mov rsi, rcx
cmovle ebx, eax
mov rax, qword gs:[0x58]
add r12, qword [rax]
mov rax, qword [r12]
test rax, rax
jne 0x14002bee7
call fcn.1401762d4
mov ebp, dword [rax]
mov edx, ebx
mov rcx, rsi
call fcn.14002a4b0
mov rcx, qword [rsi]
lea eax, [rbx + 1]
movsxd r8, eax
mov r9, r15
mov edx, 1
call fcn.140176e10
test eax, eax
jle 0x14002bf57
nop dword [rax]
add edi, eax
cmp eax, ebx
jle 0x14002bf57
add ebx, ebx
lea eax, [rbx + rdi]
lea ecx, [rax + 1]
cmp eax, 0x40000000
jge 0x14002bf52
movsxd rdx, ecx
mov rcx, qword [rsi]
call fcn.14017d614
lea ecx, [rbx + 1]
mov qword [rsi], rax
movsxd r8, ecx
mov r9, r15
movsxd rcx, edi
mov edx, 1
add rcx, rax
call fcn.140176e10
test eax, eax
jg 0x14002bf10
jmp 0x14002bf57
mov ebp, 0x1b
mov rax, qword [rsi]
movsxd rcx, edi
mov byte [rcx + rax], 0
test r14, r14
je 0x14002bf69
mov dword [r14], edi
mov rax, qword [r12]
test rax, rax
jne 0x14002bf77
call fcn.1401762d4
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x58]
mov dword [rax], ebp
mov rax, rsi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002c210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
push r14
push r15
sub rsp, 0x30
mov r15, rcx
mov rbp, r9
mov rcx, r9
mov ebx, r8d
mov rdi, rdx
call fcn.14002ce40
mov rdx, rax
mov rcx, r15
call fcn.14002c6c0
mov r14, rax
test rax, rax
jne 0x14002c253
or rax, 0xffffffffffffffff
jmp 0x14002c32d
mov qword [rsp + 0x50], rsi
cmp ebx, 0xffffffff
jne 0x14002c26a
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rdi + rbx], 0
jne 0x14002c261
movsxd r8, ebx
mov r9, r14
mov edx, 1
mov rcx, rdi
call fcn.14017e654
mov rsi, rax
cmp eax, ebx
je 0x14002c31a
mov rcx, rbp
call fcn.14002cc10
bt eax, 0xc
jb 0x14002c2f5
mov rcx, rbp
call fcn.14002cc10
and eax, 0xf
cmp al, 6
ja 0x14002c31a
mov rcx, rbp
call fcn.14002cc10
and eax, 0xf
cmp al, 5
jbe 0x14002c2f5
mov rcx, rbp
call fcn.14002cc10
test eax, 0x1300
jne 0x14002c2f5
mov rcx, rbp
call fcn.14002cc10
mov edi, eax
mov rcx, rbp
and edi, 0xc10000
or rdi, 0x3e0000
call fcn.14002cc10
shr rdi, 0x10
lea rcx, [0x14027e320]
and eax, 0xf
cmp dword [rcx + rdi*4], eax
jl 0x14002c31a
mov rcx, rbp
call fcn.14002cc10
or eax, 0x3e0000
mov dword [rsp + 0x20], esi
mov ecx, eax
lea rdx, str.failed_fwrite__s__sz__d__returned__d
mov r9d, ebx
mov r8, r15
call fcn.14002d450
mov rcx, r14
call fcn.14017e270
sub esi, ebx
neg esi
mov rsi, qword [rsp + 0x50]
sbb eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14002c3e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x60
mov rbx, rcx
mov r13d, 0x10000
mov ecx, r13d
mov rdi, rdx
call fcn.140176304
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r14, rax
or r12d, 0xffffffff
call fcn.140172760
test eax, eax
jne 0x14002c4e0
lea rdx, [0x1401a92a4]
mov qword [rsp + 0xa0], r15
mov rcx, rbx
call fcn.140171ee0
mov r15, rax
test rax, rax
je 0x14002c4d8
lea rdx, [0x1401a943c]
mov qword [rsp + 0x90], rbp
mov rcx, rdi
call fcn.140171ee0
mov rbp, rax
test rax, rax
je 0x14002c4bb
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x98], rsi
test rbx, rbx
je 0x14002c4b0
cmp rbx, r13
mov esi, ebx
mov r9, r15
mov edx, 1
cmovg esi, r13d
mov rcx, r14
movsxd rdi, esi
mov r8, rdi
call fcn.140176e10
cmp eax, esi
jne 0x14002c4b3
mov r9, rbp
mov r8, rdi
mov edx, 1
mov rcx, r14
call fcn.14017e654
cmp eax, esi
jne 0x14002c4b3
sub rbx, rdi
jne 0x14002c471
xor r12d, r12d
mov rsi, qword [rsp + 0x98]
mov rcx, r15
call fcn.14017e270
test rbp, rbp
je 0x14002c4d0
mov rcx, rbp
call fcn.14017e270
mov rbp, qword [rsp + 0x90]
mov r15, qword [rsp + 0xa0]
mov rcx, r14
call fcn.1401762fc
mov eax, r12d
add rsp, 0x60
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret

Function at 0x14002c8a0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x68
lea rcx, [rsp + 0x68]
sub rcx, 8
lea r8, [fcn.14002ae10]
lea rdx, [rsp + 0x70]
call fcn.140029110
mov qword [rsp + 0x70], rax
mov rax, qword [0x140278f70]
test rax, rax
jne 0x14002ca12
lea rcx, str.TEMP
mov qword [rsp + 0x60], rbx
call fcn.1401713d0
test rax, rax
jne 0x14002c9a0
lea rcx, [0x1401a92e0]
call fcn.1401713d0
test rax, rax
jne 0x14002c9a0
mov rcx, qword [rsp + 0x70]
call fcn.14002ae90
mov rdx, qword [rsp + 0x70]
xor ecx, ecx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebx, eax
test eax, eax
je 0x14002c954
mov rcx, qword [rsp + 0x70]
mov edx, eax
call fcn.14002aec0
mov rdx, qword [rsp + 0x70]
mov ecx, ebx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rdx, qword [rsp + 0x70]
lea rcx, [0x140278f70]
mov rdx, qword [rdx]
call fcn.14002a460
jmp 0x14002c9af
lea rcx, [0x1401a92e8]
call fcn.1401713d0
test rax, rax
je 0x14002ca17
movzx ecx, byte [rax]
lea rdx, [0x140231a30]
test byte [rdx + rcx*2], 4
je 0x14002ca17
cmp byte [rax + 1], 0x3a
jne 0x14002ca17
movsx r8d, cl
lea rdx, str._c:_Temp
lea rcx, [0x140278f70]
call fcn.14002a330
jmp 0x14002c9af
mov rdx, rax
lea rcx, [0x140278f70]
call fcn.14002a280
mov rcx, qword [0x140278f70]
lea rdx, [rsp + 0x20]
call fcn.140172760
test eax, eax
jne 0x14002c9d9
movzx eax, word [rsp + 0x26]
test eax, eax
je 0x14002c9d9
and eax, 0xf000
cmp eax, 0x4000
je 0x14002ca06
mov r8, qword [0x140278f70]
lea rdx, str.creating_temp_directory__s
mov ecx, 0x3e0004
call fcn.14002d450
mov rcx, qword [0x140278f70]
mov edx, 0x1ff
call fcn.1401719d0
test eax, eax
jne 0x14002ca29
mov rax, qword [0x140278f70]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rdx, str.failed_to_get_temp_directory
mov ecx, 0x3e0000
call fcn.14002d920
int3
lea rdx, str.failed_to_create_temp_directory
mov ecx, 0x3e0000
call fcn.14002d920
int3