joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053a30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x140053a67
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140053a67
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x140053a67
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
jmp 0x140053a66

Function at 0x140054cc0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb78], 0x8000
jne 0x140054dd4
mov rsi, rcx
movzx eax, word [0x14013b5f0]
lea rax, [rax + rax*4]
cmp dword [rcx + rax*8 + 0x60], 0x200
jne 0x140054dd7
lea rcx, [0x14013b5a8]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140054ddd
cmp byte [0x14014aee8], 0
je 0x140054d4a
lea rcx, [0x14013b5a8]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x14014aef0], rsi
jne 0x140054dda
lea rax, [0x140054e00]
mov qword [0x1401509e8], rax
add rsi, 0x48
xor eax, eax
lea rcx, [0x14014aea0]
jmp 0x140054dad
cmp qword [0x1401509d8], 0
jne 0x140054dee
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140054df1
mov dword [0x14014ae98], eax
mov dword [0x1401509e0], eax
lea rax, [0x140018cb0]
mov qword [0x1401509d8], rax
mov byte [0x14014aee8], 1
jmp 0x140054d0f
mov dl, 0x80
jmp 0x140054d9d
cmp edx, 0x201
setb dl
shl dl, 4
add dl, 0x10
mov byte [rax + rcx], dl
inc rax
add rsi, 0x28
cmp rax, 0x48
je 0x140054dca
cmp qword [rsi], 0
je 0x140054dd0
mov edx, dword [rsi + 0x18]
cmp edx, 0x81
jb 0x140054d8a
cmp edx, 0x101
jae 0x140054d8e
mov dl, 0x40
jmp 0x140054d9d
add rsp, 0x20
pop rsi
ret
xor edx, edx
jmp 0x140054d9d
int3
int3
int3
lea rcx, [0x14013b5a8]
call fcn.140063900
jmp 0x140054d06
int3
int3
Function at 0x14005b4b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
sub rsp, 0x30
movapd xmmword [rsp + 0x20], xmm6
mov ecx, 0x20
call fcn.14009f7f4
mov rsi, rax
mov edx, 4
mov rcx, rax
call fcn.14005a5a0
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
mov rax, rdx
sub rax, r8
sar rax, 2
lea rcx, [rax - 1]
cmp rcx, 2
jb 0x14005b5a8
add rax, 0xfffffffffffffffd
movq xmm0, rax
punpckldq xmm0, xmmword [0x14011cf40]
subpd xmm0, xmmword [0x14011cf50]
haddpd xmm0, xmm0
mov edx, 1
movdqa xmm1, xmmword [0x14011cf40]
movapd xmm2, xmmword [0x14011cf50]
movsd xmm3, qword [0x140126ec0]
nop
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
sar r9, 2
cmp r9, rdx
jbe 0x14005b64e
movq xmm4, rax
punpckldq xmm4, xmm1
subpd xmm4, xmm2
movapd xmm5, xmm4
unpckhpd xmm5, xmm4
addsd xmm5, xmm4
lea r9, [rdx - 1]
movq xmm4, r9
punpckldq xmm4, xmm1
subpd xmm4, xmm2
movapd xmm6, xmm4
unpckhpd xmm6, xmm4
addsd xmm6, xmm4
addsd xmm6, xmm6
addsd xmm6, xmm5
divsd xmm6, xmm0
addsd xmm6, xmm3
cvttsd2si r9d, xmm6
mov dword [r8 + rdx*4], r9d
dec rax
inc rdx
cmp rdx, rcx
jne 0x14005b530
mov r8, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, r8
je 0x14005b64e
mov dword [rdx - 4], 0x7fffffff
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, rax
sub rdx, r8
je 0x14005b661
js 0x14005b665
mov rcx, rdx
shr rcx, 2
test dl, 1
jne 0x14005b62f
mov rdx, r8
lea r9, [rax - 1]
cmp r9, r8
je 0x14005b61e
lea r8, [0x140128580]
movzx r9d, byte [rdx]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
movzx r9d, byte [rdx + 1]
movzx r10d, cl
xor r10d, r9d
shr ecx, 8
xor ecx, dword [r8 + r10*4]
add rdx, 2
cmp rdx, rax
jne 0x14005b5f0
mov dword [rsi + 0x18], ecx
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rsi
ret
movzx edx, byte [r8]
movzx r9d, cl
xor r9d, edx
lea rdx, [0x140128580]
shr ecx, 8
xor ecx, dword [rdx + r9*4]
lea rdx, [r8 + 1]
jmp 0x14005b5e0
lea rcx, [0x14011bc04]
lea rdx, str....._third_partylibc_srcinclude_vector:1393:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1400d43e0
xor ecx, ecx
jmp 0x14005b61e
int3
Function at 0x14005e7d0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14005e81c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14005e827
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14005e80a
mov qword [rdi], rsi
call fcn.14005e8a0
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14005e8a0
mov r14, qword [rdi]
cmp qword [0x14014ab58], 0
je 0x14005e858
mov rcx, qword [0x14014ab58]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14012df40]
mov qword [rdi], 0
jmp 0x14005e7f8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140127472]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14005e899
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14005e893
call qword [0x14012df40]
mov rcx, rax
xor edx, edx
call fcn.140021fb0
jmp 0x14005e839
xor ecx, ecx
mov dl, 1
jmp 0x14005e88c
xor ecx, ecx
jmp 0x14005e88a
Function at 0x14008b8d0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
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 0x14008b9d2
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14008b960
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14008b937
mov qword [rsi], rdi
call fcn.14005e8a0
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 0x14008b9d6
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14005e8a0
mov r14, qword [rsi]
cmp qword [0x14014ab58], 0
je 0x14008b991
mov rcx, qword [0x14014ab58]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14012df40]
mov qword [rsi], 0
jmp 0x14008b925
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140127472]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008b9d9
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14008b9cc
call qword [0x14012df40]
mov rcx, rax
xor edx, edx
call fcn.140021fb0
jmp 0x14008b972
xor ecx, ecx
mov dl, 1
jmp 0x14008b9c5
mov byte [rsi + 8], 0
int3
xor ecx, ecx
jmp 0x14008b9c3
Function at 0x1400906e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x1400907fa
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x1400907fa
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x1400907f3
add r9, 0x88
je 0x1400907f3
mov eax, dword [r9]
test rax, rax
je 0x1400907fa
add rax, rcx
je 0x1400907fa
cmp rdx, 0xffff
jbe 0x1400907ed
mov r10d, dword [rax + 0x20]
lea r9, [rcx + r10]
test r10, r10
cmove r9, r10
mov r10d, dword [rax + 0x18]
lea r10, [r9 + r10*4]
lea r11, [rdx + 1]
mov rsi, r9
jmp 0x140090786
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebp, bpl
movzx ebx, byte [rbx]
lea r14, [rdi + 4]
cmp ebp, ebx
cmovg rsi, r14
cmovs r10, rdi
cmp bpl, bl
je 0x1400907d2
cmp rsi, r10
je 0x1400907fa
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
mov bpl, byte [rdx]
test bpl, bpl
je 0x140090766
mov r14, r11
cmp bpl, byte [rbx]
jne 0x140090768
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x1400907bd
jmp 0x140090766
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x1400907f3
Function at 0x140095690
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140139028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14014a990]
mov ecx, dword [0x140147910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400956f4
mov rax, qword [0x14014a988]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400a19c0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14014a990]
call fcn.14009f910
cmp dword [0x14014a990], 0xffffffff
jne 0x1400956cc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400a3b00
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14009f7f4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14014a9d8]
mov ecx, dword [0x140147910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400957b4
lea r8, [0x14014a9a8]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140014850
mov qword [0x14014a988], rsi
lea rcx, [0x14014a990]
call fcn.14009f8b0
jmp 0x1400956cc
lea rcx, [0x14014a9d8]
call fcn.14009f910
cmp dword [0x14014a9d8], 0xffffffff
jne 0x140095785
xorps xmm0, xmm0
movups xmmword [0x14014a9c8], xmm0
movups xmmword [0x14014a9b8], xmm0
movups xmmword [0x14014a9a8], xmm0
lea rcx, [0x14014a9a8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14014a9d8]
call fcn.14009f8b0
jmp 0x140095785

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

Disassembly:
mov r9, qword [rcx]
mov rax, qword [rcx + 8]
mov r8, rax
sub r8, r9
je 0x140095b41
js 0x140095b45
mov rdx, r8
shr rdx, 2
test r8b, 1
jne 0x140095b22
mov r8, r9
lea r10, [rax - 1]
cmp r10, r9
je 0x140095b1e
lea r9, [0x140128580]
nop dword [rax]
movzx r10d, byte [r8]
movzx r11d, dl
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
movzx r10d, byte [r8 + 1]
movzx r11d, dl
xor r11d, r10d
shr edx, 8
xor edx, dword [r9 + r11*4]
add r8, 2
cmp r8, rax
jne 0x140095af0
mov dword [rcx + 0x18], edx
ret
movzx r8d, byte [r9]
movzx r10d, dl
xor r10d, r8d
lea r8, [0x140128580]
shr edx, 8
xor edx, dword [r8 + r10*4]
lea r8, [r9 + 1]
jmp 0x140095ad9
xor edx, edx
jmp 0x140095b1e
int3
Function at 0x1400a0cb4
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400a0d2c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400a0d2c
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400a0d2c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400a0d20
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400a0d3e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400a0d0e
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400a0d2e

Function at 0x1400a13cc
Capabilities:
Parse pe header

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

Function at 0x1400b1ab8
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 0x1400b1aef
call fcn.14009f890
mov dword [rax], 0x16
call fcn.1400c2e84
xor eax, eax
jmp 0x1400b1b7d
mov rdx, r9
mov rcx, r8
call fcn.1400b1ba0
mov rbx, rax
test rax, rax
je 0x1400b1b7a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b1c10]
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 0x1400b1b67
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b4988
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b1b4e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b1b5d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009ed60
jmp 0x1400b1b7a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b1b77
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 0x1400bcf40
Capabilities:
Parse pe header

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

