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

Disassembly:
push rbx
push rsi
push r12
push r14
sub rsp, 0x68
xor ebx, ebx
mov r12d, r8d
mov qword [rdx], rbx
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], ebx
jne 0x1400361fb
xor eax, eax
add rsp, 0x68
pop r14
pop r12
pop rsi
pop rbx
ret
mov rcx, qword [rcx + 0x28]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x58], rdi
lea r8d, [r9 + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14003627d
lea rdx, [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140036264
lea r9, [rsp + 0xa8]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x140036292
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsp + 0x58]
mov eax, 0xffffffff
add rsp, 0x68
pop r14
pop r12
pop rsi
pop rbx
ret
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x60], rbp
mov ebp, ebx
mov qword [rsp + 0x50], r15
cmp rax, qword [rsi + 0x20]
je 0x1400362b5
mov ebp, 1
mov qword [rsi + 0x20], rax
lea rdx, [rsi + 0x18]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
je 0x1400362d9
mov rax, qword [rsp + 0xa8]
mov qword [rsi + 0x18], rax
jmp 0x1400362e6
test ebp, ebp
jne 0x1400362e6
test r12d, r12d
je 0x14003638b
mov rcx, qword [rsp + 0x98]
inc rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8d, dword [rsp + 0x98]
lea r9, [rsp + 0x90]
mov rdx, rax
mov qword [rsp + 0x20], rbx
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140036347
call fcn.140036100
mov rdx, qword [rsi + 0x28]
lea rcx, str.ERROR:_ReadFile___failed_for__s:__s
mov r8, rax
call fcn.14004cfd0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, 0xffffffff
jmp 0x14003638b
mov r9d, dword [rsp + 0x90]
mov rax, qword [rsp + 0x98]
cmp r9, rax
je 0x14003637f
mov rdx, qword [rsi + 0x28]
lea rcx, str.ERROR:_ReadFile___failed_for__s:_nexpected__ld_bytes__got__ld
mov r8d, eax
call fcn.14004cfd0
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, 0xffffffff
jmp 0x14003638b
mov byte [r9 + rbp], bl
mov ebx, 1
mov qword [r14], rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x50]
mov eax, ebx
mov rbp, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x58]
add rsp, 0x68
pop r14
pop r12
pop rsi
pop rbx
ret
Function at 0x140036870
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140159ee8], 0
mov rdi, rcx
mov rbx, qword [rcx + 0x28]
je 0x1400368a4
test rbx, rbx
lea rdx, str._empty_
lea rcx, str.remove_tmpfile____s_n
cmovne rdx, rbx
call fcn.140010500
test rbx, rbx
je 0x140036933
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400368fd
test al, 0x10
jne 0x1400368fd
cmp dword [0x140159ee8], 0
je 0x1400368d7
mov rdx, rbx
lea rcx, str.Removing_tmpfile__s_n
call fcn.140010500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140036915
call fcn.140036100
mov r8, rax
lea rcx, str.WARNING:_Cant_DeleteFile____s:__s
mov rdx, rbx
call fcn.14004cfd0
jmp 0x140036933
cmp dword [0x140159ee8], 0
je 0x140036915
mov rdx, rbx
lea rcx, str.remove_tmpfile__:_is_file__s__failed_n
call fcn.140010500
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x140036924
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xorps xmm0, xmm0
mov qword [rdi + 0x28], 0
movups xmmword [rdi + 0x18], xmm0
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov eax, dword [0x140166d10]
dec eax
mov dword [0x140166d10], eax
test eax, eax
jg 0x140036993
mov rcx, qword [0x140166d18]
test rcx, rcx
je 0x140036993
cmp dword [0x140159ee8], 0
je 0x14003698c
lea rcx, str.____TIMER:_STOPPING_UPDATES_n
call fcn.140010500
mov rcx, qword [0x140166d18]
xor edx, edx
call fcn.140044d70
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140036b10
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.140036c40
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140036b37
test al, 0x10
jne 0x140036b6a
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140036b6a
call fcn.140036100
mov r8, rax
lea rcx, str.cant_create_directory__s:__s
mov rdx, rbx
call fcn.14004cfd0
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
test rbx, rbx
jne 0x140036b7c
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rax, qword [str..cxx]
lea r8, str._s_p_s
mov qword [rsp + 0x28], rax
lea rcx, [0x140167190]
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov edx, 0x200
call fcn.140036ce0
mov rbx, qword [rsp + 0x40]
lea rax, [0x140167190]
mov byte [0x14016738f], 0
add rsp, 0x30
pop rdi
ret
Function at 0x140036bd0
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140036c40
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x140036c31
test al, 0x10
je 0x140036c31
cmp dword [0x140159ee8], 0
je 0x140036c08
mov rdx, rbx
lea rcx, str.Removing_tmpdir__s_n
call fcn.140010500
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x140036c31
call fcn.140036100
mov r8, rax
lea rcx, str.WARNING:_Cant_RemoveDirectory____s:__s
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp fcn.14004cfd0
add rsp, 0x20
pop rbx
ret

