joyce8/EMBER2024-capa huggingface dataset:
Function at 0x230421940
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x23042c064]
mov rbx, rcx
test esi, esi
jle 0x230421a70
mov rax, qword [0x23042c068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x23042198b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x230421a15
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x230421970
mov rcx, rbx
call fcn.2304221a0
mov rdi, rax
test rax, rax
je 0x230421a92
mov rax, qword [0x23042c068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.2304222e0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x23042c068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x230421a77
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x230421a0e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x230421a20
add dword [0x23042c064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x23042c068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x230421a0e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2304218d0
nop dword [rax]
xor esi, esi
jmp 0x230421998
mov rax, qword [0x23042c068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2304218d0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.2304218d0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x230421e10
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x23042c0a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x23042c080]
test rbx, rbx
je 0x230421e6c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x230421e63
test eax, eax
jne 0x230421e63
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x230421e48
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2304221a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x230429600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2304221c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2304221c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2304221c0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x23042221d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x230422214
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2304221c0
add rax, 0x28
cmp rax, r9
jne 0x230422200
xor eax, eax
ret

Function at 0x230422220
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x230429600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x23042223f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x230422248
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x23042223f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x2304222e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x230429600]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x2304222ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x230422308
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x14067bc00
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword gs:[0x60]
movabs r11, 0x67bc70
movabs r10, 0x67bc74
mov r9, qword [rax + 0x10]
xor eax, eax
movsxd rcx, dword [r9 + 0x3c]
movsxd r11, dword [r9 + r11]
add rcx, r9
mov r10d, dword [r9 + r10]
movzx r8d, word [rcx + 0x14]
add r8, rcx
cmp dword [r8 + 0x20], eax
jbe 0x14067bc66
mov edx, eax
nop dword [rax]
nop word [rax + rax]
mov ecx, dword [r8 + 0x24]
inc eax
add rcx, rdx
inc rdx
xor byte [rcx + r9], r10b
cmp eax, dword [r8 + 0x20]
jb 0x14067bc50
lea rax, [r9 + r11]
jmp rax
Function at 0x140001718
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x1400017dc
lea rcx, [0x1401d20e0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d20c8]
jmp 0x1400017a2
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x14000179f
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x1401d20c8]
mov rdx, rsi
call fcn.140017ea0
jmp 0x1400017a2
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14000176f
mov rdi, qword [reloc.WS2_32.dll_accept]
lea rcx, [0x1401d20c8]
lea rdx, [rdi + 1]
mov qword [reloc.WS2_32.dll_accept], rdx
lea edx, [rbx + 0x20]
call fcn.140017e5c
lea rcx, [0x1401d20e0]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140004e30
Capabilities:
Get file size
Read file on windows

Disassembly:
or r8d, 0xffffffff
jmp 0x14000497c
Function at 0x140005898
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1401d23a0]
call fcn.140018820
test rax, rax
je 0x1400058c6
mov r8, qword [rax]
mov edx, ebx
mov rcx, qword [rax + 8]
add rsp, 0x20
pop rbx
jmp qword [r8 + 0x48]
mov ecx, ebx
add rsp, 0x20
pop rbx
jmp fcn.140019650

Function at 0x140006ce0
Capabilities:
Create thread
Reference http user-agent string

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov r15, r8
mov rcx, qword [0x1401d2828]
mov ebp, edx
xor ebx, ebx
call fcn.140014188
mov r14, rax
test rsi, rsi
je 0x140006cc4
mov rcx, qword [0x1401d1e08]
lea edx, [rbx + 8]
mov r8d, 0x98
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rdi, rax
or dword [rax + 4], 0xffffffff
mov dword [rax], 1
call fcn.140036fe8
mov rcx, r15
mov qword [rdi + 8], rax
call fcn.140036fe8
mov qword [rdi + 0x60], rax
mov dword [rdi + 0x40], ebp
mov eax, dword [r14]
mov dword [rdi + 0x44], eax
mov eax, dword [r14 + 4]
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x90], 1
test bpl, 1
je 0x140006cb1
lea rax, [rsp + 0x50]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x140006bcc]
mov edx, 0x10000
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140006ca6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006cac
cmp dword [rsp + 0x50], ebx
je 0x140006cbc
mov rbx, rdi
jmp 0x140006cc4
mov rcx, rdi
call fcn.1400069f8
mov rbx, rax
mov rcx, rdi
call fcn.14003706c
mov rbp, qword [rsp + 0x60]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
lea r8, str.Mozilla_5.0_Gecko_41.0_Firefox_41.0
xor edx, edx
jmp 0x140006bdc
Function at 0x140006dd4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1c0
mov ebx, reloc.WS2_32.dll_recv
lea r8, [0x140006cf0]
mov edx, ebx
lea ecx, [rbx + 0x28]
call fcn.140018970
xor r8d, r8d
mov qword [0x1401d2858], rax
xor edx, edx
mov ecx, ebx
call fcn.140014220
xor ebx, ebx
mov qword [0x1401d2868], rax
cmp word [0x1401d2850], bx
jne 0x140006ef7
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea edi, [rbx + 1]
test eax, eax
jne 0x140006e3c
movzx eax, di
jmp 0x140006e3e
mov eax, ebx
lea rcx, str.ws2_32.dll
mov word [0x1401d2850], ax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x1401d2860], rax
test rax, rax
je 0x140006ef7
lea rdx, [0x140166650]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401d2860]
lea rdx, [0x140166660]
mov qword [0x1401d2830], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401d2860]
lea rdx, str.getnameinfo
mov qword [0x1401d2838], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x1401d2860]
lea rdx, str.WSAStringToAddressA
mov qword [0x1401d2840], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x1401d2830], rbx
mov qword [0x1401d2848], rax
je 0x140006ef7
cmp qword [0x1401d2838], rbx
je 0x140006ef7
cmp qword [0x1401d2840], rbx
je 0x140006ef7
mov ecx, dword [0x1401d2854]
test rax, rax
cmovne ecx, edi
mov dword [0x1401d2854], ecx
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rdi
ret

Function at 0x1400080d0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
mov rdx, rcx
mov rcx, qword [0x1401d2c70]
call fcn.140018820
xor ebp, ebp
mov rsi, rax
test rax, rax
je 0x140008150
mov rcx, qword [rax + 8]
mov rax, qword [rcx + 0x28]
test rax, rax
je 0x140008115
mov edx, ebx
mov rcx, rsi
call rax
jmp 0x140008150
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, eax
mov edx, ebx
mov edi, eax
call fcn.140018630
lea r8d, [rdi + 1]
mov rdx, rax
mov rbx, rax
mov word [rax], bp
mov rcx, qword [rsi]
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov rcx, rbx
call fcn.140018188
sub edi, eax
mov ecx, edi
call fcn.1400186e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400081c0
Capabilities:
Hide graphical window

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rbp, rcx
mov rcx, qword [0x1401d2c78]
call fcn.140014188
cmp qword [0x1401d2e18], 0
mov r14, rax
jne 0x140008291
mov ebx, 0x148
lea rcx, [0x1401d2cd0]
mov r8d, ebx
xor edx, edx
call fcn.140001390
lea rax, [0x140008818]
mov dword [0x1401d2cd0], 0xa
mov qword [0x1401d2cd8], rax
mov edx, 0x7f89
lea rax, [0x140038200]
mov dword [0x1401d2cd4], ebx
mov qword [0x1401d2db8], rax
xor ecx, ecx
lea rax, [0x1400095b4]
mov qword [0x1401d2dc0], rax
lea rax, [0x1400087f0]
mov qword [0x1401d2ce0], rax
lea rax, [0x140008834]
mov qword [0x1401d2de8], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x1401d2e18], rax
test rax, rax
jne 0x140008291
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [0x1401d2e18], rax
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.140037284
and qword [rsp + 0x58], 0
lea rdx, str.STATIC
mov rax, qword [0x1401d1e10]
or rbx, 0xffffffffffffffff
mov r8, qword [rsp + 0xb8]
mov r9d, 0x40010000
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov rax, qword [r14]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rsi, rax
test rax, rax
je 0x1400083cb
mov rcx, qword [0x1401d2c70]
mov rdx, rbp
call fcn.140018750
lea ecx, [rbx + 9]
mov rdi, rax
mov qword [rax + 0x20], rbx
call qword [sym.imp.USER32.dll_GetSysColor]
mov ecx, eax
xor edx, edx
mov qword [rdi + 0x28], rcx
lea r8d, [rbx + 0x21]
mov rcx, qword [0x1401d1e08]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [r14 + 0x10]
lea r9, [0x1401d2cd0]
mov r8, rsi
mov rdx, rdi
mov rbx, rax
mov qword [rax], rcx
mov ecx, dword [rsp + 0xc8]
mov dword [rax + 8], ecx
mov ecx, dword [rsp + 0xc0]
mov dword [rax + 0x18], ecx
mov rcx, rbp
mov byte [rax + 0x1c], 0
mov qword [rdi + 0x38], rax
call fcn.140037318
mov rcx, qword [rdi]
lea r8, [0x1400083dc]
mov edx, 0xfffffffc
mov rsi, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrW]
mov qword [rbx + 0x10], rax
mov edx, 1
mov rcx, qword [rdi]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, rsi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14000ad50
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp qword [0x1401d34e8], 0
jne 0x14000adb6
lea rcx, [0x1401d34e8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x14000ada2
movabs rax, 0x20c49ba5e353f7cf
lea rcx, [0x1401d34f0]
imul qword [0x1401d34e8]
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [0x1401d34e8], rdx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp qword [0x1401d34e8], 0
jne 0x14000adb6
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
jmp 0x14000addc
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x30]
sub rax, qword [0x1401d34f0]
cqo
idiv qword [0x1401d34e8]
add rsp, 0x28
ret

Function at 0x14000d590
Capabilities:
Create directory

Disassembly:
push rbx
sub rsp, 0x230
xor ebx, ebx
test rcx, rcx
je 0x14000d61a
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400185dc
lea rcx, [rsp + 0x20]
mov word [rsp + 0x228], bx
call fcn.140018188
lea rcx, [rsp + 0x20]
lea rcx, [rcx + rax*2]
lea rax, [rsp + 0x20]
cmp rcx, rax
jbe 0x14000d606
lea rdx, [rcx - 2]
movzx eax, word [rdx]
sub ax, 0x20
cmp ax, 0x3c
ja 0x14000d606
movabs r8, 0x1000000000008001
bt r8, rax
jae 0x14000d606
lea rax, [rsp + 0x20]
mov rcx, rdx
cmp rdx, rax
ja 0x14000d5d8
mov word [rcx], bx
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cdqe
jmp 0x14000d61c
xor eax, eax
add rsp, 0x230
pop rbx
ret

Function at 0x14000d628
Capabilities:
Delete file
Set file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x14000d653
test dl, 2
je 0x14000d646
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cdqe
jmp 0x14000d655
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14000d750
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1401d3688]
xor r13d, r13d
mov rbp, r8
mov r14, rdx
mov rdi, rcx
mov esi, r13d
test rax, rax
jne 0x14000d7a2
lea r8, [fcn.14000d70c]
mov ecx, 0x260
lea edx, [rax + 0x10]
call fcn.140018970
mov qword [0x1401d3688], rax
mov rdx, rdi
mov rcx, rax
call fcn.140018750
mov rbx, rax
test rax, rax
je 0x14000d8a5
test r14, r14
lea r15, [0x1401616e8]
cmovne r15, r14
test rbp, rbp
je 0x14000d7d3
cmp word [rbp], r13w
jne 0x14000d7da
lea rbp, [0x140177b30]
mov rcx, r15
call fcn.140018188
mov rcx, rbp
mov r12, rax
call fcn.140018188
mov rcx, qword [0x1401d1e08]
add eax, 2
add eax, r12d
xor edx, edx
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x14000d88e
mov rdx, r15
mov rcx, rax
call fcn.14001816c
test r12d, r12d
je 0x14000d83b
movsxd rax, r12d
cmp word [r15 + rax*2 - 2], 0x5c
je 0x14000d83b
lea rdx, [0x140161668]
mov rcx, r14
call fcn.140018140
mov rdx, rbp
mov rcx, r14
call fcn.140018140
lea rdx, [rbx + 0xc]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov qword [rbx], rax
cmp rax, 0xffffffffffffffff
je 0x14000d862
mov dword [rbx + 8], r13d
jmp 0x14000d874
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x14000d877
mov dword [rbx + 8], 1
mov rsi, rbx
mov rcx, qword [0x1401d1e08]
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rsi, rsi
jne 0x14000d8a5
mov rcx, qword [0x1401d3688]
cmp rdi, 0xffffffffffffffff
cmove rdi, rbx
mov rdx, rdi
call fcn.140018904
mov rbx, qword [rsp + 0x50]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000d924
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x380]
sub rsp, 0x480
or rbx, 0xffffffffffffffff
xor edi, edi
test rcx, rcx
je 0x14000da95
cmp word [rcx], di
je 0x14000da95
mov rdx, rcx
mov r8d, 0x104
lea rcx, [rsp + 0x20]
call fcn.1400185dc
lea rcx, [rsp + 0x20]
mov word [rbp + 0x128], di
call fcn.140018188
mov rdx, rax
cdqe
lea rcx, [rsp + rax*2 + 0x1e]
lea eax, [rdx - 2]
cmp eax, 1
ja 0x14000d9ca
cmp word [rsp + 0x22], 0x3a
jne 0x14000d9ca
cmp edx, 2
jne 0x14000d9aa
lea rdx, [0x140161668]
lea rcx, [rsp + 0x20]
call fcn.140018140
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14000da95
mov rbx, 0xfffffffffffffffe
jmp 0x14000da95
cmp word [rcx], 0x5c
je 0x14000d9d6
cmp word [rcx], 0x2f
jne 0x14000d9df
mov word [rcx], di
sub rcx, 2
jmp 0x14000d9ca
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rcx, rax
cmp rax, rbx
je 0x14000da26
test byte [rbp + 0x130], 0x10
je 0x14000da0b
mov rbx, 0xfffffffffffffffe
jmp 0x14000da1e
mov ebx, dword [rbp + 0x14c]
mov eax, dword [rbp + 0x150]
shl rbx, 0x20
or rbx, rax
call qword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x14000da95
movzx ecx, word [rsp + 0x20]
movzx eax, word [rsp + 0x22]
cmp cx, 0x5c
jne 0x14000da3b
cmp ax, cx
je 0x14000da51
cmp cx, 0x2f
jne 0x14000da46
cmp ax, cx
je 0x14000da51
cmp cx, 0x2e
jne 0x14000da95
cmp ax, cx
jne 0x14000da95
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000da76
not eax
mov rbx, 0xfffffffffffffffe
shr rax, 4
and eax, 1
or rbx, rax
jmp 0x14000da95
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
mov rbx, 0xfffffffffffffffe
cmp eax, 1
cmova rcx, rbx
mov rbx, rcx
lea r11, [rsp + 0x480]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret

Function at 0x14000db7c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000db94
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000db94
mov eax, eax
jmp 0x14000db98
or rax, 0xffffffffffffffff
add rsp, 0x28
ret
Function at 0x14000dd74
Capabilities:
Get common file path

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 r14
sub rsp, 0x20
mov edx, ecx
mov ebx, 0x104
mov ecx, ebx
call fcn.140018630
mov rdx, rax
mov ecx, ebx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea rcx, str.Kernel32.DLL
mov esi, eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r14d, r14d
mov rbp, rax
test rax, rax
je 0x14000ddee
lea rdx, str.GetLongPathNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000dde5
mov r8d, ebx
mov rdx, rdi
mov rcx, rdi
call rax
mov esi, eax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
sub ebx, esi
mov ecx, ebx
call fcn.1400186e0
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
movsxd rax, esi
mov rsi, qword [rsp + 0x40]
mov word [rdi + rax*2], r14w
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000de1c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x14000de2f
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cdqe
jmp 0x14000de31
xor eax, eax
add rsp, 0x28
ret

Function at 0x14000de38
Capabilities:
Set file attributes

Disassembly:
sub rsp, 0x28
xor eax, eax
test rcx, rcx
je 0x14000de49
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cdqe
add rsp, 0x28
ret

Function at 0x14000de50
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rcx
mov dword [rsp + 0x40], eax
cmp dword [rcx + 0x1c], eax
jne 0x14000de94
mov r8d, dword [rcx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
movsxd rax, dword [rsp + 0x40]
add rsp, 0x30
pop rbx
ret
cdqe
add rsp, 0x30
pop rbx
ret

Function at 0x14000dea0
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, rcx
cmp rcx, 0xffffffffffffffff
mov rcx, qword [0x1401d3690]
jne 0x14000dec0
add rsp, 0x30
pop rdi
jmp fcn.14002ad5c
mov rdx, rdi
mov qword [rsp + 0x48], rbx
call fcn.140018820
mov rbx, rax
test rax, rax
je 0x14000df35
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14000df1d
xor eax, eax
mov dword [rsp + 0x40], eax
cmp dword [rbx + 0x1c], eax
jne 0x14000df0a
mov r8d, dword [rbx + 0x10]
lea r9, [rsp + 0x40]
sub r8d, dword [rbx + 0x14]
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
mov r8, qword [rbx + 8]
xor edx, edx
mov rcx, qword [0x1401d1e08]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401d3690]
mov rdx, rdi
call fcn.140018904
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret