joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ca150
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, r8
mov rdi, r9
mov rbx, qword [rbp + 0x30]
mov qword [rbp - 0x40], rbx
test rdx, rdx
je 0x1400ca191
add rdx, 0xc
jmp 0x1400ca193
xor edx, edx
mov qword [rbp - 0x48], rdx
mov r14, rdx
test rcx, rcx
je 0x1400ca1a8
add rcx, 0xc
mov r15, rcx
jmp 0x1400ca1ab
xor r15d, r15d
mov qword [rbp - 0x50], r15
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], rbx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rcx, r15
mov qword [rbp - 0x58], rcx
mov rdx, r14
mov qword [rbp - 0x60], rdx
mov r8, rsi
mov qword [rbp - 0x68], r8
mov r9, rdi
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.140002800
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CopyFileExW
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.140002850
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.140001c85
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400ca3c0
Capabilities:
Delete file

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x90]
xor eax, eax
mov qword [rbp - 0x40], rax
test rcx, rcx
je 0x1400ca3ec
add rcx, 0xc
mov rsi, rcx
jmp 0x1400ca3ee
xor esi, esi
mov qword [rbp - 0x40], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, rsi
mov qword [rbp - 0x48], rcx
lea rcx, [rbp - 0x70]
call fcn.140002800
mov rcx, qword [rbp - 0x48]
call sub.KERNEL32.dll_DeleteFileW
mov esi, eax
lea rcx, [rbp - 0x70]
call fcn.140002850
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
test esi, esi
setne sil
movzx esi, sil
call fcn.140001c85
mov dword [rax + 8], edi
movzx eax, sil
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400caf90
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov edi, r8d
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400b8bd0
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, rbx
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002800
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140002850
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp byte [rbp - 0x40], 0
je 0x1400cb040
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.1400b8c00
call fcn.140001c85
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x1400cb090
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rdi, rdx
mov ebx, r8d
mov rsi, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.1400b8bd0
mov rcx, qword [rbp + 0x10]
mov r14, qword [rcx + 8]
mov qword [rbp - 0x48], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, r14
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, rsi
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140002800
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_ReadFile
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.140002850
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x1400cb153
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.1400b8c00
call fcn.140001c85
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400cb340
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, rdx
mov ebx, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rsi
mov qword [rbp - 0x4c], rcx
mov rdx, rdi
mov qword [rbp - 0x54], rdx
mov r8d, ebx
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.140002800
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov esi, eax
lea rcx, [rbp - 0x88]
call fcn.140002850
call sub.KERNEL32.dll_GetLastError
mov edi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.140001c85
mov dword [rax + 8], edi
mov eax, esi
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400d5360
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x198
lea rbp, [rsp + 0x1d0]
xorps xmm4, xmm4
movabs rax, 0xffffffffffffff10
movaps xmmword [rbp + rax - 0x40], xmm4
movaps xmmword [rbp + rax - 0x30], xmm4
movaps xmmword [rbp + rax - 0x20], xmm4
add rax, 0x30
jne 0x1400d5388
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rbx, rcx
mov r14, rdx
mov r15, r8
mov r12, r9
mov r13, qword [rbp + 0x48]
mov rcx, rbx
mov edx, 1
xor r8d, r8d
call fcn.1400b8350
mov qword [rbp - 0x40], rax
mov rcx, r14
mov edx, 1
xor r8d, r8d
call fcn.1400b8350
mov qword [rbp - 0x48], rax
xor edi, edi
cmp byte [rbp + 0x30], 0
setne dil
mov dword [rbp - 0x4c], edi
mov rcx, r13
mov edx, 1
xor r8d, r8d
call fcn.1400b8350
mov qword [rbp - 0x58], rax
lea rdi, [rbp - 0xb8]
mov rsi, qword [rbp + 0x50]
mov ecx, 0xc
rep movsq qword [rdi], qword [rsi]
lea rcx, [rbp - 0xb8]
lea rdx, [rbp - 0x120]
call fcn.140123150
mov rsi, qword [rbp + 0x58]
mov qword [rbp - 0x128], rsi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ebx, dword [rbp - 0x4c]
mov dword [rsp + 0x20], ebx
mov ebx, dword [rbp + 0x38]
mov dword [rsp + 0x28], ebx
mov rbx, qword [rbp + 0x40]
mov qword [rsp + 0x30], rbx
mov rbx, qword [rbp - 0x58]
mov qword [rsp + 0x38], rbx
lea rcx, [rbp - 0x120]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], rsi
mov rcx, qword [rbp - 0x40]
mov qword [rbp - 0x138], rcx
mov rdx, qword [rbp - 0x48]
mov qword [rbp - 0x140], rdx
mov r8, r15
mov qword [rbp - 0x148], r8
mov r9, r12
mov qword [rbp - 0x150], r9
lea rcx, [rbp - 0x178]
call fcn.140002800
mov rcx, qword [rbp - 0x138]
mov rdx, qword [rbp - 0x140]
mov r8, qword [rbp - 0x148]
mov r9, qword [rbp - 0x150]
call sub.KERNEL32.dll_CreateProcessA
mov esi, eax
lea rcx, [rbp - 0x178]
call fcn.140002850
call fcn.140001c85
mov rdi, rax
mov qword [rbp - 0x130], rdi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x130]
mov dword [rcx + 8], eax
test esi, esi
setne sil
movzx esi, sil
cmp qword [rbp + 0x10], 0
je 0x1400d5514
mov r14, qword [rbp - 0x40]
test r14, 0xffffffffffff0000
je 0x1400d5514
mov rcx, r14
call fcn.1400cc230
cmp qword [rbp + 0x18], 0
je 0x1400d5530
mov r15, qword [rbp - 0x48]
test r15, 0xffffffffffff0000
je 0x1400d5530
mov rcx, r15
call fcn.1400cc230
cmp qword [rbp + 0x48], 0
je 0x1400d5548
test rbx, 0xffffffffffff0000
je 0x1400d5548
mov rcx, rbx
call fcn.1400cc230
lea rcx, [rbp - 0x120]
call fcn.140122fd0
movzx eax, sil
add rsp, 0x198
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400d6230
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rcx
lea rcx, [0x14015bdb0]
call fcn.140002370
mov rdi, rax
mov dword [rdi + 0x20], 0x7fffffff
lea rcx, [0x14018af88]
mov edx, 0x10
call fcn.140002490
lea rcx, [rdi + 8]
mov rdx, rax
call fcn.140002580
xor ebx, ebx
mov ebp, dword [rsi + 8]
test ebp, ebp
jle 0x1400d6292
mov edx, ebx
movzx edx, byte [rsi + rdx + 0x10]
xor edx, 0x63
movzx edx, dx
mov rcx, rdi
call fcn.1400a6240
inc ebx
cmp ebp, ebx
jg 0x1400d6277
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rbp
pop rsi
pop rdi
jmp fcn.1400a5dc0
Function at 0x1400da7d0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rcx, [0x14018aef0]
mov edx, 0x1f3
call fcn.140002490
mov rsi, rax
lea rdx, str.m_SDE_YXk_e_QXWBCDS_v
lea rcx, [rsi + 0x10]
mov r8d, 0x1f3
call fcn.140070850
lea rcx, [0x14015bdb0]
call fcn.140002370
mov rdi, rax
mov dword [rdi + 0x20], 0x7fffffff
lea rcx, [0x14018af88]
mov edx, 0x10
call fcn.140002490
lea rcx, [rdi + 8]
mov rdx, rax
call fcn.140002580
xor ebx, ebx
mov edx, ebx
movzx edx, byte [rsi + rdx + 0x10]
xor edx, 0x36
movzx edx, dx
mov rcx, rdi
call fcn.1400a6240
inc ebx
cmp ebx, 0x1f3
jl 0x1400da836
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.1400a5dc0
Function at 0x140009a60
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x58], 0xfffffffffffffffe
mov qword [rbp - 0x38], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x38]
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
call fcn.140009ee0
mov qword [rbp - 0x20], rax
jmp 0x140009a96
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x20]
mov dword [rbp - 0x44], eax
call fcn.14001ef60
mov qword [rbp - 0x40], rax
jmp 0x140009aac
mov rax, qword [rbp - 0x40]
mov ecx, dword [rbp - 0x44]
mov dword [rbp - 0x18], ecx
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov dword [rbp - 8], 0
mov qword [rbp], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], 0
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
mov qword [rbp + 0x20], 0
mov rax, rsp
lea rcx, [rbp - 8]
mov qword [rax + 0x30], rcx
mov dword [rax + 0x28], 0
mov qword [rax + 0x20], 0
xor eax, eax
mov r9d, eax
lea rcx, [rbp - 0x18]
mov rdx, r9
mov r8, r9
call sub.CRYPT32.dll_CryptUnprotectData
jmp 0x140009b49
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp]
mov eax, dword [rbp - 8]
mov r9d, eax
mov r8, r9
call fcn.140009bf0
jmp 0x140009b61
mov rcx, qword [rbp - 0x38]
call fcn.14002ea50
mov rax, qword [rbp - 0x28]
add rsp, 0xe0
pop rbp
ret

