joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009050
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r12, r9
mov r14d, r8d
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rax - 0x38], xmm0
cmp qword [rdx + 0x18], 8
jb 0x14000908f
mov rdx, qword [rdx]
xor r13d, r13d
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r15d, 1
mov r9d, r15d
mov r8d, 0x80000000
lea rcx, [rsp + 0x60]
call fcn.140008290
test eax, eax
jns 0x140009112
cmp qword [rbx + 0x18], 8
jb 0x1400090d3
mov rbx, qword [rbx]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
mov r9d, 3
mov r8d, 0x80000000
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140008290
test eax, eax
jns 0x140009112
xor dil, dil
jmp 0x14000923f
call fcn.140001430
mov rcx, rax
test rax, rax
je 0x14000928e
mov rax, qword [rax]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x4c]
mov rbp, qword [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
mov dword [rsp + 0x48], eax
mov esi, 0xffffffff
cmp eax, 0xffffffff
jne 0x140009166
call fcn.140002720
test eax, eax
js 0x14000927e
mov edi, dword [rsp + 0x48]
cmp r14d, edi
cmovb edi, r14d
lea edx, [rdi + 1]
test edx, edx
js 0x140009283
sub r15d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edx
or eax, r15d
jge 0x140009195
lea rcx, [rsp + 0x40]
call fcn.140009690
mov rbx, qword [rsp + 0x40]
mov dword [rsp + 0xa8], r13d
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xa8]
mov r8d, edi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x140009271
call fcn.140002720
test eax, eax
js 0x14000927e
mov byte [rdi + rbx], 0
test rbp, rbp
je 0x1400091e5
mov rcx, rbp
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rsp + 0x60], r13
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400079e0
nop
mov rdx, qword [rsp + 0x50]
mov rcx, r12
call fcn.140009b90
mov dil, 1
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140009221
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x40]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000923f
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000924f
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx eax, dil
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
cmp dword [rsp + 0xa8], edi
je 0x1400091ce
xor dil, dil
jmp 0x140009226
mov ecx, 0x80070057
call fcn.140002750
nop
mov ecx, 0x80004005
call fcn.140002750
int3
Function at 0x1400098e0
Capabilities:
Check if file exists

