joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140029b84
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d124
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d124
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029cd4
cmp rax, 0xffffffffffffffff
je 0x140029cd4
xor edi, edi
test rbp, rbp
jle 0x140029c7f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fda4
mov rbx, rax
test rax, rax
jne 0x140029c0c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029c75
mov edx, 0x8000
mov ecx, r14d
call fcn.14001aac0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001de00
cmp eax, 0xffffffff
je 0x140029c55
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c1c
mov edx, r15d
mov ecx, r14d
call fcn.14001aac0
jmp 0x140029c75
cmp byte [rsi + 0x38], dil
je 0x140029c6c
cmp dword [rsi + 0x34], 5
jne 0x140029c6c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029c75
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b404
jmp 0x140029ce8
jns 0x140029ce8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d124
cmp rax, 0xffffffffffffffff
jne 0x140029ca0
cmp byte [rsi + 0x30], dil
je 0x140029ce8
mov edi, dword [rsi + 0x2c]
jmp 0x140029ce8
mov ecx, r14d
call fcn.1400195f8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029ce8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029ce8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029ce1
mov eax, dword [rsi + 0x2c]
jmp 0x140029ce6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d124
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ade0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001958
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov rsi, qword [0x00405048]
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x40119f
cmp rdi, rax
je 0x40119f
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x3e8
call r14
xor eax, eax
lock cmpxchg qword [rsi], rdi
sete bl
je 0x40119f
cmp rdi, rax
jne 0x401186
mov rdi, qword [0x00405050]
mov eax, dword [rdi]
cmp eax, 1
jne 0x4011b9
mov ecx, 0x1f
call fcn.0040333f
jmp 0x4011e0
cmp dword [rdi], 0
je 0x4011c7
mov byte [0x00409038], 1
jmp 0x4011e0
mov dword [rdi], 1
mov rcx, qword [0x00405068]
mov rdx, qword [0x00405070]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov eax, dword [rdi]
cmp eax, 1
jne 0x401200
mov rcx, qword [0x00405058]
mov rdx, qword [0x00405060]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rdi], 2
test bl, bl
je 0x401209
xor eax, eax
xchg qword [rsi], rax
mov rax, qword [0x00405010]
mov rax, qword [rax]
test rax, rax
je 0x401224
xor ecx, ecx
mov edx, 2
xor r8d, r8d
call rax
call fcn.00402c80
lea rcx, [0x0040316e]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [0x00405040]
mov qword [rcx], rax
lea rcx, [0x00401356]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.00402c7d
movsxd rdi, dword [0x00409024]
lea rcx, [rdi*8 + 8]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov rsi, rax
test rdi, rdi
jle 0x4012ae
mov r14d, edi
mov r15, qword [0x00409028]
xor r12d, r12d
mov rdi, qword [r15 + r12*8]
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rbx, [rax + 1]
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov qword [rsi + r12*8], rax
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call fcn.00402689
inc r12
cmp r14, r12
jne 0x40127a
jmp 0x4012b1
xor r14d, r14d
mov qword [rsi + r14*8], 0
mov qword [0x00409028], rsi
call fcn.00402b1a
mov r8, qword [0x00409030]
mov rax, qword [0x00405018]
mov rax, qword [rax]
mov qword [rax], r8
mov ecx, dword [0x00409024]
mov rdx, qword [0x00409028]
call fcn.004027f3
mov dword [0x0040903c], eax
cmp dword [0x0040901c], 0
je 0x40131c
cmp byte [0x00409038], 0
jne 0x40130e
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x0040903c]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
int3
Function at 0x4026ea
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1040
call fcn.0040149e
sub rsp, rax
mov rdi, r8
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor ebx, ebx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
test rax, rax
je 0x4027de
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor ebx, ebx
mov rcx, rdi
mov edx, 0x40000000
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x4027d5
mov rdi, rax
lea rbx, [rsp + 0x40]
lea r14, [rsp + 0x38]
mov r12, qword [sym.imp.WININET.dll_InternetReadFile]
lea r15, [rsp + 0x3c]
mov r13, qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x1000
mov r9, r14
call r12
test eax, eax
je 0x4027bc
mov r8d, dword [rsp + 0x38]
test r8d, r8d
je 0x4027bc
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rbx
mov r9, r15
call r13
jmp 0x402785
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ebx, 1
jmp 0x4027de
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
add rsp, 0x1040
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x402f52
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov eax, dword [0x004090c0]
test eax, eax
jle 0x402fb0
mov rcx, qword [0x004090d0]
lea rdx, [rax*8]
lea rdx, [rdx + rdx*4]
xor r8d, r8d
mov r9, qword [rcx + r8 + 0x18]
cmp r9, rsi
ja 0x402fa5
mov r10, qword [rcx + r8 + 0x20]
mov r10d, dword [r10 + 8]
add r9, r10
cmp r9, rsi
ja 0x4030c1
add r8, 0x28
cmp rdx, r8
jne 0x402f86
jmp 0x402fb2
xor eax, eax
mov rcx, qword [0x00405008]
movzx edx, word [rcx]
cmp edx, 0x5a4d
jne 0x403019
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x403019
add rcx, rdx
movzx edx, word [rcx + 0x18]
cmp edx, 0x20b
jne 0x403019
movzx edx, word [rcx + 6]
test edx, edx
je 0x403019
mov r8, rsi
sub r8, qword [0x00405008]
movzx r9d, word [rcx + 0x14]
lea r15, [rcx + r9 + 0x18]
mov ecx, dword [r15 + 0xc]
cmp r8, rcx
jb 0x403011
mov r9d, dword [r15 + 8]
add r9d, ecx
cmp r8, r9
jb 0x403028
add r15, 0x28
dec edx
jne 0x402ffc
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0040310d
mov rdx, qword [0x004090d0]
lea r14, [rax + rax*4]
mov qword [rdx + r14*8 + 0x20], r15
mov dword [rdx + r14*8], 0
add rcx, qword [0x00405008]
mov qword [rdx + r14*8 + 0x18], rcx
lea rdx, [rsp + 0x20]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4030dc
mov eax, dword [rsp + 0x44]
cmp eax, 7
jle 0x40307e
cmp eax, 8
je 0x4030bb
cmp eax, 0x40
je 0x4030bb
cmp eax, 0x80
je 0x4030bb
jmp 0x40308e
mov r8d, 4
cmp eax, 2
je 0x403094
cmp eax, 4
je 0x4030bb
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rax, qword [0x004090d0]
lea r9, [rax + r14*8]
mov qword [r9 + 8], rcx
mov rdx, qword [rsp + 0x38]
mov qword [r9 + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4030f8
inc dword [0x004090c0]
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.00402689
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov edx, dword [r15 + 8]
mov rax, qword [0x004090d0]
mov r8, qword [rax + r14*8 + 0x18]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040310d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040310d
int3

Function at 0x40310d
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
lea rax, [rsp + 0x48]
mov qword [rax], rdx
mov qword [rax + 8], r8
mov qword [rax + 0x10], r9
mov qword [rsp + 0x28], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.0040344d
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
int3
Function at 0x402c50
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00408968]
test rbx, rbx
je 0x402ca4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rdi
mov rbp, rax
call rsi
test eax, eax
jne 0x402c9b
test rbp, rbp
je 0x402c9b
mov rax, qword [rbx + 8]
mov rcx, rbp
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402c80
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x00408940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x140001dd4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140001e4b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001e4b
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x140001e38
cmp rbx, rcx
jae 0x140001e4b
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x140001e23
cmp rbx, rcx
jae 0x140001e4b
movzx eax, word [rbx]
neg ax
sbb rax, rax
and rax, rbx
jmp 0x140001e4d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400042f4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.1400014ec
xor esi, esi
mov rcx, rax
test rax, rax
je 0x1400043b1
mov rax, qword [rax]
call qword [rax + 0x18]
lea r8d, [rsi + 1]
mov edx, 0x104
add rax, 0x18
mov qword [rbx], rax
mov ecx, dword [rax - 0xc]
sub r8d, dword [rax - 8]
sub ecx, edx
or r8d, ecx
jge 0x140004348
mov rcx, rbx
call fcn.140001b94
mov r9, qword [rbx]
lea rdx, [0x1400483a8]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rcx, qword [rbx]
mov edi, eax
test rcx, rcx
jne 0x14000436c
mov eax, esi
jmp 0x140004379
movsxd rdx, dword [rcx - 0xc]
call fcn.14003042c
test eax, eax
js 0x1400043bc
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400043bc
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
test edi, edi
je 0x140004396
cmp edi, 0x6f
jne 0x14000439e
mov rcx, rbx
call fcn.140001910
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400013e0
int3
mov ecx, 0x80070057
call fcn.1400013e0
int3
Function at 0x140004f20
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rbp + 0x50], rax
and qword [rsp + 0x38], 0
lea rsi, [0x140045be0]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rsi
movdqu xmmword [rsp + 0x28], xmm0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140004f74
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x40]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140005040
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [rax + 8]
mov rax, qword [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
call fcn.140001f30
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x20]
call fcn.140003ff8
test al, al
jne 0x140004fcc
call fcn.14000cde4
mov ebx, eax
jmp 0x140005034
mov r9d, 0x12
lea rdx, [0x140045990]
lea rcx, [rbp - 0x30]
lea r8d, [r9 - 0x11]
call fcn.140002004
cmp byte [rbp - 0x64], 0
je 0x140005025
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140005025
cmp byte [rbp + 0x1c], 0
je 0x140005025
lea rcx, [rbp - 0x28]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140005025
lea rdx, [rbp - 0x28]
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x140005027
xor al, al
lea rcx, [rbp - 0x30]
mov byte [rbx], al
call fcn.1400021c4
xor ebx, ebx
lea rcx, [rsp + 0x50]
call fcn.1400021c4
jmp 0x140005047
call fcn.14000cde4
mov ebx, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x20], rsi
test rdx, rdx
je 0x140005071
test rcx, rcx
je 0x14000506b
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
mov rcx, qword [rsp + 0x28]
and qword [rsp + 0x30], 0
test rcx, rcx
je 0x140005082
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.140020374
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140020030
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140005ea4
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
mov rsi, rdx
mov rbx, rcx
call fcn.1400014ec
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140005f69
mov rax, qword [rax]
call qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
add rax, 0x18
mov rcx, rsi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x140005f51
test eax, eax
js 0x140005f74
mov rcx, qword [rbx]
lea r8d, [rbp + 1]
mov edx, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub edx, eax
or r8d, edx
jge 0x140005f15
mov edx, eax
mov rcx, rbx
call fcn.140001b94
mov rdx, qword [rbx]
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140005f30
mov eax, ebp
jmp 0x140005f3d
movsxd rdx, dword [rcx - 0xc]
call fcn.14003042c
test eax, eax
js 0x140005f74
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140005f74
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400013e0
int3
mov ecx, 0x80070057
call fcn.1400013e0
int3