Function at 0x14002fd30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x140
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xb8], 0xfffffffffffffffe
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rdx
mov qword [rbp + 0x68], r8
lea rcx, [rbp - 0x40]
mov r9d, 0xffffffff
lea rax, [0x140222418]
mov qword [rsp + 0x20], rax
call fcn.140032c50
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x40]
call fcn.140031490
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x48]
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x28]
call fcn.140031b70
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rdx
mov rax, qword [rbp - 0x10]
cmp rax, 0
sete al
test al, 1
jne 0x14002fdb9
jmp 0x14002fdc2
add rsp, 0x140
pop rbp
ret
mov rcx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rbp + 0x70], rcx
mov qword [rbp + 0x78], rax
mov qword [rbp + 0xa8], rcx
mov qword [rbp + 0xb0], rax
mov edx, eax
call sub.ADVAPI32.dll_SystemFunction036
mov byte [rbp + 0x87], al
cmp al, 0
jne 0x14002fd97
call fcn.14002dde0
mov qword [rbp + 0x50], rax
lea rcx, [rbp + 0x50]
mov qword [rbp + 0x98], rcx
lea rax, [fcn.14010fbd0]
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0x88], rcx
mov qword [rbp + 0x90], rax
movups xmm0, xmmword [rbp + 0x88]
movaps xmmword [rbp + 0x40], xmm0
movaps xmm0, xmmword [rbp + 0x40]
movaps xmmword [rbp + 0x30], xmm0
lea rdx, str.couldnt_generate_random_bytes:_0___
mov rcx, rbp
lea r8, [rbp + 0x30]
call fcn.14002e6f0
jmp 0x14002fe49
lea rdx, [0x140222460]
mov rcx, rbp
call fcn.140214420
jmp 0x14002fe5a
ud2
Function at 0x14003fcc0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, rcx
movdqa xmm0, xmmword [rdx]
aeskeygenassist xmm0, xmm0, 2
movdqa xmmword [rcx], xmm0
ret