Disassembly:
test r8d, r8d
jle 0x1400099df
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
mov qword [rsp + 0x30], rsi
mov rbx, rdx
mov qword [rsp + 0x38], rdi
mov rbp, rcx
lea rdi, [rdx + 4]
mov esi, r8d
nop word [rax + rax]
mov rcx, rdi
call qword [sym.imp.shlwapi.dll_PathFileExistsW]
test eax, eax
je 0x1400099b3
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x50]
cmp qword [rcx + 0x10], rdx
je 0x1400099ab
mov rax, rbx
mov r8d, 8
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm1, xmmword [rax - 0x70]
movups xmmword [rdx - 0x70], xmm1
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x60], xmm0
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x50], xmm1
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x40], xmm0
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x30], xmm1
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x20], xmm0
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x140009940
movups xmm0, xmmword [rax]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdx + 0x10], xmm1
add qword [rcx + 8], 0x420
jmp 0x1400099b3
mov r8, rbx
call fcn.140007750
add rdi, 0x420
add rbx, 0x420
sub rsi, 1
jne 0x140009910
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret
Function at 0x14000aa80
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xe0
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rbx, rcx
mov edx, 0x3ea
mov rcx, qword [rcx + 8]
call qword [sym.imp.user32.dll_IsDlgButtonChecked]
test eax, eax
je 0x14000abe2
call qword [0x1400234f0]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x40]
mov rdi, rax
mov rdx, rax
lea rcx, [rsp + 0xf0]
call fcn.1400016c0
nop
mov rcx, qword [rsp + 0xf0]
mov edx, dword [rcx - 0x10]
test edx, edx
js 0x14000ac46
mov r8d, 1
sub r8d, dword [rcx - 8]
mov eax, dword [rcx - 0xc]
sub eax, edx
or eax, r8d
jge 0x14000ab15
lea rcx, [rsp + 0xf0]
call fcn.140003910
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
mov rcx, qword [rsp + 0xf0]
movsxd rdx, dword [rcx - 0xc]
call fcn.140012778
test eax, eax
js 0x14000ac3b
mov rcx, qword [rsp + 0xf0]
cmp eax, dword [rcx - 0xc]
jg 0x14000ac3b
mov dword [rcx - 0x10], eax
movsxd rcx, eax
xor esi, esi
mov rax, qword [rsp + 0xf0]
mov word [rax + rcx*2], si
xor edx, edx
lea r8d, [rsi + 0x68]
lea rcx, [rsp + 0x70]
call fcn.14000fcc0
mov dword [rsp + 0x70], 0x68
mov eax, 5
mov word [rsp + 0xb0], ax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CreateProcessW]
nop
mov rdx, qword [rsp + 0xf0]
add rdx, 0xffffffffffffffe8
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000abe2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
cmp byte [rbx + 0x98], 0
je 0x14000ac1a
call qword [0x1400234f0]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 8]
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.user32.dll_GetWindowThreadProcessId]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x12]
mov ecx, eax
call qword [sym.imp.user32.dll_PostThreadMessageW]
jmp 0x14000ac26
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.user32.dll_ShowWindow]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, 0x80070057
call fcn.140002750
int3
mov ecx, 0x80070057
call fcn.140002750
int3
Function at 0x14000baa0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x60
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rbp, rcx
mov dword [rax - 0x38], 0
call fcn.140001430
mov rcx, rax
test rax, rax
je 0x14000bc4f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rdx, [0x1400247a0]
mov rdi, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x14000bb0c
movzx edx, dx
lea rcx, [rsp + 0x38]
call fcn.140002f40
jmp 0x14000bb28
mov rax, rdi
nop
inc rax
cmp word [rdx + rax*2], 0
jne 0x14000bb10
mov r8d, eax
lea rcx, [rsp + 0x38]
call fcn.140005610
nop
mov rbx, qword [rsp + 0x38]
mov rcx, qword [rbx - 0x18]
test rcx, rcx
je 0x14000bb44
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
test rax, rax
jne 0x14000bb55
call fcn.140001430
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x20]
mov rcx, rax
test rcx, rcx
je 0x14000bc44
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x30], 1
mov r9, qword [rbp + 0x78]
mov eax, dword [r9 - 0x10]
mov dword [rsp + 0x20], eax
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14000ad80
lea r8, [0x14002479c]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14000a6d0
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000bbc8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, edi
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14000bbe2
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + 8]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
lea r8, str.explorer.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.shell32.dll_ShellExecuteW]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14000bc2a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
mov ecx, 0x80004005
call fcn.140002750
nop
mov ecx, 0x80004005
call fcn.140002750
int3
Function at 0x140015984
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400157b0
Function at 0x14002163b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x98
call fcn.140021837
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov ecx, dword [rax + 0x3c]
mov rax, qword [rsp + 0x88]
movsxd rcx, ecx
add rax, rcx
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
add rax, 0x70
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
mov ecx, dword [rcx]
add rax, rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x5c], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x88]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x20]
mov rax, qword [rsp + 0x88]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 0x24]
mov rax, qword [rsp + 0x88]
mov ecx, ecx
add rax, rcx
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 0
mov eax, dword [rsp + 0x3c]
cmp eax, dword [rsp + 0x5c]
jae 0x140021827
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x3c]
cmp dword [rax + rcx*4], 0
jne 0x140021744
jmp 0x140021817
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x3c]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
cmp eax, dword [rsp + 0x58]
jae 0x140021812
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x34]
movzx eax, word [rax + rcx*2]
cmp eax, dword [rsp + 0x3c]
jne 0x1400217fd
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x34]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x88]
mov ecx, dword [rsp + 0x30]
add rax, rcx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x28]
call fcn.14002190e
cmp rax, 0xe
jne 0x1400217f8
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax]
cmp eax, 0x56
jne 0x1400217f8
mov rax, qword [rsp + 0x28]
movsx eax, byte [rax + 7]
cmp eax, 0x50
jne 0x1400217f8
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x88]
add rax, rcx
mov qword [rsp + 0x90], rax
jmp 0x140021827
jmp 0x1400217fd
jmp 0x140021802
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x14002175c
jmp 0x140021817
mov eax, dword [rsp + 0x3c]
add eax, 1
mov dword [rsp + 0x3c], eax
jmp 0x14002171e
mov rax, qword [rsp + 0x90]
add rsp, 0x98
ret
Function at 0x140021837
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
sub rsp, 0x58
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov qword [rsp + 0x50], rax
mov rax, qword gs:[0x60]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
add rax, 0x38
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 8]
movzx eax, word [rax + 0x18]
cmp eax, 0
jne 0x1400218bd
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x30], rax
jmp 0x1400218cf
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x140021886
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400218f0
mov rax, qword [rsp + 0x20]
add rsp, 0x58
ret
Function at 0x14000be30
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 + 0x3e0], rcx
mov qword [rbp + 0x3c8], 0
mov qword [rbp + 0x3d0], 2
mov qword [rbp + 0x3d8], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor ebx, ebx
xor edi, edi
xor r12d, r12d
cmp r8, 0x201
jae 0x14000bed0
jmp 0x14000bebf
jae 0x14000bf90
cmp r8, 0x201
jae 0x14000bed0
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14000bf28
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14000beff
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140035070
mov rbx, qword [rbp + 0x3c8]
mov rax, qword [rbp + 0x3d0]
mov qword [rbp + 0x3e8], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r12d, 0xffffffff
cmovb r12, rbx
mov qword [rbp + 0x3d8], r12
mov rdi, rbx
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x14000bf51
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000bff8
mov r8d, r14d
cmp r15, r8
jne 0x14000beb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000c025
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14000bebf
jmp 0x14000bed0
cmp rsi, r8
jb 0x14000c03f
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.14000f580
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rbx, rbx
je 0x14000bfe1
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140004ea0
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 + 0x3e0]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
test rbx, rbx
jne 0x14000bfc9
jmp 0x14000bfe1
lea rcx, [0x140038158]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1400359f0
jmp 0x14000c054
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140035e40
ud2
Function at 0x14000c0b0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.1400215d0
mov rax, qword [rbp - 0x58]
movabs rdi, 0x8000000000000000
cmp rax, rdi
jne 0x14000c106
lea rcx, [rbp - 0x50]
call fcn.140006170
mov qword [rsi], rdi
jmp 0x14000c2f1
mov qword [rbp + 0x3c8], rsi
mov qword [rbp + 0x418], rax
mov rax, qword [rbp - 0x50]
mov qword [rbp + 0x408], rax
mov qword [rbp + 0x3f0], 0
mov qword [rbp + 0x3f8], 2
mov qword [rbp + 0x400], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x410], rax
xor ebx, ebx
xor edi, edi
xor r13d, r13d
cmp r8, 0x201
jae 0x14000c190
jmp 0x14000c17f
jae 0x14000c256
cmp r8, 0x201
jae 0x14000c190
mov r15d, 0x200
lea r14, [rbp - 0x58]
mov r12, r8
jmp 0x14000c1e8
sub r8, r13
sub rdi, r13
cmp rdi, r8
jae 0x14000c1bf
lea rcx, [rbp + 0x3f0]
mov rdx, r13
call fcn.140035070
mov rbx, qword [rbp + 0x3f0]
mov rax, qword [rbp + 0x3f8]
mov qword [rbp + 0x410], rax
mov eax, 0xffffffff
cmp rbx, rax
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rbp + 0x400], r13
mov rdi, rbx
mov r15, r13
mov r14, qword [rbp + 0x410]
mov r12, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x408]
mov rdx, r14
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x14000c217
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14000c32b
mov r8d, esi
cmp r12, r8
jne 0x14000c170
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000c366
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000c17f
jmp 0x14000c190
cmp r15, r8
jb 0x14000c380
lea rcx, [rbp + 0x3a8]
mov rdx, r14
call fcn.14000f580
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3e0], xmm1
movaps xmmword [rbp + 0x3d0], xmm0
movabs rdi, 0x8000000000000000
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
je 0x14000c2b8
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
mov rdx, rbx
call fcn.140004ea0
cmp qword [rbp + 0x3d0], rdi
jne 0x14000c308
mov qword [rsi], rdi
lea rcx, [rbp + 0x3d8]
call fcn.140006170
mov rdx, qword [rbp + 0x418]
test rdx, rdx
je 0x14000c2f1
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x408]
call fcn.140004ea0
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3d0]
movaps xmm1, xmmword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x418]
test rdx, rdx
jne 0x14000c2dc
jmp 0x14000c2f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3d8], rax
movabs rdi, 0x8000000000000000
mov qword [rbp + 0x3d0], rdi
test rbx, rbx
mov rsi, qword [rbp + 0x3c8]
jne 0x14000c2a0
jmp 0x14000c2b8
lea rcx, [0x140038158]
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1400359f0
jmp 0x14000c395
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140035e40
ud2
Function at 0x14000d1e0
Capabilities:
Create directory

