joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060600
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
xor r12d, r12d
mov r15d, r12d
mov ebx, r12d
mov dword [rsp + 0x4c], r12d
mov byte [rsp + 0x48], bl
test rcx, rcx
je 0x1400606a6
lea r14, [rcx + 0x71048]
xor edx, edx
mov r8d, 0x1000
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x40], r14
mov esi, r12d
mov dword [rsp + 0x34], r12d
nop word [rax + rax]
cmp esi, dword [rdi + 0x73048]
jge 0x140060708
nop dword [rax]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x4c]
mov r8d, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rdi + 0x73080]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400606ad
mov eax, 1
jmp 0x140060718
cmp dword [rsp + 0x4c], 1
je 0x1400606b6
jmp 0x140060680
movzx eax, byte [rsp + 0x48]
mov byte [r14], al
inc r14
mov qword [rsp + 0x40], r14
add r15d, dword [rsp + 0x4c]
mov dword [rsp + 0x38], r15d
mov rdx, qword [rdi + 0x78]
test rdx, rdx
je 0x1400606fd
movsxd rcx, ebx
mov rax, qword [rdi + 0x70]
movzx ecx, byte [rcx + rax]
cmp byte [rsp + 0x48], cl
jne 0x1400606f6
inc ebx
mov dword [rsp + 0x30], ebx
cmp ebx, edx
je 0x140060708
jmp 0x1400606fd
mov ebx, r12d
mov dword [rsp + 0x30], ebx
inc esi
mov dword [rsp + 0x34], esi
jmp 0x140060670
mov dword [rdi + 0x73050], r15d
xor eax, eax
jmp 0x140060718
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x140060b50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
test rcx, rcx
je 0x140060b9f
lea rdx, [rcx + 0x72048]
mov qword [rsp + 0x20], 0
lea r9, [rcx + 0x73054]
mov r8d, dword [rcx + 0x7304c]
mov rcx, qword [rcx + 0x73080]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140060b9f
mov eax, dword [rbx + 0x73054]
cmp dword [rbx + 0x7304c], eax
je 0x140060baf
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor eax, eax
jmp 0x140060bb8
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14008fc00
Capabilities:
Create thread
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xor r15d, r15d
mov dword [r11 - 0x40], r15d
mov r14d, r15d
mov dword [r11 - 0x64], r15d
mov qword [r11 - 0x30], r15
mov qword [r11 - 0x38], r15
mov esi, r15d
mov qword [r11 - 0x60], r15
test rcx, rcx
je 0x14008fd49
test rdx, rdx
je 0x14008fd49
mov qword [r11 - 0x50], rcx
mov qword [r11 - 0x48], rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
test eax, eax
je 0x14008fd49
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x38], rsi
mov rbx, r15
mov qword [rsp + 0x40], rbx
mov ecx, r15d
mov dword [rsp + 0x30], ecx
cmp ecx, dword [rdi + 0xc]
jae 0x14008fcbb
mov eax, 1
shl rax, cl
or rbx, rax
mov qword [rsp + 0x40], rbx
inc ecx
jmp 0x14008fc9e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
je 0x14008fd49
mov r14d, 1
mov dword [rsp + 0x34], r14d
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
lea r9, [rsp + 0x48]
lea r8, [0x14008fa80]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rbx, rax
test rax, rax
je 0x14008fd49
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14008fd2f
cmp eax, 0x102
jne 0x14008fd2d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14008fd49
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
test eax, eax
je 0x14008fd49
xor eax, eax
jmp 0x14008fd75
nop
cmp r14d, 1
jne 0x14008fd62
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetProcessAffinityMask]
mov eax, 1
jmp 0x14008fd75
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140090530
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov rdi, rdx
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x20], rsi
test rcx, rcx
je 0x140090639
movzx eax, byte [rcx]
test al, al
je 0x140090639
cmp al, 0x5c
je 0x140090639
test rdi, rdi
je 0x140090639
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
je 0x140090635
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rsi, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140090639
lea r14, [rax + rdi]
mov rdi, rsi
mov qword [rsp + 0x30], rsi
nop dword [rax]
lea rdx, [0x1400fcedc]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x1400905d0
mov byte [rax], 0
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__access]
test eax, eax
je 0x140090601
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], 2
jne 0x140090639
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x140090601
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140090639
test rbx, rbx
je 0x140090619
mov byte [rbx], 0x5c
inc rbx
mov qword [rsp + 0x28], rbx
mov rdi, rbx
mov qword [rsp + 0x30], rbx
cmp rdi, r14
jae 0x140090623
test rbx, rbx
jne 0x1400905b0
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
xor eax, eax
jmp 0x140090664
nop
test rsi, rsi
je 0x140090651
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x20], 0
mov eax, 1
jmp 0x140090664
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x140091370
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x38
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], r8
mov r9d, 4
xor r8d, r8d
lea rdx, [0x1400e4c58]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x1400913a5
mov eax, 1
add rsp, 0x38
ret
xor eax, eax
jmp 0x1400913ae
add rsp, 0x38
ret