Function at 0x1400d5840
Capabilities:
Hash data using fnv

Disassembly:
sub rsp, 0x88
mov qword [rsp + 0x20], r8
mov rax, rdx
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], rdx
mov rax, qword [rax]
mov qword [rsp + 0x38], rax
call fcn.14010a920
mov rcx, rax
call fcn.1400d3f30
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rdx
lea rcx, [rsp + 0x40]
call fcn.1400d45c0
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
mov eax, 1
xor ecx, ecx
cmp rdx, 0
cmove rax, rcx
cmp rax, 0
jne 0x1400d58d2
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
add rsp, 0x88
ret
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x70], rcx
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rcx]
xor rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
movabs rcx, 0x100000001b3
mov qword [rsp + 0x80], rcx
movabs rcx, 0x100000001b3
imul rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x1400d5894
Function at 0x14010dd50
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3d8], 0
mov qword [rbp + 0x3e0], 2
mov qword [rbp + 0x3e8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3c8], rax
xor esi, esi
xor edi, edi
xor ebx, ebx
cmp r8, 0x201
jae 0x14010ddf0
jmp 0x14010dddf
jae 0x14010deaf
cmp r8, 0x201
jae 0x14010ddf0
mov r14d, 0x200
lea r15, [rbp - 0x58]
mov r12, r8
jmp 0x14010de47
sub r8, rbx
sub rdi, rbx
cmp rdi, r8
jae 0x14010de1f
lea rcx, [rbp + 0x3d8]
mov rdx, rbx
call fcn.140213570
mov rsi, qword [rbp + 0x3d8]
mov rax, qword [rbp + 0x3e0]
mov qword [rbp + 0x3c8], rax
mov eax, 0xffffffff
cmp rsi, rax
mov ebx, 0xffffffff
cmovb rbx, rsi
mov qword [rbp + 0x3e8], rbx
mov rdi, rsi
mov r14, rbx
mov r15, qword [rbp + 0x3c8]
mov r12, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r12d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r13d, eax
test eax, eax
jne 0x14010de70
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14010df1b
mov r8d, r13d
cmp r12, r8
jne 0x14010ddd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14010df4f
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14010dddf
jmp 0x14010ddf0
cmp r14, r8
jb 0x14010df69
lea rcx, [rbp + 0x3a8]
mov rdx, r15
call case.0x14010f09b.169
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3d0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
je 0x14010df04
mov rcx, qword [rbp + 0x3e0]
add rdx, rdx
mov r8d, 2
call fcn.1400079c0
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3d0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
mov rdx, qword [rbp + 0x3d8]
test rdx, rdx
jne 0x14010deef
jmp 0x14010df04
lea rcx, str.internal_error:_entered_unreachable_code_rustc_051478957371ee0084a7c0913941d2a8c4757bb9library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov edx, 0x28
call fcn.1402144e0
jmp 0x14010df7e
lea rax, str.library_std_src_syspalwindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, r8
mov rdx, r14
mov r8, rax
call fcn.140214990
ud2
Function at 0x14010e550
Capabilities:
Set environment variable

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x40], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
mov qword [rbp - 0x18], rcx
mov qword [rbp - 0x10], r8
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], r9
lea rsi, [rbp - 8]
mov rcx, rsi
call fcn.140119f70
mov rax, qword [rbp - 8]
mov rcx, qword [rbp]
movabs r15, 0x8000000000000000
cmp rax, r15
jne 0x14010e5b3
mov rdi, rcx
jmp 0x14010e632
mov qword [rbp + 0x30], rcx
mov qword [rbp + 0x38], rax
lea rcx, [rbp - 8]
mov rdx, rbx
mov r8, rdi
call fcn.140119f70
mov r14, qword [rbp - 8]
mov rbx, qword [rbp]
cmp r14, r15
jne 0x14010e5e9
mov rdi, rbx
mov rdx, qword [rbp + 0x38]
test rdx, rdx
mov r15, qword [rbp + 0x30]
jne 0x14010e621
jmp 0x14010e632
mov r15, qword [rbp + 0x30]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x14010e647
xor edi, edi
test r14, r14
je 0x14010e618
add r14, r14
mov r8d, 2
mov rcx, rbx
mov rdx, r14
call fcn.1400079c0
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x14010e632
add rdx, rdx
mov r8d, 2
mov rcx, r15
call fcn.1400079c0
test rdi, rdi
jne 0x14010e65e
add rsp, 0xc8
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
shl rdi, 0x20
or rdi, 2
test r14, r14
jne 0x14010e604
jmp 0x14010e618
mov qword [rbp + 0x28], rdi
lea rax, [rbp - 0x18]
mov qword [rbp - 8], rax
lea rax, [0x14010ea90]
mov qword [rbp], rax
lea rcx, [rbp - 0x28]
mov qword [rbp + 8], rcx
mov qword [rbp + 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp + 0x18], rax
lea rax, [fcn.14010fbd0]
mov qword [rbp + 0x20], rax
lea rax, str.failed_to_set_environment_variable____to___:
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 3
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], 3
lea rdx, [0x14023f420]
lea rcx, [rbp - 0x58]
call fcn.140214420
ud2