Disassembly:
cmp byte [rcx], 0
je 0x14000d1f0
mov rcx, rdx
mov rdx, r8
jmp fcn.14000d200
mov rcx, rdx
mov rdx, r8
jmp fcn.1400168e0

Function at 0x140012b10
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x10b8
call fcn.14002fd50
sub rsp, rax
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x1020], xmm6
mov qword [rbp + 0x1018], 0xfffffffffffffffe
mov qword [rbp + 0x1008], rdx
mov r12, rcx
lea r13, [rbp - 0x50]
mov r8d, 0x1000
mov rcx, r13
xor edx, edx
call fcn.140034880
lea rcx, [rbp + 0xfe8]
xorps xmm6, xmm6
lea rbx, [rbp + 0xffc]
lea rsi, [0x14001a6f0]
lea r15, [rbp + 0xfb0]
mov r14, qword [sym.imp.KERNEL32.dll_WriteFileEx]
mov rdi, qword [sym.imp.KERNEL32.dll_SleepEx]
mov qword [rbp + 0x1010], r12
mov r9d, 0x1000
mov rdx, r12
mov r8, r13
call fcn.14001a490
cmp qword [rbp + 0xfe8], 0
jne 0x140012ce7
mov r12, qword [rbp + 0xff0]
test r12, r12
je 0x140012cb3
cmp r12, 0x1000
ja 0x140012d09
xor r13d, r13d
nop word cs:[rax + rax]
mov r8d, r12d
sub r8d, r13d
lea rdx, [r13 - 0x50]
add rdx, rbp
mov dword [rbp + 0xffc], 0
movaps xmmword [rbp + 0xfb0], xmm6
mov qword [rbp + 0xfc0], 0
mov qword [rbp + 0xfc8], rbx
mov qword [rsp + 0x20], rsi
mov rcx, qword [rbp + 0x1008]
mov r9, r15
call r14
test eax, eax
je 0x140012c87
nop word [rax + rax]
mov ecx, 0xffffffff
mov edx, 1
call rdi
cmp dword [rbp + 0xffc], 0
je 0x140012c30
movsxd rax, dword [rbp + 0x1000]
test rax, rax
jne 0x140012c8d
mov eax, dword [rbp + 0x1004]
add r13, rax
cmp r13, r12
je 0x140012c70
jbe 0x140012be0
jmp 0x140012cf5
mov r12, qword [rbp + 0x1010]
lea r13, [rbp - 0x50]
lea rcx, [rbp + 0xfe8]
jmp 0x140012b95
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0xfe0], rax
mov qword [rbp + 0xfd8], 1
lea rcx, [rbp + 0xfe0]
call fcn.140006170
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x1010]
call rsi
mov rcx, qword [rbp + 0x1008]
call rsi
movaps xmm6, xmmword [rbp + 0x1020]
add rsp, 0x10b8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, [rbp + 0xff0]
call fcn.140006170
jmp 0x140012cb3
lea r8, str.library_std_src_syspalwindowspipe.rs
mov rcx, r13
mov rdx, r12
call fcn.140035ec0
jmp 0x140012d1d
lea r8, str.library_std_src_syspalwindowspipe.rs
mov edx, 0x1000
mov rcx, r12
call fcn.140035e40
ud2
Function at 0x1400168e0
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x70
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.1400215d0
mov rax, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
je 0x1400169a1
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x40]
mov r8b, 1
call fcn.1400192d0
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
cmp rdi, rbx
je 0x1400169a1
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x140016975
test rdi, rdi
je 0x140016971
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004ea0
xor esi, esi
jmp 0x1400169a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x14001699e
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140004ea0
mov rsi, rbx
mov rax, rsi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
ret
Function at 0x140017f90
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov rdi, r9
mov rsi, rcx
lea rcx, [rbp - 0x30]
call fcn.1400215d0
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x140018002
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1400192d0
mov rax, qword [rbp - 0x48]
mov rdx, qword [rbp - 0x40]
cmp rax, r14
jne 0x140018020
mov qword [rsi + 8], rdx
mov qword [rsi], 1
mov rax, rsi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 8], rax
mov qword [rbp], rdx
mov r8, qword [rbp + 0x70]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.1400215d0
mov rax, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
cmp rax, r14
je 0x140018072
mov rcx, qword [rbp - 0x20]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rcx
lea rcx, [rbp - 0x48]
lea rdx, [rbp - 0x18]
mov r8b, 1
call fcn.1400192d0
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x40]
cmp rbx, r14
jne 0x1400180a3
mov r14, qword [rbp]
mov r15, qword [rbp + 8]
mov qword [rsi + 8], rdi
mov qword [rsi], 1
test r15, r15
je 0x14001800d
add r15, r15
mov r8d, 2
mov rcx, r14
mov rdx, r15
call fcn.140004ea0
jmp 0x14001800d
mov qword [rbp - 0x18], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r8, [0x140018180]
lea r9, [rbp - 0x18]
mov r14, qword [rbp]
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
mov r15, qword [rbp + 8]
je 0x1400180f5
mov rax, qword [rbp - 0x18]
mov qword [rsi + 8], rax
mov qword [rsi], 0
test rbx, rbx
jne 0x140018117
jmp 0x140018085
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rbx, rbx
je 0x140018085
add rbx, rbx
mov r8d, 2
mov rcx, rdi
mov rdx, rbx
call fcn.140004ea0
jmp 0x140018085