joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402d39c0
Capabilities:
Resolve function by parsing pe exports

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
mov rax, qword [rcx + 0x20]
xor r15d, r15d
sub rax, 0x34
mov qword [rcx + 0x78], r15
mov qword [rcx + 0x28], rax
mov r14d, edx
mov rax, qword [rcx + 0x30]
mov rbx, rcx
mov word [rcx + 0x6a], r15w
lea ebp, [r15 - 1]
mov dword [rcx + 0x3c], r15d
mov edi, r15d
mov qword [rcx + 0x70], rax
mov qword [rax + 0x10], rax
mov word [rcx + 0x68], r15w
cmp r15w, word [rcx + 0xb8]
jge 0x1402d3afb
mov esi, r15d
mov rax, qword [rbx + 0xd0]
lea edx, [rbp + 1]
mov dword [rbx + 0x88], r15d
mov r9d, r14d
mov qword [rbx + 0x80], r15
mov rcx, rbx
movsx ebp, word [rsi + rax]
mov r8d, ebp
call fcn.1402d3fb0
test al, al
jne 0x1402d3b96
mov r8d, dword [rbx + 4]
mov edx, dword [rbx + 0x5c]
lea eax, [r8 - 1]
test edx, eax
jne 0x1402d3a8f
cmp edx, dword [rbx + 0x60]
jl 0x1402d3a8f
cmp edx, dword [rbx + 0x64]
jg 0x1402d3a8f
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x1402d3a8f
mov rax, qword [rbx + 0x70]
movzx ecx, byte [rcx + 0x18]
xor cl, byte [rax + 0x18]
test cl, 8
jne 0x1402d3a8f
add qword [rbx + 0x30], 0xfffffffffffffffc
mov r9, qword [rbx + 0x70]
mov rax, qword [r9 + 0x10]
cmp qword [rbx + 0x30], rax
je 0x1402d3ab2
test byte [r9 + 0x18], 8
je 0x1402d3ab2
neg r8d
and r8d, edx
sub edx, r8d
cmp edx, dword [rbx + 8]
jmp 0x1402d3ac3
lea eax, [r8 - 1]
neg r8d
add eax, edx
and eax, r8d
sub eax, edx
cmp eax, dword [rbx + 8]
setge dl
mov rcx, rbx
call fcn.1402d4bf0
test al, al
jne 0x1402d3b96
mov rax, qword [rbx + 0x80]
test rax, rax
je 0x1402d3ae6
mov qword [r9 + 0x28], rax
movsx eax, word [rbx + 0xb8]
inc edi
add rsi, 2
cmp edi, eax
jl 0x1402d3a23
movzx edi, word [rbx + 0x68]
mov rdx, qword [rbx + 0x78]
cmp di, 1
jbe 0x1402d3b9a
test rdx, rdx
je 0x1402d3b9a
mov ebp, 0xffff
nop dword [rax + rax]
lea rsi, [rdx + 8]
cmp di, 1
jbe 0x1402d3b38
movsxd rcx, dword [rdx + 0x1c]
mov rax, qword [rdx + 0x10]
lea r10, [rax + rcx*4]
jmp 0x1402d3b3b
mov r10, r15
mov qword [rsi], r10
test byte [rdx + 0x18], 8
mov r11d, dword [rdx + 0x20]
mov r8d, r11d
mov eax, dword [rdx + 0x1c]
je 0x1402d3b56
dec r11d
add r11d, eax
jmp 0x1402d3b6d
sub r8d, eax
inc r8d
dec eax
mov dword [rdx + 0x20], r8d
movsxd rcx, eax
shl rcx, 2
add qword [rdx + 0x10], rcx
mov edx, r8d
mov rcx, rbx
call fcn.1402d4fe0
test al, al
jne 0x1402d3b96
lea edx, [r11 + 1]
mov rcx, rbx
call fcn.1402d4fe0
test al, al
jne 0x1402d3b96
mov rdx, qword [rsi]
add di, bp
jne 0x1402d3b20
jmp 0x1402d3b9e
mov al, 1
jmp 0x1402d3ba9
mov qword [rbx + 0x78], r15
mov rax, qword [rbx + 0x28]
cmp qword [rbx + 0x30], rax
setae al
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1402dedc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rdx
test rdx, rdx
jne 0x1402dedcb
xor eax, eax
ret
lea r11, [0x140389d40]
not ecx
cmp r8d, 8
jb 0x1402deea1
mov r10d, r8d
shr r10, 3
nop word [rax + rax]
movzx edx, byte [r9]
mov eax, ecx
xor rdx, rax
shr ecx, 8
movzx eax, dl
add r8d, 0xfffffff8
movzx edx, byte [r9 + 1]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 2]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 3]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 4]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 5]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 6]
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
movzx edx, byte [r9 + 7]
add r9, 8
xor ecx, dword [r11 + rax*4]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
sub r10, 1
jne 0x1402dedf0
test r8d, r8d
je 0x1402deecd
nop word [rax + rax]
movzx edx, byte [r9]
lea r9, [r9 + 1]
mov eax, ecx
shr ecx, 8
xor rdx, rax
movzx eax, dl
xor ecx, dword [r11 + rax*4]
add r8d, 0xffffffff
jne 0x1402deeb0
not ecx
mov eax, ecx
ret
Function at 0x1402e5640
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400fa5a2
movzx eax, al
test eax, eax
jne 0x1402e5660
mov ecx, 7
call fcn.1400f9a9e
nop
mov byte [rsp + 0x20], 0
call fcn.1400f9bac
mov byte [rsp + 0x21], al
cmp dword [0x1403bba98], 1
jne 0x1402e5684
mov ecx, 7
call fcn.1400f9a9e
nop
jmp 0x1402e56dc
cmp dword [0x1403bba98], 0
jne 0x1402e56d7
mov dword [0x1403bba98], 1
lea rdx, [0x1402f27b0]
lea rcx, [0x1402f2480]
call fcn.1400f877f
test eax, eax
je 0x1402e56b8
mov eax, 0xff
jmp 0x1402e57e1
lea rdx, [0x1402f2370]
lea rcx, [section..rdata]
call fcn.1400f9b8e
mov dword [0x1403bba98], 2
jmp 0x1402e56dc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400f9a12
call fcn.1400f950d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1402e5739
mov rcx, qword [rsp + 0x30]
call fcn.1400f8310
movzx eax, al
test eax, eax
je 0x1402e5739
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1403d6020]
nop
call fcn.1400f972e
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1402e576d
mov rcx, qword [rsp + 0x38]
call fcn.1400f8310
movzx eax, al
test eax, eax
je 0x1402e576d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400fa1dd
nop
call fcn.1402e5850
mov dword [rsp + 0x28], eax
call fcn.1400f93e1
movzx eax, al
test eax, eax
jne 0x1402e578c
mov ecx, dword [rsp + 0x28]
call fcn.1400f73a2
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1402e579b
call fcn.1400fa28c
nop
xor edx, edx
mov cl, 1
call fcn.1400f81f3
mov eax, dword [rsp + 0x28]
jmp 0x1402e57e1
add rsp, 0x68
ret
Function at 0x140002050
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002149
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002151
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000218a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002160
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021b5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021db
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021c0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a3d0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
lea edi, [r14 + 0x28]
test al, al
je 0x14000a481
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.140010590
cmp rax, 1
jne 0x14000a4b7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a45d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a450
cmp rcx, 1
jb 0x14000a4b7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a420
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000bb70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.140010254
int3
Function at 0x14000a540
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a585
xor al, al
jmp 0x14000a5d2
cmp word [rbx], 0
je 0x14000a59d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a590
cmp word [rsp + 0x30], 0
je 0x14000a5cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a5f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a5b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000bb70
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.140010254
int3
Function at 0x14000ad90
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001fbd0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002fdd0]
lea rsi, [0x140042e10]
mov rdi, rcx
test r11d, r11d
jne 0x14000ae09
mov r8d, 0x1000
lea rdx, str.HOME
lea rcx, [rsp + 0x20]
call fcn.14000a600
test al, al
je 0x14000aee9
lea rcx, [rsp + 0x20]
call fcn.14001485c
movsxd r11, dword [0x14002fdd0]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002fdd0], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ae44
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000ae34
add rax, 2
test ecx, ecx
jne 0x14000ae20
test edx, edx
je 0x14000ae67
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ae14
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ae50
cmp rax, 2
jne 0x14000ae6b
cmp word [rdi + 2], 0x3a
jne 0x14000ae6b
mov al, 1
jmp 0x14000aec8
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae96
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000aebd
mov bl, 1
cmp dword [0x14002fdd0], 0x400
jge 0x14000aebd
mov rcx, rdi
call fcn.14001485c
movsxd rdx, dword [0x14002fdd0]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002fdd0], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000bb70
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str.HOME
call fcn.14000ac30
int3
Function at 0x14000b010
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b04b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b03e
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b13e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029898]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140040610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b11f
test al, 0x10
je 0x14000b11f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b0c5
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000c464
Capabilities:
Parse pe header

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

Function at 0x140010248
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400100b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400100b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400100b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400100b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400100b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400100b3
cmp dword [rcx + 0xf8], 0
je 0x1400100b3
mov ecx, ebx
call fcn.140010164
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000ff40
nop
cmp dword [rbp + 0x20], 0
je 0x140010101
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001010c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140010044
Function at 0x140019658
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400196df
mov rsi, rbx
cmp word [rax], bp
je 0x14001969e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140019688
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140019684
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016e88
mov rdi, rax
test rax, rax
je 0x1400196cc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020270
mov rbp, rdi
xor ecx, ecx
call fcn.140015f98
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b84c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b862
mov al, 1
jmp 0x14001b8c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b873
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b8c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400199a0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b8c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b8c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b8c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b8c2
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001fae0
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140041560
test al, al
je 0x140025339
call fcn.140041550
mov rdi, rax
lea rbx, [0x1400c9c28]
mov rcx, rax
mov rdx, rbx
call fcn.140041570
test al, al
jne 0x140025368
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140041570
test al, al
jne 0x140025368
mov eax, dword [rsi]
mov dword [0x1400def78], eax
mov bl, 1
test al, 1
jne 0x140025429
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14005b820
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp qword [0x1400e4548], 0
jne 0x1400254ba
mov rax, qword [0x1400e4550]
mov qword [0x1400e4548], rax
mov ecx, 0x20
call fcn.14005aaac
mov r14, rax
lea rcx, str.vmodule
lea r15, [rsp + 0x48]
mov qword [r15], rcx
call fcn.140071130
mov qword [r15 + 8], rax
lea r12, [rsp + 0x58]
mov rcx, rdi
mov rdx, r12
mov r8, r15
call fcn.140041680
lea r15, [rsp + 0x20]
mov qword [r15], rbx
mov rcx, rbx
call fcn.140071130
mov qword [r15 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.140041680
lea r9, [0x1400e4558]
mov rcx, r14
mov rdx, rbx
mov r8, r12
call fcn.1400a7b00
mov qword [0x1400e4550], r14
cmp byte [rbx + 0x17], 0
jns 0x14002540f
mov rcx, qword [rsp + 0x30]
call fcn.14005aae8
cmp byte [rsp + 0x6f], 0
jns 0x140025339
mov rcx, qword [rsp + 0x58]
call fcn.14005aae8
jmp 0x140025339
mov rcx, qword [0x1400e4580]
test rcx, rcx
jne 0x140025443
mov rcx, qword [0x1400e4560]
test rcx, rcx
je 0x140025467
jmp 0x140025489
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400e4580], 0
mov rcx, qword [0x1400e4560]
test rcx, rcx
jne 0x140025489
and byte [0x1400def78], 0xfe
mov ecx, 0x18
call fcn.14005aaac
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400e4560], rax
mov rdx, qword [rsi + 8]
call fcn.1400409c0
cmp dword [rsi + 0x14], 0
jne 0x1400254ae
mov rcx, qword [0x1400e4560]
cmp byte [rcx + 0x17], 0
jns 0x1400254a8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400a61f0
mov ebx, eax
jmp 0x14002534b
int3
Function at 0x1400284a0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.14005aaac
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400288c0]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140028541
test rbp, rbp
je 0x14002856c
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14005b820
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14002855a
mov ebp, eax
cmp eax, 0x5af
je 0x14002855a
cmp ebp, 0xe
jne 0x140028577
mov rcx, r15
call fcn.1400ae2e0
mov rcx, r14
call fcn.14005aae8
jmp 0x14002851f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14002851f
mov eax, dword [0x1400e45f0]
mov ecx, dword [0x1400e040c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400285e6
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.14002bbd0
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x1400e45e8]
call fcn.14004ce30
cmp byte [rsi + 0x17], 0
jns 0x140028562
mov rcx, qword [rsp + 0x38]
call fcn.14005aae8
jmp 0x140028562
lea rcx, [0x1400e45f0]
call fcn.14005ac00
cmp dword [0x1400e45f0], 0xffffffff
jne 0x140028598
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14002dac0
mov qword [0x1400e45e8], rax
lea rcx, [0x1400e45f0]
call fcn.14005ac98
jmp 0x140028598

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

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400c48d0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ce
call fcn.140047480
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14004ca40
cmp byte [rdi + 0x17], 0
jns 0x140028bd6
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14004cbd0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14005b820
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140028c10
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14005e0e0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140028caf
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.140071888
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140041f30
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140025080
mov rcx, r14
mov rdx, rsi
call fcn.140042040
mov rcx, rsi
call fcn.140042030
mov rcx, rbx
call fcn.140042030
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14005b820
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140028ce0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x1400dd028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14005e0e0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140028d75
cmp word [rsp + 0x70], 0
je 0x140028d75
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140071888
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140041f30
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14005b820
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400c48d0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140041ef0
mov rcx, rdi
call fcn.140028c10
test al, al
je 0x140028db5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140041f10
jmp 0x140028dd4
lea rax, [0x1400caeb2]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140041f30
lea rcx, [rsp + 0x40]
call fcn.140042030
jmp 0x140028d57