Function at 0x140005f80
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbx, rdx
mov esi, ecx
test rdx, rdx
jne 0x140005fb8
mov eax, 0x80070057
jmp 0x140006073
mov rcx, rbx
call fcn.140001910
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140038590
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
jns 0x140006057
movzx ecx, sil
cmp ecx, 0x26
jne 0x140006004
lea rdx, str.ProgramFiles
jmp 0x140006010
cmp ecx, 0x1c
jne 0x140006044
lea rdx, str.LocalAppData
lea rcx, [rsp + 0x30]
call fcn.140005ea4
mov rdx, rax
mov rcx, rbx
call fcn.140001868
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006044
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov ecx, 1
cmp dword [rax - 0x10], 0
cmovne edi, ecx
mov eax, edi
jmp 0x140006073
lea rcx, [rsp + 0x40]
call fcn.140030300
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001980
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140020030
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140006264
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400014ec
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x14000632b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov esi, 0x103
mov qword [rbx], rax
lea edi, [rsi + 1]
test edi, edi
js 0x140006336
mov rax, qword [rbx]
mov edx, 1
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x1400062c9
mov edx, edi
mov rcx, rbx
call fcn.140001b94
mov rcx, qword [rbx]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x1400062f6
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400062ed
mov eax, ebp
jmp 0x1400062f6
movsxd rdx, dword [rcx - 0xc]
call fcn.14003042c
test eax, eax
js 0x140006336
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140006336
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x1400062a0
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400013e0
int3
mov ecx, 0x80070057
call fcn.1400013e0
int3