Function at 0x1400914a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], 4
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x34]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400914ed
cmp dword [rsp + 0x34], 4
je 0x140091509
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
Function at 0x140091f20
Capabilities:
Resume thread
Suspend thread
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x500], rax
movsxd r15, r9d
mov r12d, r8d
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
xor edx, edx
mov r8d, 0x4d0
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea r14d, [rbx + 1]
test rdi, rdi
je case.0x140091fb7.0
mov rax, qword [rsp + 0x560]
test rax, rax
je case.0x140091fb7.0
cmp byte [rax], bl
je case.0x140091fb7.0
test rsi, rsi
je 0x140091f9b
cmp dword [rsi + 0x20888], ebx
cmove r14d, ebx
cmp r15d, 5
ja case.0x140091fb7.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + r15*4 + 0x920b0]
add rcx, rdx
jmp rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne case.0x140091fb7.0
mov dword [rsp + 0x60], 0x10001f
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
setne bl
jmp case.0x140091fb7.0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140092070
xor r8d, r8d
mov rdx, rdi
lea rcx, [0x14008f640]
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
je 0x140092070
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x140092070
mov dword [rsp + 0x20], ebx
mov esi, 0x32
mov eax, 5
test r14d, r14d
cmovne esi, eax
mov edx, 0x32
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140092070
mov eax, ebx
inc ebx
mov dword [rsp + 0x20], ebx
cmp eax, esi
jae 0x140092055
jmp 0x140092032
test r14d, r14d
jne 0x140092070
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140092070
mov ebx, 1
jmp case.0x140091fb7.0
mov edx, r12d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, eax
mov eax, ebx
jmp 0x140092087
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.140001ea0
mov rbx, qword [rsp + 0x540]
add rsp, 0x510
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140092860
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, r8
mov rsi, rdx
xor r15d, r15d
mov qword [rsp + 0x30], r15
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
lea edx, [r15 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14009296a
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp rax, 0x30
jb 0x14009296a
cmp dword [rsp + 0x68], 0x1000
jne 0x14009296a
cmp qword [rsp + 0x48], rbx
jne 0x14009296a
mov rcx, qword [rsp + 0x60]
cmp rcx, 0x1e000
ja 0x14009296a
mov qword [rsp + 0x38], rcx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14009296a
lfence
mov r8, qword [rsp + 0x38]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x30]
mov rdx, r9
mov rcx, qword [rsp + 0x40]
call fcn.14008fef0
lfence
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x30], r15
mov rax, qword [rsp + 0x40]
mov qword [rsi], rax
mov rax, qword [rsp + 0x38]
mov qword [r14], rax
xor eax, eax
jmp 0x140092991
nop
test rbx, rbx
je 0x14009297e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rsp + 0x30], r15
mov eax, 1
jmp 0x140092991
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140001ea0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop r15
pop r14
pop rsi
ret

Function at 0x140092fa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
lea eax, [r9 + r9]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140093000
cmp eax, 0xea
je 0x140093000
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
xor eax, eax
jmp 0x140093009
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x48
ret
Function at 0x140093b90
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rdi
sub rsp, 0x70
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x30], 0xf4240
mov qword [rsp + 0x38], 0
xorps xmm0, xmm0
movsd qword [rsp + 0x28], xmm0
lea rax, [rsp + 0x58]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140093c19
cmp qword [rsp + 0x48], 0
jne 0x140093c1e
jmp 0x140093d07
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140093c39
jmp 0x140093d07
mov rcx, qword [rsp + 0x30]
call fcn.140001530
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140093c5e
jmp 0x140093d07
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
sub rcx, rax
mov rax, rcx
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x1400b6f60]
cvtsi2sd xmm1, qword [rsp + 0x48]
divsd xmm0, xmm1
movsd qword [rsp + 0x28], xmm0
movsd xmm0, qword [rsp + 0x28]
comisd xmm0, xmmword [0x1400b6eb0]
jbe 0x140093d07
mov rax, qword [rsp + 0x30]
test rax, rax
jl 0x140093cad
cvtsi2sd xmm0, rax
jmp 0x140093cc6
mov rcx, rax
shr rcx, 1
and rax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
movaps xmm0, xmm1
divsd xmm0, qword [rsp + 0x28]
xor eax, eax
comisd xmm0, xmmword [0x1400b6fa8]
jb 0x140093cf7
subsd xmm0, qword [0x1400b6fa8]
comisd xmm0, xmmword [0x1400b6fa8]
jae 0x140093cf7
movabs rcx, 0x8000000000000000
add rax, rcx
cvttsd2si rcx, xmm0
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
jmp 0x140093d15
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x70
pop rdi
ret
Function at 0x1400952d0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x470
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x54], ax
mov rsi, 0xffffffffffffffff
lea rsi, [rsi + 1]
cmp word [rdi + rsi*2], 0
jne 0x140095325
lea r15, [rdi - 2]
lea r15, [r15 + rsi*2]
xor r12d, r12d
mov dword [rsp + 0x34], r12d
mov dword [rsp + 0x30], r12d
mov ebx, r12d
nop dword [rax + rax]
cmp ebx, 0x1a
jae 0x14009548e
xor eax, eax
mov dword [rsp + 0x50], eax
mov word [rsp + 0x54], ax
lea eax, [rbx + 0x41]
mov dword [rsp + 0x20], eax
lea r9, [0x140100a18]
mov edx, 3
lea r8, [rdx - 4]
lea rcx, [rsp + 0x50]
call fcn.140001140
mov word [rsp + 0x54], r12w
xor edx, edx
mov r8d, 0x3fc
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x1fe
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov r14d, eax
test eax, eax
jne 0x1400953c2
inc ebx
mov dword [rsp + 0x34], ebx
jmp 0x140095350
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
cmp rdi, rax
jne 0x140095483
test rax, rax
je 0x140095483
cmp r14d, 1
jbe 0x14009548e
cmp r14d, 0x1fe
jae 0x14009548e
lea eax, [r14 - 2]
lea rdx, [rdi + rax*2]
mov qword [rsp + 0x38], rdx
lea rcx, [rdi + 4]
mov qword [rsp + 0x40], rcx
mov rax, r15
sub rax, rdx
sar rax, 1
lea rbx, [rax*2 + 4]
mov qword [rsp + 0x48], rbx
cmp rdx, r15
jae 0x14009548e
cmp rcx, r15
jae 0x14009548e
cmp rcx, rdx
jae 0x14009548e
test rbx, rbx
je 0x14009548e
lea rax, [rsi + rsi]
cmp rbx, rax
jae 0x14009548e
lfence
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x140100174]
mov edx, 3
lea r8, [rdx - 4]
mov rcx, rdi
call fcn.140001140
mov r8, rbx
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call sub.VCRUNTIME140.dll_memmove
mov dword [rsp + 0x30], 1
jmp 0x14009549d
inc ebx
mov dword [rsp + 0x34], ebx
jmp 0x140095350
nop
mov eax, 1
jmp 0x1400954a6
xor eax, eax
jmp 0x1400954a6
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001ea0
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x1400954e0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x868
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x850], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], eax
xor edx, edx
mov r8d, 0x7f8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
nop
lea rdx, [rsp + 0x50]
mov ecx, 0x3fc
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140095557
lea r8, [rsp + 0x20]
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x140095557
test dword [rsp + 0x20], 0x455d47
jne 0x140095557
xor eax, eax
jmp 0x14009556b
nop
mov eax, 1
jmp 0x14009556b
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x868
ret
Function at 0x140097e50
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x1400c1008]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, r9
mov r14, r8
mov rsi, rdx
mov r12, qword [rsp + 0xd0]
xor r13d, r13d
mov ebx, r13d
mov qword [r11 - 0x68], rbx
mov dword [r11 - 0x50], r13d
mov qword [r11 - 0x58], r13
mov qword [r11 - 0x48], r13
lea rax, [r11 - 0x50]
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x80], r13
mov qword [rsp + 0x20], r13
mov rcx, 0xffffffff80000002
mov r9d, 0xffff
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140097f4a
mov edi, dword [rsp + 0x58]
add rdi, rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x58], edi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140097f4a
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r13
mov r9d, 0xffff
mov r8, r14
mov rdx, rsi
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x140097f4a
mov edi, dword [rsp + 0x58]
shr rdi, 1
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov qword [rsp + 0x50], rax
test rax, rax
jne 0x140097f6c
nop
test rbx, rbx
je 0x140097f5e
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], r13
mov eax, 1
jmp 0x140097fb4
mov r8, rdi
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], 0xffffffffffffffff
mov r9, rbx
mov r8, rdi
mov rdx, rsi
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs_s]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rsp + 0x40], r13
mov qword [r15], rsi
mov qword [r12], rdi
xor eax, eax
jmp 0x140097fb4
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140001ea0
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a5dc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x1400a5e84
cmp word [rbx], 0
je 0x1400a5e84
lfence
lea rdx, [0x1401105b0]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400a5e1a
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x1400a5e84
lfence
lea rdx, [0x140110598]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rbx, rax
test rax, rax
je 0x1400a5e84
cmp edi, 2
jbe 0x1400a5e84
lea r8, [rdi*2 - 2]
cmp r8, 0x12
jb 0x1400a5e5f
movups xmm0, xmmword [0x140110580]
movups xmmword [rax], xmm0
movzx eax, word [reloc.WS2_32.dll_WSAStartup]
mov word [rbx + 0x10], ax
jmp 0x1400a5e7b
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x1400a5e8e
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a5ea0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x1400a5f56
cmp byte [rbx], 0
je 0x1400a5f56
lfence
lea rdx, [0x140110660]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x1400a5ef4
mov byte [rax + 2], 0x57
jmp 0x1400a5f56
lfence
lea rdx, [0x140110650]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rbx, rax
test rax, rax
je 0x1400a5f56
cmp edi, 2
jbe 0x1400a5f56
lea r8, [rdi - 1]
cmp r8, 9
jb 0x1400a5f36
movsd xmm0, qword [0x140110640]
movsd qword [rax], xmm0
movzx eax, byte [reloc.WS2_32.dll_WSAStartup]
mov byte [rbx + 8], al
jmp 0x1400a5f52
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov byte [rbx + 2], 0x57
mov eax, dword [rsp + 0x20]
jmp 0x1400a5f60
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x1400a5f80
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov edi, r8d
mov rbx, rdx
mov dword [rsp + 0x20], 0
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [rsp + 0x20], eax
test eax, eax
je 0x1400a6044
cmp word [rbx], 0
je 0x1400a6044
lfence
lea rdx, [0x1401106e8]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x1400a5fda
mov ecx, 0x57
mov word [rax + 4], cx
jmp 0x1400a6044
lfence
lea rdx, [0x1401106d0]
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
mov rbx, rax
test rax, rax
je 0x1400a6044
cmp edi, 2
jbe 0x1400a6044
lea r8, [rdi*2 - 2]
cmp r8, 0x12
jb 0x1400a601f
movups xmm0, xmmword [0x1401105c8]
movups xmmword [rax], xmm0
movzx eax, word [reloc.WS2_32.dll_WSAStartup]
mov word [rbx + 0x10], ax
jmp 0x1400a603b
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x22
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo]
mov ecx, 0x57
mov word [rbx + 4], cx
mov eax, dword [rsp + 0x20]
jmp 0x1400a604e
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret