joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1402f2e90
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x50
movapd xmmword [rsp + 0x40], xmm6
mov rsi, rcx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.1402f31d0
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x1403f7560]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x1402f2eee
jnp 0x1402f2f54
ucomisd xmm0, xmm6
jne 0x1402f2efa
jnp 0x1402f3069
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x1403bcd90]
subpd xmm1, xmmword [0x1403bcda0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x1403bdd48]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140319a10
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rbx, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov edi, eax
call rbx
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x1403f7570]
mov ecx, dword [0x1403f3d34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402f3070
mov eax, dword [0x1403f7580]
mov ecx, dword [0x1403f3d34]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1402f30aa
rdtsc
mov rbx, rax
mov r14, rdx
xor r12d, r12d
lea r15, [rsp + 0x30]
mov qword [r15], r12
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r13, qword [r15]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r15], r12
lea rdi, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r13, qword [0x1403f7578]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1403c18e8]
ucomisd xmm2, xmm1
ja 0x1402f2eee
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x1403f7568]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x1403bcd90]
subpd xmm0, xmmword [0x1403bcda0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x1403f7560], xmm0
jmp 0x1402f2eee
xor eax, eax
jmp 0x1402f2f2c
lea rcx, [0x1403f7570]
call fcn.140318620
cmp dword [0x1403f7570], 0xffffffff
jne 0x1402f2f9d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x1403f7568], rdx
lea rcx, [0x1403f7570]
call fcn.1403186b8
jmp 0x1402f2f9d
lea rcx, [0x1403f7580]
call fcn.140318620
cmp dword [0x1403f7580], 0xffffffff
jne 0x1402f2fc2
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x1403f7578], rax
lea rcx, [0x1403f7580]
call fcn.1403186b8
jmp 0x1402f2fc2
Function at 0x1402f31f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1402f328a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1402f3274
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1402f3251
mov qword [rsi], rdi
call fcn.1402fdb50
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1402f328e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1402fdb50
mov rcx, qword [rsi]
call fcn.1402f2e40
mov qword [rsi], 0
jmp 0x1402f323f
mov byte [rsi + 8], 0
int3
Function at 0x140309120
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1403f3888]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140309154
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140309154
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14030914e

Function at 0x14030abd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14030abfb
xor ecx, ecx
lea r9, [0x1403c6410]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc rcx
cmp r8, rcx
jne 0x14030abe0
ret
Function at 0x14030c380
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140221d20]
mov qword [rsp + 0x20], rax
lea rcx, [0x1403fe608]
lea rdx, [0x140221b80]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14030c414
cmp dword [0x1403fe610], 0
jne 0x14030c410
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1403fe614]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14030c410
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140319a10
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14030c3f8
call fcn.14032e0b0
int3
Function at 0x140327968
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x14032799f
call fcn.14032ae10
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14032c7cc
xor eax, eax
jmp 0x140327a2d
mov rdx, r9
mov rcx, r8
call fcn.140327a50
mov rbx, rax
test rax, rax
je 0x140327a2a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140327ac0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140327a17
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14032ae50
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1403279fe
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140327a0d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1402f3640
jmp 0x140327a2a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140327a27
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140327b94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140327cdc
Function at 0x140327fc0
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.14032d098
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14032d098
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140328110
cmp rax, 0xffffffffffffffff
je 0x140328110
xor edi, edi
test rbp, rbp
jle 0x1403280bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1402f36e0
mov rbx, rax
test rax, rax
jne 0x140328048
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1403280b1
mov edx, 0x8000
mov ecx, r14d
call fcn.14032e188
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.140331b0c
cmp eax, 0xffffffff
je 0x140328091
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140328058
mov edx, r15d
mov ecx, r14d
call fcn.14032e188
jmp 0x1403280b1
cmp byte [rsi + 0x38], dil
je 0x1403280a8
cmp dword [rsi + 0x34], 5
jne 0x1403280a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
cmp byte [rsi + 0x30], dil
je 0x1403280b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1402f3640
jmp 0x140328124
jns 0x140328124
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14032d098
cmp rax, 0xffffffffffffffff
jne 0x1403280dc
cmp byte [rsi + 0x30], dil
je 0x140328124
mov edi, dword [rsi + 0x2c]
jmp 0x140328124
mov ecx, r14d
call fcn.14032baec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140328124
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recvfrom
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recvfrom
jmp 0x140328124
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14032811d
mov eax, dword [rsi + 0x2c]
jmp 0x140328122
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14032d098
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 0x14032b68c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1403199a0
sub rsp, rax
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14032b224
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14032b6db
mov rax, rbp
jmp 0x14032b7e3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x3f4ec0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14032d13c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x3f4ec0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14032b7df
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14032b7df
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14032d13c
test rax, rax
js 0x14032b7df
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14032b7df
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14032b7d1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14032b7d1
cmp byte [rcx], 0xd
jne 0x14032b7b7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14032b7c6
cmp byte [rcx + 1], 0xa
jne 0x14032b7c6
inc rcx
jmp 0x14032b7c6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3e4320]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14032b799
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14032b7e3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140319a10
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14032dd64
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1403f4ec0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14032ddbb
cmp word [rdx], r13w
jne 0x14032ddbb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14032ddc0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14032dee5
mov r11d, recvfrom
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14032df06
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14032ddf9
mov rdx, r9
mov word [rbx], cx
jmp 0x14032de20
cmp r9, r8
jae 0x14032de30
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14032ddda
jmp 0x14032dee5
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14032deda
cmp dword [rsp + 0x80], esi
je 0x14032deda
lea r8, [0x1403f4ec0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14032deb2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14032de82
mov word [rbx], r13w
jmp 0x14032dee2
mov ecx, recvfrom
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14032de8f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14032dee2
cmp word [rsp + 0x70], r13w
jne 0x14032debf
cmp rbx, r14
je 0x14032de7c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14032d098
cmp word [rsp + 0x70], r13w
je 0x14032dee5
mov ecx, recvfrom
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1403f4ec0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14032dedf
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14032dee5
Function at 0x140346818
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1403407a4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1403468b9
cmp ebx, dword [rsp + 0x30]
je 0x1403468b2
test esi, esi
je 0x1403468b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14034688d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14034689a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140346877
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14034689e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1403468bb
mov eax, 1
jmp 0x1403468bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140347d1c
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 0x140347d4c
xor eax, eax
jmp 0x140347e0f
mov rbp, rbx
cmp word [rax], si
je 0x140347d71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140347d58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140347d54
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.140347c3c
movsxd r14, eax
test eax, eax
jne 0x140347daf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140347d45
mov rcx, r14
call fcn.140209660
mov rdi, rax
test rax, rax
jne 0x140347dc8
xor ecx, ecx
call fcn.1402f3640
jmp 0x140347da4
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.140347c3c
test eax, eax
jne 0x140347df9
mov rcx, rdi
call fcn.1402f3640
jmp 0x140347e03
xor ecx, ecx
call fcn.1402f3640
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 0x140347e2c
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 0x140347eb3
mov rsi, rbx
cmp word [rax], bp
je 0x140347e72
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140347e5c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140347e58
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140209660
mov rdi, rax
test rax, rax
je 0x140347ea0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14031b320
mov rbp, rdi
xor ecx, ecx
call fcn.1402f3640
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 0x14034a404
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.1403221d8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14034a48e
cmp byte [rbp - 0x21], r15b
je 0x14034a489
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14034a4c4
call fcn.140340f74
test eax, eax
jne 0x14034a4b0
cmp byte [rbp - 0x21], r15b
je 0x14034a4a8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14034a4c4
cmp byte [rbp - 0x21], r15b
je 0x14034a4c1
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.1403277ec
test eax, eax
jne 0x14034a564
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403221d8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14034a503
cmp byte [rbp - 0x21], r15b
je 0x14034a538
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14034a538
call fcn.140340f74
test eax, eax
jne 0x14034a524
cmp byte [rbp - 0x21], r15b
je 0x14034a51d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14034a538
cmp byte [rbp - 0x21], r15b
je 0x14034a535
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.1403277ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14034a564
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14034a567
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14034a575
mov rcx, rdi
call fcn.1402f3640
cmp byte [rbp + 0x3f], r15b
je 0x14034a584
mov rcx, qword [rbp + 0x27]
call fcn.1402f3640
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 0x14034a68c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14034a6d6
call fcn.14032ae30
mov dword [rax], recvfrom
call fcn.14032ae10
mov dword [rax], recvfrom
call fcn.14032c7cc
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140319a10
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14034a6e1
lea eax, [rbx + 1]
jmp 0x14034a6c3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x14034a6c1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14034a6c3
Function at 0x14034bb1c
Capabilities:
Get file size

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

Function at 0x1403508e0
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140319a10
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x1402057e0
Function at 0x14036b3a0
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov edi, edx
mov rsi, rcx
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14036b415
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, edi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14036b41a
mov dil, 1
test bl, bl
je 0x14036b3fe
cmp byte [rsi + 8], 0
je 0x14036b46e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140319a10
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, qword [rsi]
jmp 0x14036b3cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rsi + 8], 0
je 0x14036b442
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14036b447
xor edi, edi
jmp 0x14036b3fe
mov rcx, qword [rsi]
jmp 0x14036b42f
mov dword [rsp + 0x24], 0xaaaaaaaa
cmp byte [rsi + 8], 0
je 0x14036b473
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dil, 1
jmp 0x14036b3fe
mov rcx, qword [rsi]
jmp 0x14036b3f3
mov rcx, qword [rsi]
jmp 0x14036b45e

Function at 0x14037a830
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rbx, rdx
mov rsi, rcx
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14037a86e
test rax, rax
je 0x14037a937
mov rcx, qword [rbx]
mov qword [rax], rcx
add rax, 8
mov qword [rsi + 8], rax
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
sub rax, qword [rsi]
mov r15, rax
sar r15, 3
lea rcx, [r15 + 1]
mov rdx, rcx
shr rdx, 0x3d
jne 0x14037a963
movabs rdx, 0x1fffffffffffffff
lea rdi, [rsi + 0x18]
mov r14, rax
shr r14, 2
cmp r14, rcx
cmovbe r14, rcx
movabs rcx, 0x7ffffffffffffff8
cmp rax, rcx
cmovae r14, rdx
test r14, r14
jne 0x14037a92a
xor eax, eax
shl r15, 3
add r15, rax
je 0x14037a937
lea rax, [rax + r14*8]
mov rcx, qword [rbx]
mov qword [r15], rcx
lea rcx, [r15 + 8]
mov rdx, qword [rsi]
mov r8, qword [rsi + 8]
cmp r8, rdx
je 0x14037a8f8
mov r9, qword [r8 - 8]
add r8, 0xfffffffffffffff8
mov qword [r15 - 8], r9
add r15, 0xfffffffffffffff8
cmp r8, rdx
jne 0x14037a8e0
mov rdx, qword [rsi]
mov qword [rsi], r15
mov qword [rsi + 8], rcx
mov r8, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rdx, rdx
je 0x14037a862
sub r8, rdx
sar r8, 3
mov rcx, rdi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14037aea0
mov rcx, rdi
mov rdx, r14
call fcn.14037b420
jmp 0x14037a8bd
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str........._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.140351370
mov rcx, rsi
call fcn.1403512e0
int3