joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003c354
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400222b4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14003c3de
cmp byte [rbp - 0x21], r15b
je 0x14003c3d9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003c414
call fcn.14002ca28
test eax, eax
jne 0x14003c400
cmp byte [rbp - 0x21], r15b
je 0x14003c3f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003c414
cmp byte [rbp - 0x21], r15b
je 0x14003c411
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400286fc
test eax, eax
jne 0x14003c4b4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400222b4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14003c453
cmp byte [rbp - 0x21], r15b
je 0x14003c488
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14003c488
call fcn.14002ca28
test eax, eax
jne 0x14003c474
cmp byte [rbp - 0x21], r15b
je 0x14003c46d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14003c488
cmp byte [rbp - 0x21], r15b
je 0x14003c485
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400286fc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003c4b4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003c4b7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003c4c5
mov rcx, rdi
call fcn.14002c724
cmp byte [rbp + 0x3f], r15b
je 0x14003c4d4
mov rcx, qword [rbp + 0x27]
call fcn.14002c724
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14003d2e0
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140031ecc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140031ecc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003d430
cmp rax, 0xffffffffffffffff
je 0x14003d430
xor edi, edi
test rbp, rbp
jle 0x14003d3db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002c6ac
mov rbx, rax
test rax, rax
jne 0x14003d368
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003d3d1
mov edx, 0x8000
mov ecx, r14d
call fcn.140029ad4
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400303ec
cmp eax, 0xffffffff
je 0x14003d3b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003d378
mov edx, r15d
mov ecx, r14d
call fcn.140029ad4
jmp 0x14003d3d1
cmp byte [rsi + 0x38], dil
je 0x14003d3c8
cmp dword [rsi + 0x34], 5
jne 0x14003d3c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003d3d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002c724
jmp 0x14003d444
jns 0x14003d444
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140031ecc
cmp rax, 0xffffffffffffffff
jne 0x14003d3fc
cmp byte [rsi + 0x30], dil
je 0x14003d444
mov edi, dword [rsi + 0x2c]
jmp 0x14003d444
mov ecx, r14d
call fcn.140036098
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003d444
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14003d444
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003d43d
mov eax, dword [rsi + 0x2c]
jmp 0x14003d442
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140031ecc
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14003dfd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003dff8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003dff8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140044330
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14004433d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004434d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140044335
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140044365
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140044352
sub eax, 3
jb 0x14004437f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400443b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400443a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400443a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140044393
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400442f2
jmp 0x14004433d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140044402
cmp rsi, rcx
jae 0x14004440a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400443e9
cmp al, 0x8f
ja 0x1400443e9
cmp byte [rsi - 2], 0xf
je 0x1400443ef
sub al, 0xe8
cmp al, 1
ja 0x1400443d3
cmp rsi, rcx
jae 0x14004440a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400443d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14004440a
lodsb al, byte [rsi]
jmp 0x1400443e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x42000]
mov eax, dword [rdi]
or eax, eax
je 0x140044473
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x53b50]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140044417
jns 0x14004444c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140044456
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004446d
mov qword [rbx], rax
add rbx, 8
jmp 0x140044437
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400444cb
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x14002bec0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rbp, rbx
test rcx, rcx
je 0x14002bf9a
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
or rcx, 0xffffffffffffffff
mov rdi, rsi
mov r12d, eax
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea rdx, [rcx - 1]
lea ecx, [r12 + 1]
add rdx, rcx
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x14002bf9d
mov edx, r12d
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
lea ecx, [rax - 1]
cmp word [rbp + rcx*2], 0x5c
je 0x14002bf4c
mov ecx, eax
mov edx, 0x5c
inc eax
mov word [rbp + rcx*2], dx
or rcx, 0xffffffffffffffff
movsxd r8, eax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14002bf9a
mov rdx, rsi
lea r8, [rbp + r8*2]
nop dword [rax]
movzx eax, word [rdx]
or rcx, 0xffffffffffffffff
inc ebx
mov word [r8], ax
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov eax, ebx
add rdx, 2
not rcx
add r8, 2
dec rcx
cmp rax, rcx
jb 0x14002bf70
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14002d190
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
mov ecx, 0x40
mov edx, eax
mov edi, eax
add rdx, rdx
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x14002d1f2
mov edx, edi
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
je 0x14002d1e7
cmp edi, eax
jb 0x14002d1e7
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002eb70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov rax, qword [0x140283ed0]
xor esi, esi
mov rdi, r8
mov r12, rdx
mov ebp, ecx
test rax, rax
jne 0x14002ebb9
lea rcx, str.Setupapi.dll
xor edx, edx
call fcn.14002dd50
mov qword [0x140283ed0], rax
test rax, rax
je 0x14002ec96
cmp qword [0x140283ed8], rsi
jne 0x14002ebe9
lea rdx, str.SetupDiGetClassDevsW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140283ed8], rax
test rax, rax
je 0x14002ec96
mov rax, qword [0x140283ed0]
cmp qword [0x140283ee0], rsi
jne 0x14002ec19
lea rdx, str.SetupDiEnumDeviceInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140283ee0], rax
test rax, rax
je 0x14002ec96
mov rax, qword [0x140283ed0]
cmp qword [0x140283ef0], rsi
jne 0x14002ec45
lea rdx, str.SetupDiGetDeviceRegistryPropertyW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140283ef0], rax
test rax, rax
je 0x14002ec96
mov rax, qword [0x140283ed0]
cmp qword [0x140283ee8], rsi
jne 0x14002ec71
lea rdx, str.SetupDiGetDeviceInterfaceDetailW
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140283ee8], rax
test rax, rax
je 0x14002ec96
mov rax, qword [0x140283ed0]
cmp qword [0x140283f00], rsi
jne 0x14002ec9d
lea rdx, str.SetupDiDestroyDeviceInfoList
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [0x140283f00], rax
test rax, rax
jne 0x14002ec9d
xor eax, eax
jmp 0x14002ed3d
mov r9d, 6
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
call qword [0x140283ed8]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002ed36
xor eax, eax
mov r8, rdi
xor edx, edx
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov rcx, rbx
mov dword [rdi], 0x20
call qword [0x140283ee0]
test eax, eax
je 0x14002ed2d
nop word [rax + rax]
mov r8, rdi
mov rdx, rbx
mov ecx, ebp
call fcn.14002d420
cmp eax, 1
je 0x14002ed53
xor eax, eax
inc esi
mov r8, rdi
mov qword [rdi], rax
mov qword [rdi + 8], rax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rax
mov edx, esi
mov rcx, rbx
mov dword [rdi], 0x20
call qword [0x140283ee0]
test eax, eax
jne 0x14002ecf0
mov rcx, rbx
call qword [0x140283f00]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
mov qword [r12], rbx
mov eax, 1
jmp 0x14002ed38
Function at 0x140033910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r12
sub rsp, 0x40
mov rbx, rcx
xor ecx, ecx
mov ebp, r8d
mov r12d, edx
xor edi, edi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test rbx, rbx
je 0x140033a82
movzx eax, word [rbx]
cmp ax, 0x5c
je 0x140033977
cmp ax, 0x2f
je 0x140033977
movzx ecx, ax
call fcn.140113480
test eax, eax
je 0x140033a82
cmp word [rbx + 2], 0x3a
jne 0x140033a82
movzx eax, word [rbx + 4]
cmp ax, 0x5c
je 0x140033977
cmp ax, 0x2f
jne 0x140033a82
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140033a66
test al, 0x50
jne 0x140033a66
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, rbx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400339e4
lea ecx, [rax + 0x21]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
lea rdx, [rsp + 0x60]
test ebp, ebp
mov rcx, rbx
cmove rdx, rdi
mov dword [rsp + 0x60], edi
call fcn.1400329b0
test eax, eax
je 0x140033a14
test ebp, ebp
je 0x140033a28
cmp dword [rsp + 0x60], edi
jne 0x140033a28
mov ecx, 0x80092009
call qword [sym.imp.KERNEL32.DLL_SetLastError]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rbx
mov edx, eax
call fcn.140032f90
test eax, eax
je 0x140033a40
and r12d, 0xffffe8f7
xor edx, edx
mov rcx, rbx
mov r8d, r12d
call qword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov rdi, rax
test rsi, rsi
je 0x140033a5e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
jmp 0x1400339d1
mov ecx, 0x7e
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbx, qword [rsp + 0x70]
mov rax, rdi
add rsp, 0x40
pop r12
pop rdi
pop rbp
ret
Function at 0x140034980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.DLL_SetLastError]
test rdi, rdi
je 0x140034b8d
mov rcx, rdi
call fcn.14002c070
test eax, eax
jne 0x140034b8d
mov rcx, rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
call fcn.1400346c0
mov rbp, rax
test rax, rax
je 0x140034a9e
mov qword [rsp + 0x50], r12
call fcn.14002d190
mov r12, rax
test rax, rax
je 0x140034a8b
mov rcx, rbp
call fcn.14002c070
test eax, eax
je 0x140034a74
lea rax, str.system32_
lea rbx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
lea rax, str.SystemRoot_system32_
mov qword [rsp + 0x28], rax
mov rdx, qword [rbx]
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdi, [rcx - 1]
mov rcx, rbp
call fcn.14014a0e0
test eax, eax
je 0x140034a47
lea rax, [rsp + 0x30]
add rbx, 8
cmp rbx, rax
jb 0x140034a11
jmp 0x140034a57
lea rdx, [rbp + rdi*2]
mov rcx, r12
call fcn.1400337a0
mov rsi, rax
lea rax, [rsp + 0x30]
cmp rbx, rax
jne 0x140034a82
mov rcx, rbp
call fcn.14002c0d0
test eax, eax
je 0x140034a82
mov rsi, rbp
xor ebp, ebp
jmp 0x140034a82
mov rdx, rbp
mov rcx, r12
call fcn.1400337a0
mov rsi, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov r12, qword [rsp + 0x50]
jmp 0x140034b3d
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x7e
jne 0x140034b62
mov rcx, rdi
call fcn.14002ed60
mov rbx, rax
test rax, rax
je 0x140034b62
mov ecx, 0x37e4
call fcn.14002e940
test eax, eax
je 0x140034adb
xor ecx, ecx
call fcn.1400334c0
mov rdi, rax
jmp 0x140034ae3
call fcn.14002d190
mov rdi, rax
test rdi, rdi
je 0x140034b34
mov rdx, rbx
mov rcx, rdi
call fcn.1400337a0
mov rsi, rax
test rax, rax
je 0x140034b2b
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140034b0d
test al, 0x50
je 0x140034b2b
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x140034b20
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
xor esi, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_LocalFree]
test rsi, rsi
je 0x140034b62
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call qword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x140034b75
lea ecx, [rax + 0x7e]
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov ecx, 0xa0
call qword [sym.imp.KERNEL32.DLL_SetLastError]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140035320
Capabilities:
Create thread

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
sub rsp, 0x40
mov r13, rcx
mov rbp, r8
mov ecx, 0x39
mov r12, rdx
call fcn.1401120e8
mov rbx, rax
test rax, rax
je 0x14003551d
xorps xmm0, xmm0
mov qword [rsp + 0x70], rsi
movups xmmword [rbx], xmm0
xor eax, eax
mov qword [rsp + 0x78], r14
movups xmmword [rbx + 0x10], xmm0
mov qword [rsp + 0x80], r15
movups xmmword [rbx + 0x20], xmm0
mov qword [rbx + 0x30], rax
lea ecx, [rax + 0x24]
mov byte [rbx + 0x38], al
call fcn.1401120e8
xor r15d, r15d
lea rsi, [rbx + 8]
mov r14, rax
test rax, rax
je 0x14003546a
mov qword [rax], r15
lea edx, [r15 + 1]
mov qword [rax + 8], r15
xor r9d, r9d
mov qword [rax + 0x18], r15
xor r8d, r8d
mov dword [rax + 0x20], r15d
xor ecx, ecx
mov qword [rsi], rax
mov rax, qword [rbx + 0x20]
mov qword [r14 + 0x10], rax
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
mov qword [r14], rax
test rax, rax
jne 0x1400353cd
mov edi, 0x3f0
jmp 0x14003546f
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rdx, qword [r14]
mov r9, rbx
mov dword [rsp + 0x30], r15d
mov r8, rax
mov rcx, rax
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
jne 0x140035402
mov edi, 0x3f0
jmp 0x14003546f
mov ecx, 0x10
mov edi, r15d
call fcn.1401120e8
mov r15, rax
test rax, rax
jne 0x14003541e
mov edi, 0x708
jmp 0x140035461
lea rax, [0x140035690]
mov qword [r15 + 8], r14
mov qword [r15], rax
lea r8, [0x140035c80]
xor eax, eax
mov r9, r15
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [r14 + 8], rax
test rax, rax
jne 0x140035461
mov rcx, r15
call fcn.1401120d4
mov edi, 0x3eb
test edi, edi
je 0x1400354b6
xor r15d, r15d
jmp 0x14003546f
mov edi, 0x708
mov rax, qword [rsi]
test rax, rax
je 0x14003547e
mov dword [rax + 0x20], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140035498
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], r15
test r14, r14
je 0x1400354b6
mov rcx, qword [r14]
test rcx, rcx
je 0x1400354ae
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [r14], r15
mov rcx, r14
call fcn.1401120d4
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x78]
test edi, edi
jne 0x1400354e6
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r12
mov qword [rbp], rbx
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov rax, qword [rsi]
test rax, rax
je 0x1400354f5
mov dword [rax + 0x20], 1
mov rcx, qword [rbx]
test rcx, rcx
je 0x140035513
call qword [sym.imp.KERNEL32.DLL_SetEvent]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov qword [rbx], 0
mov rcx, rbx
call fcn.1401120d4
jmp 0x1400354d3
mov eax, 0x708
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
Function at 0x140039630
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push rdi
sub rsp, 0x170
mov rax, qword [0x14027df48]
xor rax, rsp
mov qword [rsp + 0x160], rax
xorps xmm0, xmm0
mov rdi, rcx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400396a3
bt eax, 0xa
jae 0x1400396a3
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14003968d
test al, 0x10
je 0x14003968d
mov rcx, rdi
call fcn.14012fc74
jmp 0x140039695
mov rcx, rdi
call fcn.140114a3c
test eax, eax
je 0x1400396a3
mov eax, 0x1f
jmp 0x140039817
mov rcx, rdi
mov qword [rsp + 0x188], rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400396e7
bt eax, 0xa
jae 0x1400396e7
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400396db
test al, 0x10
je 0x1400396db
mov rcx, rdi
call fcn.14012fc74
jmp 0x1400396e3
mov rcx, rdi
call fcn.140114a3c
test eax, eax
jne 0x1400396fe
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14012f72c
mov ebx, eax
test eax, eax
je 0x14003980d
test rdi, rdi
jne 0x140039707
xor ebx, ebx
jmp 0x140039717
mov edx, 0x104
mov rcx, rdi
call fcn.14012c6b8
mov rbx, rax
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x104
call fcn.140104310
mov r9, 0xffffffffffffffff
lea rcx, [rsp + 0x50]
mov r8, rdi
mov edx, 0x104
call fcn.1401121b8
lea rcx, [rbx - 2]
cmp rcx, 0x102
ja 0x14003976b
cmp byte [rsp + rbx + 0x4f], 0x5c
jne 0x14003976b
dec rbx
cmp rbx, 0x104
jae 0x140039830
mov byte [rsp + rbx + 0x50], 0
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400397af
bt eax, 0xa
jae 0x1400397af
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400397a1
test al, 0x10
je 0x1400397a1
lea rcx, [rsp + 0x50]
call fcn.14012fc74
jmp 0x1400397ab
lea rcx, [rsp + 0x50]
call fcn.140114a3c
test eax, eax
jne 0x1400397c4
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.14012f72c
mov ebx, eax
test eax, eax
je 0x14003980d
lea rcx, [rsp + 0x50]
call fcn.14012f9f0
mov ebx, eax
test eax, eax
je 0x14003980d
mov edx, 0x5c
lea rcx, [rsp + 0x50]
call fcn.140104a18
mov rdi, rax
test rax, rax
je 0x14003980d
lea rcx, [rsp + 0x50]
mov byte [rax], 0
call fcn.140039630
mov ebx, eax
test eax, eax
jne 0x14003980d
lea rcx, [rsp + 0x50]
mov byte [rdi], 0x5c
call fcn.14012f9f0
mov ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140102a00
add rsp, 0x170
pop rdi
ret
call fcn.140102b64
int3