joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003cf0c
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140033f04
xor ebx, ebx
mov rdi, rax
cmp qword [0x140069d90], rbx
jne 0x14003d012
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14003d0e7
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003d0e7
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140069d90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140053fd0]
mov rcx, rsi
mov qword [0x140069d98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140069da0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140069db0], rax
test rax, rax
je 0x14003d009
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140069da8], rax
jmp 0x14003d019
mov rax, qword [0x140069da8]
jmp 0x14003d020
mov rax, qword [0x140069da8]
mov r11, qword [0x140069db0]
cmp rax, rdi
je 0x14003d088
cmp r11, rdi
je 0x14003d088
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140069db0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14003d088
test rax, rax
je 0x14003d088
call rsi
test rax, rax
je 0x14003d082
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14003d082
test byte [rsp + 0x38], 1
jne 0x14003d088
bts ebp, 0x15
jmp 0x14003d0c6
mov rcx, qword [0x140069d98]
cmp rcx, rdi
je 0x14003d0c6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003d0c6
call rax
mov rbx, rax
test rax, rax
je 0x14003d0c6
mov rcx, qword [0x140069da0]
cmp rcx, rdi
je 0x14003d0c6
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003d0c6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140069d90]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14003d0e7
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14003d0e9
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140002b10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400045e0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400045e0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002b80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000a0a4]
mov rbx, rcx
test esi, esi
jle 0x140002cb0
mov rax, qword [0x14000a0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002bcb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002c55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002bb0
mov rcx, rbx
call fcn.1400035d0
mov rdi, rax
test rax, rax
je 0x140002cd2
mov rax, qword [0x14000a0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003710
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002cb7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002c4e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002c60
add dword [0x14000a0a4], 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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002c4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002b10
nop dword [rax]
xor esi, esi
jmp 0x140002bd8
mov rax, qword [0x14000a0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002b10
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002b10
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003240
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000a100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x14000329c
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 eax, eax
jne 0x140003293
test rsi, rsi
je 0x140003293
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003278
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 0x1400035d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140006ac0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400035f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400035f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400035f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000364d
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 0x140003644
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400035f0
add rax, 0x28
cmp rax, r9
jne 0x140003630
xor eax, eax
ret

Function at 0x140003650
Capabilities:
Parse pe header

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

Function at 0x140003710
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140006ac0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000372f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140003738
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400019e0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x20
mov rbp, rdx
mov dword [rcx + 0x140], 0xffffffff
xor edx, edx
mov rbx, rcx
lea ecx, [rdx + 0xf]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbx + 0x138], rax
cmp rax, 0xffffffffffffffff
je 0x140001a7a
lea rdx, [rbx + 8]
mov qword [rsp + 0x38], rdi
mov rcx, rax
mov dword [rbx + 8], 0x130
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140001a68
mov qword [rsp + 0x30], rsi
mov rdx, rbp
lea rcx, [rbx + 0x34]
call qword [sym.imp.SHLWAPI.dll_StrStrIA]
test rax, rax
jne 0x140001a5a
mov rcx, qword [rbx + 0x138]
lea rdx, [rbx + 8]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140001a32
jmp 0x140001a63
mov eax, dword [rbx + 0x10]
mov dword [rbx + 0x140], eax
mov rsi, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x138]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x38]
mov eax, dword [rbx + 0x140]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rbp
ret

Function at 0x140002dfc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x140003598
Capabilities:
Parse pe header

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

Function at 0x140009608
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009404
Function at 0x14000e048
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 0x14000e078
xor eax, eax
jmp 0x14000e13b
mov rbp, rbx
cmp word [rax], si
je 0x14000e09d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000e084
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000e080
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.14000df68
movsxd r14, eax
test eax, eax
jne 0x14000e0db
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000e071
mov rcx, r14
call fcn.14000a408
mov rdi, rax
test rax, rax
jne 0x14000e0f4
xor ecx, ecx
call fcn.14000a3cc
jmp 0x14000e0d0
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.14000df68
test eax, eax
jne 0x14000e125
mov rcx, rdi
call fcn.14000a3cc
jmp 0x14000e12f
xor ecx, ecx
call fcn.14000a3cc
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 0x140002080
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 r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x14000217b
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x140002183
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ba
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x140002190
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021e5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000220b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x1400021f0
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
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
pop r12
ret

Function at 0x14000a2e0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
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 0x14000a325
xor al, al
jmp 0x14000a372
cmp word [rbx], 0
je 0x14000a33d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a330
cmp word [rsp + 0x30], 0
je 0x14000a36b
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a393
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a350
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b4f0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f5f8
int3
Function at 0x14000ab70
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001edd0
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dd70]
lea rsi, [0x140038db0]
mov rdi, rcx
test r11d, r11d
jne 0x14000abe9
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a3a0
test al, al
je 0x14000acc9
lea rcx, [rsp + 0x20]
call fcn.140013b58
movsxd r11, dword [0x14002dd70]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dd70], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000ac24
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 0x14000ac14
add rax, 2
test ecx, ecx
jne 0x14000ac00
test edx, edx
je 0x14000ac47
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000abf4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ac30
cmp rax, 2
jne 0x14000ac4b
cmp word [rdi + 2], 0x3a
jne 0x14000ac4b
mov al, 1
jmp 0x14000aca8
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 0x14000ac76
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ac9d
mov bl, 1
cmp dword [0x14002dd70], 0x400
jge 0x14000ac9d
mov rcx, rdi
call fcn.140013b58
movsxd rdx, dword [0x14002dd70]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dd70], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b4f0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000a9c0
int3
Function at 0x14000adf0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd78]
test rcx, rcx
je 0x14000ae2b
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000ae1e
mov rcx, qword [0x14002dd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002dd88], 0
je 0x14000af1e
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140028850]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400365b0]
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 0x14000aeff
test al, 0x10
je 0x14000aeff
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 0x14000aea5
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 0x14000bdf8
Capabilities:
Parse pe header

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

Function at 0x14000f5ec
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 0x14000f44b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f44b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f44b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f44b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f44b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f44b
cmp dword [rcx + 0xf8], 0
je 0x14000f44b
mov ecx, ebx
call fcn.14000f508
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.14000f2d8
nop
cmp dword [rbp + 0x20], 0
je 0x14000f499
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f4a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f3dc
Function at 0x1400188c4
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 0x14001894b
mov rsi, rbx
cmp word [rax], bp
je 0x14001890a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400188f4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400188f0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016104
mov rdi, rax
test rax, rax
je 0x140018938
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d3c0
mov rbp, rdi
xor ecx, ecx
call fcn.140015234
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 0x14001ece0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001ed08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001ed08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14000bba0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test rcx, rcx
je 0x14000bcda
test rdx, rdx
je 0x14000bcda
test r8, r8
je 0x14000bcda
lea rdx, [rsp + 0x50]
mov r9d, 2
mov rcx, rbp
call fcn.140009c40
cmp rax, 2
je 0x14000bc00
mov eax, 0x80004005
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov eax, 0x5a4d
cmp word [rsp + 0x50], ax
jne 0x14000bbed
lea r8, [rdi + 0x3c]
lea rdx, [rsp + 0x20]
mov r9d, 4
mov rcx, rbp
call fcn.140009c40
cmp rax, 4
jne 0x14000bbed
mov qword [rsp + 0x58], rbx
mov ebx, dword [rsp + 0x20]
add rbx, rdi
test r12, r12
je 0x14000bc3e
mov qword [r12], rbx
lea r8, [rbx + 4]
lea rdx, [rsp + 0x50]
mov r9d, 2
mov rcx, rbp
call fcn.140009c40
cmp rax, 2
jne 0x14000bccc
movzx eax, word [rsp + 0x50]
cmp eax, 0x14c
je 0x14000bcb0
cmp eax, 0x8664
jne 0x14000bccc
mov r9d, 0x108
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140009c40
cmp rax, 0x108
jne 0x14000bccc
mov eax, 0x40
cmp dword [rsi], 0x4550
mov ecx, 0x80004005
cmovne eax, ecx
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov r9d, pe_nt_image_headers64
mov r8, rbx
mov rdx, rsi
mov rcx, rbp
call fcn.140009c40
cmp rax, 0xf8
je 0x14000bcd3
mov eax, 0x80004005
jmp 0x14000bc9d
mov eax, 0x20
jmp 0x14000bc8f
mov eax, 0x80070057
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x140005634
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400056b8
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400073b0]
cmp byte [rcx + rax], 0
je 0x1400056b8
dec r8
sub rdx, 1
jne 0x14000569e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000678c
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14006f93c
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f934
cmp dword [rcx + 0x3c], edx
jl 0x14006f934
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14006f934
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14006f93c
mov rax, rdx
add rsp, 0x18
ret