Function at 0x14010f000
Capabilities:
Create directory

Disassembly:
push rbp
mov rbp, rsp
cmp byte [rcx], 0
je 0x14010f015
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.14010f030
mov rcx, rdx
mov rdx, r8
pop rbp
jmp fcn.140117c70
Function at 0x140117c70
Capabilities:
Create directory

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x10]
call fcn.140119f70
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140117cd0
mov rcx, qword [rbp]
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x28]
mov r8b, 1
call fcn.14011ac50
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, rbx
jne 0x140117cdc
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop rbp
ret
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140117d08
test rdi, rdi
je 0x140117d34
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.1400079c0
xor eax, eax
jmp 0x140117cd3
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
test rdi, rdi
je 0x140117cd3
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
mov rsi, rax
call fcn.1400079c0
jmp 0x140117cd0
xor eax, eax
jmp 0x140117cd3
Function at 0x140118810
Capabilities:
Copy file

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
lea rbp, [rsp + 0x80]
mov qword [rbp + 8], 0xfffffffffffffffe
mov rsi, r9
mov rdi, r8
mov r8, rdx
mov rdx, rcx
invalid
lea rcx, [rbp - 0x38]
call fcn.140119f70
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x140118886
mov rcx, qword [rbp - 0x28]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rdx
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.14011ac50
mov rax, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x48]
cmp rax, rbx
jne case.0x1401124c7.177
mov eax, 1
mov qword [rbp], rax
mov qword [rbp - 8], rdx

Function at 0x140118d60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1402409f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140118d98
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x140118def
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0xc0000011
jne 0x140118dfc
xor edx, edx
xor eax, eax
jmp 0x140118e26
cmp eax, 0x103
je 0x140118e30
test eax, eax
js 0x140118e0f
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140118e26
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str._t_n__
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401115d0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14010c1c0
mov ecx, 7
int 0x29
ud2
Function at 0x140118e80
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov rsi, rcx
movups xmm0, xmmword [0x1402409f8]
movaps xmmword [rbp], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
test r9, r9
je 0x140118eb8
mov rcx, qword [rbp + 0x60]
mov qword [rbp - 0x30], rcx
test r9, r9
mov qword [rbp - 0x38], r9
lea rcx, [rbp - 0x30]
cmove rcx, r9
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rax, rbp
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x140118f16
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rbp]
cmp eax, 0x103
je 0x140118f43
test eax, eax
js 0x140118f22
mov rdx, qword [rbp + 8]
xor eax, eax
jmp 0x140118f39
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xa8
pop rsi
pop rbp
ret
mov dword [rbp + 0x18], 0
mov byte [rbp + 0x1c], 0
lea rax, str._t_n__
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 1
lea rax, [rbp + 0x20]
mov qword [rbp - 0x28], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x20], xmm0
lea rcx, [rbp + 0x18]
lea rdx, [rbp - 0x38]
call fcn.1401115d0
mov qword [rbp - 8], rax
lea rcx, [rbp - 8]
call fcn.14010c1c0
mov ecx, 7
int 0x29
ud2