Function at 0x1400c73c8
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.1400c0ae4
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 0x1400c7469
cmp ebx, dword [rsp + 0x30]
je 0x1400c7462
test esi, esi
je 0x1400c7462
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c743d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c744a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c7427
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c744e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c746b
mov eax, 1
jmp 0x1400c746b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c81a4
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 0x1400c81d4
xor eax, eax
jmp 0x1400c8297
mov rbp, rbx
cmp word [rax], si
je 0x1400c81f9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c81e0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c81dc
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.1400c80c4
movsxd r14, eax
test eax, eax
jne 0x1400c8237
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c81cd
mov rcx, r14
call fcn.140053cb0
mov rdi, rax
test rax, rax
jne 0x1400c8250
xor ecx, ecx
call fcn.14009ed60
jmp 0x1400c822c
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.1400c80c4
test eax, eax
jne 0x1400c8281
mov rcx, rdi
call fcn.14009ed60
jmp 0x1400c828b
xor ecx, ecx
call fcn.14009ed60
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 0x1400c82b4
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 0x1400c833b
mov rsi, rbx
cmp word [rax], bp
je 0x1400c82fa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c82e4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c82e0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140053cb0
mov rdi, rax
test rax, rax
je 0x1400c8328
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400a3450
mov rbp, rdi
xor ecx, ecx
call fcn.14009ed60
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 0x1400cb08c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140139028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400cb0d6
call fcn.1400b4968
mov dword [rax], 0xf
call fcn.14009f890
mov dword [rax], 0xd
call fcn.1400c2e84
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a19c0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400cb0e1
lea eax, [rbx + 1]
jmp 0x1400cb0c3
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 0x1400cb0c1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400cb0c3
Function at 0x1400cb6ac
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400cb6c2
mov al, 1
jmp 0x1400cb722
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400cb6d3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400cb720
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b4a9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400cb720
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400cb720
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400cb720
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400cb722
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400cf178
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.1400ac450
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400cf202
cmp byte [rbp - 0x21], r15b
je 0x1400cf1fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400cf238
call fcn.1400c12b4
test eax, eax
jne 0x1400cf224
cmp byte [rbp - 0x21], r15b
je 0x1400cf21c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400cf238
cmp byte [rbp - 0x21], r15b
je 0x1400cf235
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.1400b193c
test eax, eax
jne 0x1400cf2d8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400ac450
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400cf277
cmp byte [rbp - 0x21], r15b
je 0x1400cf2ac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400cf2ac
call fcn.1400c12b4
test eax, eax
jne 0x1400cf298
cmp byte [rbp - 0x21], r15b
je 0x1400cf291
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400cf2ac
cmp byte [rbp - 0x21], r15b
je 0x1400cf2a9
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.1400b193c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400cf2d8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400cf2db
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400cf2e9
mov rcx, rdi
call fcn.14009ed60
cmp byte [rbp + 0x3f], r15b
je 0x1400cf2f8
mov rcx, qword [rbp + 0x27]
call fcn.14009ed60
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 0x1400d29f0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x250
mov rax, qword [0x140139028]
xor rax, rsp
mov qword [rsp + 0x248], rax
mov sil, 1
cmp qword [0x14014aa60], 0
jne 0x1400d2ab0
mov rdi, qword [0x14014aa58]
test rdi, rdi
je 0x1400d2acd
cmp byte [rdi + 0x17], 0
jns 0x1400d2a36
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14014aa60], rax
inc rax
cmp rax, 1
ja 0x1400d2ab0
lea rdi, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400a3b00
mov word [rdi], 0
mov ecx, 0x104
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x1400d2ba7
xor esi, esi
mov rcx, qword [rsp + 0x248]
xor rcx, rsp
call fcn.1400a19c0
mov eax, esi
add rsp, 0x250
pop rbx
pop rdi
pop rsi
ret
mov ecx, 0x18
call fcn.14009f7f4
mov rdi, rax
lea rbx, [rsp + 0x40]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.1400a3b00
xor ecx, ecx
mov rdx, rbx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
movaps xmm0, xmmword [0x140118af0]
movups xmmword [rdi], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rdi + 0x10], rax
mov rcx, rdi
mov rdx, rbx
call fcn.1400d2d80
movzx ecx, byte [rdi + 0x17]
test cl, cl
mov rax, qword [rdi]
mov r8, qword [rdi + 8]
mov r9, rcx
cmovs r9, r8
mov r10, rdi
cmovs r10, rax
test r9, r9
jne 0x1400d2b64
lea rdx, str.debug.log
mov r8d, 9
mov rcx, rdi
call fcn.140092b50
mov qword [0x14014aa58], rdi
jmp 0x1400d2a2d
add r9, r9
test r9, r9
je 0x1400d2b43
lea rdx, [r9 - 2]
cmp word [r10 + r9 - 2], 0x5c
mov r9, rdx
jne 0x1400d2b67
cmp rdx, 0xfffffffffffffffe
je 0x1400d2b43
sar rdx, 1
lea r9, [rdx + 1]
test cl, cl
jns 0x1400d2c7c
cmp r8, rdx
jbe 0x1400d2c94
mov qword [rdi + 8], r9
mov word [rax + rdx*2 + 2], 0
jmp 0x1400d2b43
mov rcx, qword [0x14014aa58]
lea rdx, [rsp + 0x40]
call fcn.1400150f0
mov rcx, qword [0x14014aa58]
movzx eax, byte [rcx + 0x17]
test al, al
jns 0x1400d2c6f
mov rax, qword [rcx + 8]
test rax, rax
je 0x1400d2c91
mov rdx, qword [rcx]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x1400d2bfc
lea rdx, [0x14011dbba]
mov r8d, 1
call fcn.140092b50
mov rcx, qword [0x14014aa58]
lea rdx, str.debug.log
mov r8d, 9
call fcn.140092b50
mov rcx, qword [0x14014aa58]
cmp byte [rcx + 0x17], 0
jns 0x1400d2c1e
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x14014aa60], rax
inc rax
cmp rax, 1
ja 0x1400d2ab0
mov qword [0x14014aa60], 0
jmp 0x1400d2aae
test rax, rax
je 0x1400d2c91
mov rdx, rcx
jmp 0x1400d2bdb
cmp rdx, rcx
jae 0x1400d2c94
and r9b, 0x7f
mov byte [rdi + 0x17], r9b
mov rax, rdi
jmp 0x1400d2b9e
int3
int3