Function at 0x140036c40
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0xa0], rax
lea rdx, [rsp + 0x30]
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x140036c7b
movups xmm0, xmmword [str.c:windows_temp]
movaps xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rbx, [0x140167120]
mov edx, 0x64
lea r9, [rsp + 0x30]
mov dword [rsp + 0x20], eax
mov rcx, rbx
lea r8, str._s.fluid__ld
call fcn.140036ce0
cmp dword [0x140159ee8], 0
je 0x140036cbd
mov rdx, rbx
lea rcx, str.tmpdir_name__:__s_n
call fcn.140010500
mov rax, rbx
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0xb0
pop rbx
ret
Function at 0x1400392a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov r15, qword [rsp + 0xb0]
mov r14, r8
mov r8, qword [rsp + 0xb8]
mov rdi, r14
mov r13, qword [rsp + 0xc0]
mov rsi, rcx
movsxd r12, edx
add r12, rcx
mov dword [rsp + 0x24], r9d
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], r8
cmp rcx, r12
jae 0x1400393ff
movsxd rbp, r9d
cmp rdi, qword [r15]
jb 0x140039332
mov r9, r8
mov edx, 1
mov r8, rbp
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movsxd rcx, eax
add rcx, r14
mov qword [r15], rcx
test eax, eax
je 0x140039416
mov rdi, r14
movzx ecx, byte [rdi]
call fcn.1400427f0
mov r8, qword [r15]
movsxd rbx, eax
lea rax, [rdi + rbx]
cmp rax, r8
jbe 0x14003938d
sub r8, rdi
mov rdx, rdi
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
mov r9, qword [rsp + 0x30]
mov rax, r14
sub rax, rdi
mov edx, 1
add qword [r15], rax
mov rcx, qword [r15]
sub rbp, rcx
lea r8, [r14 + rbp]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cdqe
mov rdi, r14
add qword [r15], rax
mov rax, qword [r15]
sub rax, r14
cmp rax, rbx
jl 0x1400393ff
test ebx, ebx
jle 0x1400393eb
mov edx, ebx
lea r8, [rsp + 0x20]
add rdx, rdi
mov rcx, rdi
call fcn.140042520
lea rdx, [rsp + 0x38]
mov ecx, eax
call fcn.140042690
cmp dword [rsp + 0x20], ebx
jne 0x1400393b9
cmp eax, ebx
je 0x1400393c1
mov dword [r13], 1
movsxd r8, eax
lea rbp, [r8 + rsi]
cmp rbp, r12
ja 0x1400393ff
lea rdx, [rsp + 0x38]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
movsxd rcx, dword [rsp + 0x20]
mov rsi, rbp
add rdi, rcx
sub ebx, ecx
test ebx, ebx
jg 0x140039391
cmp rsi, r12
jae 0x1400393ff
mov r8, qword [rsp + 0x30]
mov r9d, dword [rsp + 0x24]
jmp 0x140039302
mov r8, qword [r15]
mov rdx, rdi
sub r8, rdi
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
sub r14, rdi
add qword [r15], r14
sub esi, dword [rsp + 0x28]
mov eax, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400fbfe0
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140047120
Capabilities:
Write file on windows

Disassembly:
push rsi
push r14
sub rsp, 0x28
mov r14, rcx
mov qword [rsp + 0x48], rbp
mov rcx, qword [rcx + 8]
mov rsi, rdx
test rcx, rcx
je 0x140047141
call fcn.140047120
mov r8, qword [r14 + 0x18]
lea rdx, str._n__s__n_n
mov rcx, rsi
call fcn.14000a030
xor ebp, ebp
cmp dword [r14 + 0x28], ebp
jle 0x1400472e2
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x20], r15
xor r15d, r15d
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r14 + 0x20]
mov rcx, rsi
mov rdi, qword [r15 + rax + 8]
mov r8, qword [r15 + rax]
test rdi, rdi
je 0x1400472b7
lea rdx, [0x140116128]
call fcn.14000a030
xor ebx, ebx
lea rax, [rdi + 2]
nop dword [rax + rax]
cmp byte [rax - 2], 0
je 0x1400471fe
cmp byte [rax - 1], 0
je 0x1400471fb
cmp byte [rax], 0
je 0x1400471f5
cmp byte [rax + 1], 0
je 0x1400471ef
cmp byte [rax + 2], 0
je 0x1400471e9
cmp byte [rax + 3], 0
je 0x1400471e3
add rbx, 6
add rax, 6
cmp rbx, 0x3c
jb 0x1400471b0
jmp 0x1400471fe
add rbx, 5
jmp 0x1400471fe
add rbx, 4
jmp 0x1400471fe
add rbx, 3
jmp 0x1400471fe
add rbx, 2
jmp 0x1400471fe
inc rbx
mov r9, rsi
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rdx, [0x140100778]
mov rcx, rsi
call fcn.14000a030
add rdi, rbx
cmp byte [rdi], 0
je 0x1400472c3
nop
xor ebx, ebx
lea rax, [rdi + 2]
cmp byte [rax - 2], 0
je 0x140047278
cmp byte [rax - 1], 0
je 0x140047275
cmp byte [rax], 0
je 0x14004726f
cmp byte [rax + 1], 0
je 0x140047269
cmp byte [rax + 2], 0
je 0x140047263
add rbx, 5
add rax, 5
cmp rbx, 0x50
jb 0x140047236
jmp 0x140047278
add rbx, 4
jmp 0x140047278
add rbx, 3
jmp 0x140047278
add rbx, 2
jmp 0x140047278
inc rbx
mov rdx, rsi
mov ecx, 0x2b
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov r9, rsi
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rdx, rsi
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add rdi, rbx
cmp byte [rdi], 0
jne 0x140047230
jmp 0x1400472c3
lea rdx, [0x14010148c]
call fcn.14000a030
inc ebp
add r15, 0x10
cmp ebp, dword [r14 + 0x28]
jl 0x140047180
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
mov rcx, qword [r14]
mov rbp, qword [rsp + 0x48]
test rcx, rcx
je 0x1400472f7
mov rdx, rsi
call fcn.140047120
and byte [r14 + 0x30], 0xfe
xor eax, eax
add rsp, 0x28
pop r14
pop rsi
ret
Function at 0x14006c470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rbx, rcx
mov edi, r8d
mov rcx, qword [rcx + 0x130]
mov ebp, edx
test rcx, rcx
je 0x14006c650
cmp qword [rcx], 0
je 0x14006c650
sub ebp, dword [rbx + 0x20]
sub edi, dword [rbx + 0x24]
js 0x14006c650
cmp edi, dword [rbx + 0x2c]
jge 0x14006c650
cmp dword [rbx + 0x118], 0
jne 0x14006c61d
xor r14d, r14d
mov edi, 3
mov esi, r14d
call fcn.14006c720
mov rbx, rax
mov rax, qword [rax]
test rax, rax
je 0x14006c650
mov r8d, dword [0x1401504c8]
nop dword [rax]
mov edx, dword [rbx + 0x2c]
xorps xmm0, xmm0
mov rcx, qword [0x140168110]
mov qword [rsp + 0x20], rax
movzx eax, byte [rbx + 0x24]
mov byte [rsp + 0x48], al
movdqu xmmword [rsp + 0x28], xmm0
test edx, edx
jne 0x14006c5c4
cmp dword [rbx + 0x28], r14d
jne 0x14006c5c4
test rcx, rcx
je 0x14006c542
mov eax, dword [rcx + 0x8c]
mov dword [rsp + 0x38], eax
test rcx, rcx
je 0x14006c547
mov eax, dword [rcx + 0x90]
mov dword [rsp + 0x3c], eax
jmp 0x14006c54c
mov dword [rsp + 0x38], r14d
mov dword [rsp + 0x3c], r8d
lea r8, [rsp + 0x88]
mov dword [rsp + 0x40], r14d
lea rdx, [rsp + 0x70]
mov byte [0x140167fa8], 1
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x70], r14d
mov dword [rsp + 0x88], r14d
call fcn.1400676c0
mov r8d, dword [0x1401504c8]
mov eax, dword [rsp + 0x70]
mov byte [0x140167fa8], r14b
mov edx, dword [rbx + 0x20]
test dl, 0xa
je 0x14006c59d
add eax, r8d
mov dword [rsp + 0x70], eax
add edi, 0x10
add edi, eax
cmp edi, ebp
jg 0x14006c619
shr edx, 4
mov rcx, rbx
and edx, 1
inc edx
mov rbx, rcx
mov eax, r14d
cmp qword [rbx], r14
jne 0x14006c5dc
test eax, eax
je 0x14006c5ec
dec eax
jmp 0x14006c5e4
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x38], eax
test edx, edx
je 0x14006c531
mov dword [rsp + 0x3c], edx
jmp 0x14006c54c
test byte [rbx + 0x20], 0x40
je 0x14006c5e4
inc eax
add rbx, 0x38
test eax, eax
jne 0x14006c5b7
mov eax, dword [rbx + 0x20]
mov rcx, rbx
shr eax, 4
not eax
test al, 1
jne 0x14006c603
mov rax, qword [rbx]
test rax, rax
jne 0x14006c608
mov rax, qword [rbx]
dec edx
test edx, edx
jne 0x14006c5b1
inc esi
test rax, rax
jne 0x14006c4f0
jmp 0x14006c650
mov eax, esi
jmp 0x14006c655
movzx ecx, byte [rbx + 0x6e]
call fcn.140059560
cmp ebp, eax
jl 0x14006c650
cmp ebp, dword [rbx + 0x28]
jge 0x14006c650
movzx ecx, byte [rbx + 0x6e]
call fcn.140059560
sub edi, eax
lea eax, [rdi - 1]
cdq
idiv dword [rbx + 0x118]
test eax, eax
js 0x14006c650
cmp eax, dword [rbx + 0x11c]
jl 0x14006c655
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
Function at 0x14006f500
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140153558]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov rcx, qword [rcx + 0x30]
test rcx, rcx
je 0x14006f6ea
lea rdx, [0x140101508]
mov qword [rsp + 0x98], rdi
call fcn.140042140
mov rdi, rax
test rax, rax
je 0x14006f6e2
mov edx, 1
mov qword [rsp + 0x88], rbp
mov r9, rax
mov qword [rsp + 0x90], rsi
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x3f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [rsp + 0x20]
cmp eax, 0x66656423
jne 0x14006f5b2
cmp word [rsp + 0x24], 0x6e69
jne 0x14006f5b2
cmp byte [rsp + 0x26], 0x65
jne 0x14006f5b2
mov ecx, 0x50
call fcn.1400fbf00
test rax, rax
je 0x14006f6d2
mov rdx, qword [rbx + 0x30]
mov rcx, rax
call fcn.1400a0b30
jmp 0x14006f5e7
movabs rcx, 0x2a204d5058202a2f
cmp rax, rcx
jne 0x14006f626
cmp byte [rsp + 0x28], 0x2f
jne 0x14006f626
mov ecx, 0x50
call fcn.1400fbf00
test rax, rax
je 0x14006f6d2
mov rdx, qword [rbx + 0x30]
mov rcx, rax
call fcn.1400a0d70
mov rsi, rax
test rax, rax
je 0x14006f6d2
cmp dword [rbx + 0x48], 0
je 0x14006f60d
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x14006f60d
mov rax, qword [rcx]
mov edx, 1
call qword [rax + select]
mov edx, dword [rbx + 8]
mov dword [rbx + 0x48], 1
cmp dword [rsi + 8], edx
je 0x14006f671
test edx, edx
je 0x14006f671
lea rdi, [rbx + 0xc]
jmp 0x14006f681
xor edi, edi
cmp dword [0x140168608], edi
jle 0x14006f6d2
mov ebp, edi
nop word [rax + rax]
mov rax, qword [0x140168600]
lea rdx, [rsp + 0x20]
mov rcx, qword [rbx + 0x30]
mov r8d, 0x40
call qword [rax + rbp]
mov rsi, rax
test rax, rax
jne 0x14006f5f3
inc edi
add rbp, 8
cmp edi, dword [0x140168608]
jl 0x14006f640
jmp 0x14006f6d2
mov eax, dword [rbx + 0xc]
lea rdi, [rbx + 0xc]
cmp dword [rsi + 0xc], eax
je 0x14006f6a1
test eax, eax
je 0x14006f6a1
mov rax, qword [rsi]
mov rcx, rsi
mov r8d, dword [rdi]
call qword [rax + 0x18]
mov r8, qword [rsi]
mov edx, 1
mov rcx, rsi
mov rbp, rax
call qword [r8 + select]
jmp 0x14006f6a4
mov rbp, rsi
mov qword [rbx + 0x40], rbp
test rbp, rbp
je 0x14006f6d2
mov eax, dword [rbp + 8]
mov dword [rbx + 8], eax
mov dword [rbx + 0x1c], eax
mov eax, dword [rbp + 0xc]
mov dword [rdi], eax
mov dword [rbx + 0x20], eax
mov eax, dword [rbp + 0x10]
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0x18]
mov qword [rbx + 0x28], rax
mov dword [rbx + 0x18], ecx
mov rsi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400fbfe0
add rsp, 0x70
pop rbx
ret
Function at 0x14008b0f0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor esi, esi
mov rbp, r8
mov r14, rdx
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r15, qword [rsp + 0x60]
lea ebx, [rsi + 0x41]
mov edi, eax
test dil, 1
je 0x14008b148
mov r8d, ebx
lea rdx, str._c:_
mov rcx, rbp
call fcn.14000a080
mov r8, r15
mov rdx, rbp
mov rcx, r14
call fcn.140074840
inc esi
inc ebx
shr edi, 1
cmp ebx, 0x5a
jle 0x14008b120
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x14008bda0
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], 0
jne 0x14008bdc0
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov rcx, rsi
call fcn.140042830
mov rcx, qword [0x140168cf8]
lea edi, [rax + 1]
mov edx, edi
add rdx, rdx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov r9d, edi
mov edx, ebx
mov r8, rax
mov qword [0x140168cf8], rax
mov rcx, rsi
call fcn.140042830
mov ecx, eax
xor edx, edx
mov rax, qword [0x140168cf8]
mov word [rax + rcx*2], dx
mov rcx, qword [0x140168cf8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
Function at 0x14008c230
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, r8
mov rdi, rdx
test r8, r8
je 0x14008c25a
movsxd rdx, r9d
lea r8, str.open__s
mov r9, rdi
mov rcx, rax
call fcn.14005ba90
xor ebx, ebx
mov dword [rsp + 0x28], 5
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp rax, 0x20
seta bl
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14008c2d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov rcx, qword [0x140168d50]
mov rbp, r9
mov r14d, r8d
test rcx, rcx
jne 0x14008c309
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov qword [0x140168d50], rax
mov rbx, 0xffffffffffffffff
mov word [rcx], 0
mov rax, rbx
nop dword [rax + rax]
inc rax
cmp byte [rax + rbp], 0
jne 0x14008c320
mov rdi, qword [rsp + 0x80]
mov rdx, rbx
cmp byte [rdi + rdx + 1], 0
lea rdx, [rdx + 1]
jne 0x14008c334
lea rsi, [rdx + 8]
movzx edx, r14b
add rsi, rax
mov r14d, 0x800
test edx, edx
je 0x14008c383
cmp edx, 1
jne 0x14008c3f9
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14008c3f2
lea rdx, str.AppData
jmp 0x14008c3a7
lea r8, [rsp + 0x30]
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14008c3f2
lea rdx, str.Common_AppData
mov rcx, qword [rsp + 0x30]
mov eax, r14d
sub eax, esi
xor r9d, r9d
mov dword [rsp + 0x70], eax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [0x140168d50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x14008c3e7
mov rax, qword [0x140168d50]
mov word [rax], 0
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [0x140168d50]
cmp byte [rcx + 1], 0
jne 0x14008c40b
cmp byte [rcx], 0
jne 0x14008c40b
xor eax, eax
jmp 0x14008c507
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], 0
lea rax, [rax + 1]
jne 0x14008c410
lea rcx, [rax*2 + 2]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov rax, qword [0x140168d50]
mov r8, rsi
mov rdx, rax
sub r8, rax
nop dword [rax]
movzx ecx, word [rdx]
mov word [r8 + rdx], cx
lea rdx, [rdx + 2]
test cx, cx
jne 0x14008c440
mov r9, rbx
inc r9
cmp word [rsi + r9*2], 0
jne 0x14008c454
mov r8, rsi
mov edx, 0x7ff
mov rcx, rax
call fcn.140042740
mov ecx, eax
mov rax, qword [0x140168d50]
mov byte [rcx + rax], 0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbp, rbp
je 0x14008c490
cmp byte [rbp], 0
jne 0x14008c497
lea rbp, str.unknown
test rdi, rdi
je 0x14008c4a1
cmp byte [rdi], 0
jne 0x14008c4a8
lea rdi, str.unknown
mov rcx, qword [0x140168d50]
mov rax, rbx
inc rax
cmp byte [rcx + rax], 0
jne 0x14008c4b2
sub r14, rax
nop
inc rbx
cmp byte [rcx + rbx], 0
jne 0x14008c4c0
add rcx, rbx
mov qword [rsp + 0x20], rdi
mov r9, rbp
lea r8, str.__s__s.prefs
mov rdx, r14
call fcn.14005ba90
mov rax, qword [0x140168d50]
mov rcx, rax
movzx edx, byte [rax]
test dl, dl
je 0x14008c507
cmp dl, 0x5c
jne 0x14008c4fc
mov byte [rcx], 0x2f
movzx edx, byte [rcx + 1]
inc rcx
test dl, dl
jne 0x14008c4f4
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret