joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d3940
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4a20
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4342
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d43da
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d43be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d43b2
cmp qword [rbp - 0x10], 0
je 0x2fc4d43b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4378
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d43db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d44e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4508
mov eax, 0
jmp 0x2fc4d4556
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4531
mov eax, 0
jmp 0x2fc4d4556
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4551
mov eax, 0
jmp 0x2fc4d4556
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d455c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d45da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d45d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d45d1
mov rax, qword [rbp - 8]
jmp 0x2fc4d45ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d45a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001070
Capabilities:
Enumerate process modules

Disassembly:
push rdi
sub rsp, 0x360
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x350], rax
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1400010ef
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x320
call sub.VCRUNTIME140.dll_memset
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x320
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
mov rcx, rdi
test eax, eax
jne 0x1400010f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.EnumProcessModules
call fcn.140001010
xor eax, eax
jmp 0x140001111
mov qword [rsp + 0x378], rbx
mov rbx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rbx
mov rbx, qword [rsp + 0x378]
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.140001680
add rsp, 0x360
pop rdi
ret
Function at 0x140001f54
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001f9e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001f9e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_RtlVirtualUnwind
jne 0x140001f9e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001f9e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001f9e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001fa0
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d92a0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4da380
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d9ca2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d9d3a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d9d1e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d9d12
cmp qword [rbp - 0x10], 0
je 0x2fc4d9d12
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d9cd8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d9d3b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9e40
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d9e68
mov eax, 0
jmp 0x2fc4d9eb6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d9e91
mov eax, 0
jmp 0x2fc4d9eb6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d9eb1
mov eax, 0
jmp 0x2fc4d9eb6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9ebc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d9f3a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9f31
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d9f31
mov rax, qword [rbp - 8]
jmp 0x2fc4d9f4f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d9f04
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180001000
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
mov esi, edx
mov eax, 0x7850b809
lea r12, [0x1800011f0]
mov rbx, qword [sym.imp.KERNEL32.dll_CreateThread]
mov ebp, 0x71db08ad
mov r14d, 0x55732655
mov r15, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 0xb84a5867
jmp 0x180001060
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, r12
xor r9d, r9d
call rbx
mov eax, 0xb84a5867
nop
cmp eax, 0x50babceb
jg 0x1800010a0
cmp eax, 0xc41db14d
jle 0x1800010e0
cmp eax, 0xc41db14e
je 0x18000117e
cmp eax, 0x2eee1996
jne 0x1800011c6
mov rcx, qword [rsp + 0x40]
call r15
mov eax, 0xabe8372e
jmp 0x180001060
cmp eax, 0x71db08ac
jg 0x180001140
cmp eax, 0x50babcec
je 0x18000103c
cmp eax, 0x55732655
jne 0x180001060
mov eax, dword [0x18001aa38]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x50babcec
cmove eax, edi
cmp dword [0x18001aa3c], 0xa
cmovl eax, edi
jmp 0x180001060
cmp eax, 0xabe8372e
je 0x180001191
cmp eax, 0xb84a5867
jne 0x180001060
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor edx, edx
mov r8, r12
xor r9d, r9d
call rbx
mov qword [rsp + 0x40], rax
mov eax, dword [0x18001aa38]
lea ecx, [rax - 1]
imul ecx, eax
test cl, 1
mov eax, 0x50babcec
cmove eax, ebp
cmp dword [0x18001aa3c], 0xa
cmovl eax, ebp
jmp 0x180001060
cmp eax, 0x71db08ad
je 0x18000119b
cmp eax, 0x7850b809
jne 0x180001060
mov ecx, 0x1a6cf63e
nop word [rax + rax]
cmp ecx, 0x4d0a413
je 0x1800011a5
cmp ecx, 0x1a6cf63e
jne 0x180001160
xor ecx, ecx
call fcn.180003c7c
mov ecx, 0x4d0a413
jmp 0x180001160
cmp byte [rsp + 0x3f], 0
mov eax, 0xcdcc70da
cmovne eax, r14d
jmp 0x180001060
mov eax, 0xcdcc70da
jmp 0x180001060
mov eax, 0x2eee1996
jmp 0x180001060
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.180003cf0
cmp esi, 1
sete byte [rsp + 0x3f]
mov eax, 0xc41db14e
jmp 0x180001060
cmp eax, 0xcdcc70da
jne 0x180001060
mov eax, 1
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x18000818c
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800081bc
xor eax, eax
jmp 0x18000827f
mov rbp, rbx
cmp word [rax], si
je 0x1800081e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800081c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800081c4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800080ac
movsxd r14, eax
test eax, eax
jne 0x18000821f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800081b5
mov rcx, r14
call fcn.1800085d8
mov rdi, rax
test rax, rax
jne 0x180008238
xor ecx, ecx
call fcn.180005cb8
jmp 0x180008214
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800080ac
test eax, eax
jne 0x180008269
mov rcx, rdi
call fcn.180005cb8
jmp 0x180008273
xor ecx, ecx
call fcn.180005cb8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400133e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
xor ebp, ebp
mov rbx, rcx
lea r8d, [rbp + 0xa]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x14001348a
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14001348a
mov rcx, rax
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, 2
shr ebx, 1
lea ecx, [rbx + 1]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140013928
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rax
mov rdi, rax
call fcn.140014860
mov rsi, qword [rsp + 0x30]
mov rax, rdi
mov word [rbx + rdi], bp
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x38]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140013ca8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x5dfa39e0
jmp 0x14000699d
dec rcx
jmp 0x140008353
jne 0x14000699d
jmp 0x140008f09
jmp 0x1400096c2
jmp 0x140009740
jmp 0x14000977c
jmp 0x1400097ec
jmp 0x14000981e
jmp 0x1400098a3
jmp 0x1400098b9
jmp 0x140009957
jmp 0x140009982
jmp 0x1400099ac
jmp 0x140009a2b
jmp 0x140009a6e
jmp 0x140009a9f
jmp 0x140009b18
jmp 0x140009b53
jmp 0x140009bce
jmp 0x140009bfd
jmp 0x140009c51
jmp 0x140009c8f
jmp 0x140009ccf
xor rcx, rcx
mov rdx, 0x8487
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call 0x140009cef
pop rsi
sub rsp, 0x28
call fcn.1400140cc
add rsp, 0x28
xor rcx, rcx
jmp 0x140004ed0

Function at 0x140014374
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400143be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400143be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400143be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400143be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400143be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400143c0
xor al, al
add rsp, 0x28
ret

Function at 0x140017f74
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140017da0
Function at 0x140007850
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
mov qword [rbp - 0x50], rdx
mov rax, rcx
mov rcx, qword [rbp - 0x50]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x40], rcx
mov byte [rbp + 0x3f], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x70], 0
mov qword [rbp + 0x80], 0
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp - 0x38], rax
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x90], 0
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x98], rax
mov r8, qword [rbp + 0x98]
xor edx, edx
lea r9, [rbp - 0x38]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rbp + 0x4c], eax
cmp eax, 0
je 0x140007919
mov rcx, qword [rbp - 0x38]
call sub.ole32.dll_CoTaskMemFree
mov rax, qword [rbp - 0x48]
movabs rcx, 0x8000000000000000
mov qword [rax], rcx
jmp 0x14000795d
mov rcx, qword [rbp - 0x38]
call sub.KERNEL32.dll_lstrlenW
movsxd rdx, eax
mov qword [rbp + 0x50], rdx
mov rcx, qword [rbp - 0x38]
call fcn.140007590
mov qword [rbp - 0x58], rax
mov r8, rdx
mov rdx, qword [rbp - 0x58]
mov qword [rbp + 0x58], rdx
mov qword [rbp + 0x60], r8
mov byte [rbp + 0x3f], 1
lea rcx, [rbp - 0x30]
call fcn.140020570
mov rcx, qword [rbp - 0x38]
call sub.ole32.dll_CoTaskMemFree
jmp 0x14000796a
mov rax, qword [rbp - 0x40]
add rsp, 0x130
pop rbp
ret
mov byte [rbp + 0x3f], 0
movups xmm0, xmmword [rbp - 0x30]
movups xmm1, xmmword [rbp - 0x20]
movaps xmmword [rbp + 0x20], xmm1
movaps xmmword [rbp + 0x10], xmm0
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0x10]
call fcn.140007820
jmp 0x14000798d
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x10]
mov qword [rax], rcx
mov rcx, qword [rbp - 8]
mov qword [rax + 8], rcx
mov rcx, qword [rbp]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp + 8]
mov qword [rax + 0x18], rcx
mov byte [rbp + 0x3f], 0
jmp 0x14000795d
Function at 0x14001ced0
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 0x14001cf70
jmp 0x14001cf5f
jae 0x14001d030
cmp r8, 0x201
jae 0x14001cf70
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x14001cfc8
sub r8, r12
sub rdi, r12
cmp rdi, r8
jae 0x14001cf9f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.140038090
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 0x14001cff1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x14001d098
mov r8d, r14d
cmp r15, r8
jne 0x14001cf50
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001d0c5
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14001cf5f
jmp 0x14001cf70
cmp rsi, r8
jb 0x14001d0df
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.140020570
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 0x14001d081
add rbx, rbx
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rbx
call fcn.140007430
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 0x14001d069
jmp 0x14001d081
lea rcx, str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140038a40
jmp 0x14001d0f4
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140038e90
ud2
Function at 0x140026db0
Capabilities:
Move file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rdi, r9
mov rbx, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x20]
call fcn.140029a20
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
movabs r14, 0x8000000000000000
cmp rax, r14
je 0x140026ef0
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140028750
mov rax, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rax, r14
je 0x140026ef0
mov qword [rbp - 0x28], rsi
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x20]
mov rdx, rbx
mov r8, rdi
call fcn.140029a20
mov rax, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
cmp rax, r14
je 0x140026e7b
mov rcx, qword [rbp - 0x10]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rsi
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x20]
mov r8b, 1
call fcn.140028750
mov rdi, qword [rbp - 0x40]
mov rsi, qword [rbp - 0x38]
cmp rdi, r14
jne 0x140026e9e
mov r14, qword [rbp - 8]
mov r15, qword [rbp - 0x28]
test r14, r14
je 0x140026ef0
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140007430
jmp 0x140026ef0
mov r15, qword [rbp - 0x28]
mov rcx, r15
mov rdx, rsi
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov r14, qword [rbp - 8]
je 0x140026f00
test rdi, rdi
je 0x140026ed5
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007430
test r14, r14
je 0x140026eee
add r14, r14
mov r8d, 2
mov rcx, r15
mov rdx, r14
call fcn.140007430
xor esi, esi
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rdi, rdi
je 0x140026f29
add rdi, rdi
mov r8d, 2
mov rcx, rsi
mov rdx, rdi
call fcn.140007430
mov rsi, rbx
test r14, r14
jne 0x140026e88
jmp 0x140026ef0
Function at 0x140027700
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003dbd0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x140027744
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x1400277a3
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x1400277b2
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x1400277ea
cmp eax, 0x103
je 0x1400277f4
test eax, eax
js 0x1400277cf
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x1400277ea
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14003dc30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140020230
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14001b030
mov ecx, 7
int 0x29
ud2

Function at 0x140027860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x14003dbd0]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400278a4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14002790a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140027941
test eax, eax
js 0x14002791b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140027934
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, [0x14003dc30]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140020230
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14001b030
mov ecx, 7
int 0x29
ud2