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

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

Function at 0x140056ae0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
cmp dword [rcx + 0xb78], 0x8000
jne 0x140056bf4
mov rsi, rcx
movzx eax, word [0x14013d648]
lea rax, [rax + rax*4]
cmp dword [rcx + rax*8 + 0x60], 0x200
jne 0x140056bf7
lea rcx, [0x14013d600]
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140056bfd
cmp byte [0x14014cf08], 0
je 0x140056b6a
lea rcx, [0x14013d600]
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
xor eax, eax
lock cmpxchg qword [0x14014cf10], rsi
jne 0x140056bfa
add rsi, 0x48
lea rax, [0x140056c20]
mov qword [0x140152a60], rax
xor eax, eax
lea rcx, [0x14014cec0]
jmp 0x140056bcd
cmp qword [0x140152a50], 0
jne 0x140056c0e
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140056c11
mov dword [0x14014ceb8], eax
mov dword [0x140152a58], eax
lea rax, [0x140016dd0]
mov qword [0x140152a50], rax
mov byte [0x14014cf08], 1
jmp 0x140056b2f
mov dl, 0x80
jmp 0x140056bbd
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 0x140056bea
cmp qword [rsi], 0
je 0x140056bf0
mov edx, dword [rsi + 0x18]
cmp edx, 0x81
jb 0x140056baa
cmp edx, 0x101
jae 0x140056bae
mov dl, 0x40
jmp 0x140056bbd
add rsp, 0x20
pop rsi
ret
xor edx, edx
jmp 0x140056bbd
int3
int3
int3
lea rcx, [0x14013d600]
call fcn.140068660
jmp 0x140056b26
int3
int3

Function at 0x140057750
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x1400577cd
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 0x14005779c
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14005778a
mov qword [rdi], rsi
call fcn.140057820
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140057820
mov r14, qword [rdi]
cmp qword [0x14014cbe0], 0
je 0x1400577d7
mov rcx, qword [0x14014cbe0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x14012fc00]
mov qword [rdi], 0
jmp 0x140057778
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401281f5]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140057818
lea rcx, [sym.opera.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140057812
call qword [0x14012fc00]
mov rcx, rax
xor edx, edx
call fcn.14002cd30
jmp 0x1400577ae
xor ecx, ecx
mov dl, 1
jmp 0x14005780b
xor ecx, ecx
jmp 0x140057809
Function at 0x1400640a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x58
movapd xmmword [rsp + 0x40], xmm8
movapd xmmword [rsp + 0x30], xmm7
movapd xmmword [rsp + 0x20], xmm6
mov r11, qword [r8]
mov r10, qword [r8 + 8]
mov rax, r10
sub rax, r11
sar rax, 2
lea r9, [rax - 1]
cmp r9, 2
jb 0x1400641a3
cvtsi2sd xmm0, ecx
cvtsi2sd xmm1, edx
add rax, 0xfffffffffffffffd
movq xmm2, rax
punpckldq xmm2, xmmword [0x14011d8d0]
subpd xmm2, xmmword [0x14011d8e0]
haddpd xmm2, xmm2
mov ecx, 1
movq xmm3, qword [0x14011d8d0]
movapd xmm4, xmmword [0x14011d8e0]
movsd xmm5, qword [0x140127a90]
nop dword [rax + rax]
mov rdx, qword [r8]
mov r10, qword [r8 + 8]
sub r10, rdx
sar r10, 2
cmp r10, rcx
jbe 0x14006424b
movq xmm6, rax
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm7, xmm6
unpckhpd xmm7, xmm6
addsd xmm7, xmm6
mulsd xmm7, xmm0
lea r10, [rcx - 1]
movq xmm6, r10
punpckldq xmm6, xmm3
subpd xmm6, xmm4
movapd xmm8, xmm6
unpckhpd xmm8, xmm6
addsd xmm8, xmm6
mulsd xmm8, xmm1
addsd xmm8, xmm7
divsd xmm8, xmm2
addsd xmm8, xmm5
cvttsd2si r10d, xmm8
mov dword [rdx + rcx*4], r10d
dec rax
inc rcx
cmp rcx, r9
jne 0x140064120
mov r11, qword [r8]
mov r10, qword [r8 + 8]
cmp r10, r11
je 0x14006424b
mov dword [r10 - 4], 0x7fffffff
mov r9, qword [r8]
mov rax, qword [r8 + 8]
mov rcx, rax
sub rcx, r9
je 0x14006425e
js 0x140064262
test cl, 1
jne 0x140064237
shr rcx, 2
mov rdx, r9
lea r10, [rax - 1]
cmp r10, r9
je 0x14006421e
lea r9, [0x14012a148]
nop dword [rax]
movzx r10d, cl
movzx r11d, byte [rdx]
xor r11d, r10d
shr ecx, 8
xor ecx, dword [r9 + r11*4]
movzx r10d, cl
movzx r11d, byte [rdx + 1]
xor r11d, r10d
shr ecx, 8
xor ecx, dword [r9 + r11*4]
add rdx, 2
cmp rdx, rax
jne 0x1400641f0
mov dword [r8 + 0x18], ecx
movaps xmm6, xmmword [rsp + 0x20]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x40]
add rsp, 0x58
ret
movzx ecx, byte [r9]
lea rdx, [0x14012a148]
mov ecx, dword [rdx + rcx*4]
lea rdx, [r9 + 1]
jmp 0x1400641d9
lea rcx, [0x14011c264]
lea rdx, str....._third_partylibc_srcinclude_vector:1411:_assertion___n___size___failed:_vector___index_out_of_bounds_n
call fcn.1400d1300
xor ecx, ecx
jmp 0x14006421e
int3
Function at 0x140091d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x140091e4a
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x140091e4a
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x140091e43
add r9, 0x88
je 0x140091e43
mov eax, dword [r9]
test rax, rax
je 0x140091e4a
add rax, rcx
je 0x140091e4a
cmp rdx, 0xffff
jbe 0x140091e3d
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 0x140091dd6
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 0x140091e22
cmp rsi, r10
je 0x140091e4a
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 0x140091db6
mov r14, r11
cmp bpl, byte [rbx]
jne 0x140091db8
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x140091e0d
jmp 0x140091db6
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 0x140091e43
Function at 0x140095060
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14013b040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14014c9f8]
mov ecx, dword [0x140149990]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400950c4
mov rax, qword [0x14014c9f0]
mov rsi, qword [rax + 0x58]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14009f1f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14014c9f8]
call fcn.14009d484
cmp dword [0x14014c9f8], 0xffffffff
jne 0x14009509c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400d0e60
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, 0x88
call fcn.14009d274
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14014ca40]
mov ecx, dword [0x140149990]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140095184
lea r8, [0x14014ca10]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140018180
mov qword [0x14014c9f0], rsi
lea rcx, [0x14014c9f8]
call fcn.14009d418
jmp 0x14009509c
lea rcx, [0x14014ca40]
call fcn.14009d484
cmp dword [0x14014ca40], 0xffffffff
jne 0x140095155
xorps xmm0, xmm0
movups xmmword [0x14014ca30], xmm0
movups xmmword [0x14014ca20], xmm0
movups xmmword [0x14014ca10], xmm0
lea rcx, [0x14014ca10]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14014ca40]
call fcn.14009d418
jmp 0x140095155

Function at 0x14009e5f4
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 0x14009e66c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14009e66c
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 0x14009e66c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14009e660
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14009e67e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14009e64e
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 0x14009e66e

Function at 0x14009eecc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009ef16
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009ef16
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009ef16
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14009ef16
cmp dword [rcx + 0x84], 0xe
jbe 0x14009ef16
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009ef18
xor al, al
add rsp, 0x28
ret
Function at 0x1400aea48
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 0x1400aea7f
call fcn.14009d2b0
mov dword [rax], 0x16
call fcn.1400c0714
xor eax, eax
jmp 0x1400aeb0d
mov rdx, r9
mov rcx, r8
call fcn.1400aeb30
mov rbx, rax
test rax, rax
je 0x1400aeb0a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400aeba0]
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 0x1400aeaf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400b1878
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400aeade
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400aeaed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009c600
jmp 0x1400aeb0a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400aeb07
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 0x1400aedbc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400aedbc
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400aee2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400aee2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400aee2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400aee2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400aee2b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400aee2b
cmp dword [rcx + 0xf8], 0
je 0x1400aee2b
mov ecx, ebx
call fcn.1400aecf4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400aef50
nop
cmp dword [rbp + 0x20], 0
je 0x1400aee79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400aed88
int3
Function at 0x1400b3138
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, [0x14014a8d0]
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 0x1400b318f
cmp word [rdx], r13w
jne 0x1400b318f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b3194
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b32b9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b32da
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b31cd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b31f4
cmp r9, r8
jae 0x1400b3204
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 0x1400b31ae
jmp 0x1400b32b9
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 0x1400b32ae
cmp dword [rsp + 0x80], esi
je 0x1400b32ae
lea r8, [0x14014a8d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b3286
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b3256
mov word [rbx], r13w
jmp 0x1400b32b6
mov ecx, 0xd
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 0x1400b3263
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b32b6
cmp word [rsp + 0x70], r13w
jne 0x1400b3293
cmp rbx, r14
je 0x1400b3250
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400c2064
cmp word [rsp + 0x70], r13w
je 0x1400b32b9
mov ecx, 0xd
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, [0x14014a8d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b32b3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b32b9
Function at 0x1400ba750
Capabilities:
Parse pe header

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

Function at 0x1400c4c58
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.1400be374
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 0x1400c4cf9
cmp ebx, dword [rsp + 0x30]
je 0x1400c4cf2
test esi, esi
je 0x1400c4cf2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400c4ccd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400c4cda
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400c4cb7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400c4cde
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400c4cfb
mov eax, 1
jmp 0x1400c4cfb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c5a34
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 0x1400c5a64
xor eax, eax
jmp 0x1400c5b27
mov rbp, rbx
cmp word [rax], si
je 0x1400c5a89
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c5a70
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c5a6c
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.1400c5954
movsxd r14, eax
test eax, eax
jne 0x1400c5ac7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c5a5d
mov rcx, r14
call fcn.140055d20
mov rdi, rax
test rax, rax
jne 0x1400c5ae0
xor ecx, ecx
call fcn.14009c600
jmp 0x1400c5abc
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.1400c5954
test eax, eax
jne 0x1400c5b11
mov rcx, rdi
call fcn.14009c600
jmp 0x1400c5b1b
xor ecx, ecx
call fcn.14009c600
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 0x1400c5b44
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 0x1400c5bcb
mov rsi, rbx
cmp word [rax], bp
je 0x1400c5b8a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c5b74
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c5b70
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140055d20
mov rdi, rax
test rax, rax
je 0x1400c5bb8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400d07c0
mov rbp, rdi
xor ecx, ecx
call fcn.14009c600
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 0x1400c826c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14013b040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400c82b6
call fcn.1400b1858
mov dword [rax], 0xf
call fcn.14009d2b0
mov dword [rax], 0xd
call fcn.1400c0714
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14009f1f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400c82c1
lea eax, [rbx + 1]
jmp 0x1400c82a3
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 0x1400c82a1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400c82a3

Function at 0x1400c888c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400c88a2
mov al, 1
jmp 0x1400c8902
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400c88b3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400c8900
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b198c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400c8900
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400c8900
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400c8900
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400c8902
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400cce88
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.1400a93e0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400ccf12
cmp byte [rbp - 0x21], r15b
je 0x1400ccf0d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400ccf48
call fcn.1400beb44
test eax, eax
jne 0x1400ccf34
cmp byte [rbp - 0x21], r15b
je 0x1400ccf2c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400ccf48
cmp byte [rbp - 0x21], r15b
je 0x1400ccf45
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.1400ae8cc
test eax, eax
jne 0x1400ccfe8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a93e0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400ccf87
cmp byte [rbp - 0x21], r15b
je 0x1400ccfbc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400ccfbc
call fcn.1400beb44
test eax, eax
jne 0x1400ccfa8
cmp byte [rbp - 0x21], r15b
je 0x1400ccfa1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400ccfbc
cmp byte [rbp - 0x21], r15b
je 0x1400ccfb9
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.1400ae8cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400ccfe8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400ccfeb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400ccff9
mov rcx, rdi
call fcn.14009c600
cmp byte [rbp + 0x3f], r15b
je 0x1400cd008
mov rcx, qword [rbp + 0x27]
call fcn.14009c600
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