Function at 0x140006344
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.1400014ec
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x14000640b
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov esi, 0x103
mov qword [rbx], rax
lea edi, [rsi + 1]
test edi, edi
js 0x140006416
mov rax, qword [rbx]
mov edx, 1
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x1400063a9
mov edx, edi
mov rcx, rbx
call fcn.140001b94
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x1400063d6
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400063cd
mov eax, ebp
jmp 0x1400063d6
movsxd rdx, dword [rcx - 0xc]
call fcn.14003042c
test eax, eax
js 0x140006416
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140006416
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x140006380
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400013e0
int3
mov ecx, 0x80070057
call fcn.1400013e0
int3
Function at 0x140006b38
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140050040]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
mov rdi, rdx
xor eax, eax
xor edx, edx
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x20], xmm0
mov rbx, rcx
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x140006b82
mov eax, 0x80070002
jmp 0x140006bdc
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
xor eax, eax
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x140006bae
xor r8d, r8d
jmp 0x140006bbb
mov r8d, dword [rsp + 0x20]
shr r8d, 4
and r8d, 1
xor r8d, 1
mov rdx, rdi
add r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140006bda
call fcn.14000cde4
jmp 0x140006bdc
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140020030
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140006e9c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
test edx, edx
jle 0x140006fc3
mov r10, r8
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
jmp 0x140006f1f
sub r9d, 4
js 0x140006fc3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbx]
mov byte [r10 + 1], al
movzx eax, byte [r11 + 2]
movzx ecx, byte [r11 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbx]
mov byte [r10 + 2], al
movzx eax, byte [r11 + 2]
add r11, 3
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r10 + 3], al
add r10, 4
sub edx, 3
cmp edx, 2
jg 0x140006eb8
sub edx, 1
je 0x140006f83
cmp edx, 1
jne 0x140006fbb
sub r9d, 3
js 0x140006fc3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx ecx, byte [r11]
movzx eax, byte [r11 + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbx]
mov byte [r10 + 1], al
movzx eax, byte [r11 + 1]
and eax, 0xf
mov al, byte [rbx + rax*4]
mov byte [r10 + 2], al
lea eax, [r9 - 1]
test eax, eax
js 0x140006fc3
mov byte [r10 + 3], 0x3d
jmp 0x140006fb7
sub r9d, 2
js 0x140006fc3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx ecx, byte [r11]
and ecx, 3
add rcx, rcx
mov cl, byte [rbx + rcx*8]
mov byte [r10 + 1], cl
lea ecx, [r9 - 2]
test ecx, ecx
js 0x140006fc3
mov word [r10 + 2], 0x3d3d
add r10, 4
sub r10d, r8d
mov eax, r10d
jmp 0x140006fc5
xor eax, eax
mov rbx, qword [rsp + 8]
ret