joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b79a0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400b7a50]
mov qword [rsp + 0x20], rax
lea rcx, [0x14016fff8]
lea rdx, [0x1400b7830]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b7a4a
cmp dword [0x140170000], 0
je 0x1400b7a08
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x1400b7a44
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140170004]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400b79ed
movsxd rax, esi
mov rax, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
je 0x1400b7a00
call fcn.1400e0180
int3
call fcn.1400f623c
int3

Function at 0x1400b7a80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400b7a50]
mov qword [rsp + 0x28], rax
lea rcx, [0x14016fff8]
lea rdx, [0x1400b7830]
lea r8, [rsp + 0x28]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400b7bae
cmp dword [0x140170000], 0
je 0x1400b7b08
mov rcx, rsi
mov rax, rdi
call qword [0x140146120]
xor eax, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
jne 0x1400b7b6d
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140170004]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
je 0x1400b7b73
lea r15, [0x140170008]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140170010]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov eax, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
cmp rcx, qword [0x140155cc0]
je 0x1400b7afb
call fcn.1400e0180
int3
mov ecx, 1
mov edx, 0x28
call fcn.140062810
test rax, rax
je 0x1400b7adc
mov r14, rax
mov ecx, dword [0x140170004]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1400b7b2c
mov rcx, r14
call fcn.1400626a0
jmp 0x1400b7adc
call fcn.1400f623c
int3
Function at 0x1400c2700
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
vmovdqu xmm4, xmmword [r9 - 0x80]
vmovdqu xmm2, xmmword [r11 + 0x20]
lea r13, [r10 - 1]
vmovups xmm15, xmmword [r9 - 0x70]
lea r12, [r9 - 0x60]
vpxor xmm9, xmm1, xmm4
add ebx, 0x6000000
jb 0x1400c2820
vpaddb xmm10, xmm1, xmm2
vpaddb xmm11, xmm10, xmm2
vpxor xmm10, xmm10, xmm4
vpaddb xmm12, xmm11, xmm2
vpxor xmm11, xmm11, xmm4
vpaddb xmm13, xmm12, xmm2
vpxor xmm12, xmm12, xmm4
vpaddb xmm14, xmm13, xmm2
vpxor xmm13, xmm13, xmm4
vpaddb xmm1, xmm14, xmm2
vpxor xmm14, xmm14, xmm4
jmp 0x1400c2760
vaesenc xmm9, xmm9, xmm15
vaesenc xmm10, xmm10, xmm15
vaesenc xmm11, xmm11, xmm15
vaesenc xmm12, xmm12, xmm15
vaesenc xmm13, xmm13, xmm15
vaesenc xmm14, xmm14, xmm15
vmovups xmm15, xmmword [r12]
lea r12, [r12 + 0x10]
dec r13d
jne 0x1400c2760
vmovdqu xmm3, xmmword [r12]
vaesenc xmm9, xmm9, xmm15
vpxor xmm4, xmm3, xmmword [rcx]
vaesenc xmm10, xmm10, xmm15
vpxor xmm5, xmm3, xmmword [rcx + 0x10]
vaesenc xmm11, xmm11, xmm15
vpxor xmm6, xmm3, xmmword [rcx + 0x20]
vaesenc xmm12, xmm12, xmm15
vpxor xmm8, xmm3, xmmword [rcx + 0x30]
vaesenc xmm13, xmm13, xmm15
vpxor xmm2, xmm3, xmmword [rcx + 0x40]
vaesenc xmm14, xmm14, xmm15
vpxor xmm3, xmm3, xmmword [rcx + 0x50]
lea rcx, [rcx + 0x60]
vaesenclast xmm9, xmm9, xmm4
vaesenclast xmm10, xmm10, xmm5
vaesenclast xmm11, xmm11, xmm6
vaesenclast xmm12, xmm12, xmm8
vaesenclast xmm13, xmm13, xmm2
vaesenclast xmm14, xmm14, xmm3
vmovups xmmword [rdx], xmm9
vmovups xmmword [rdx + 0x10], xmm10
vmovups xmmword [rdx + 0x20], xmm11
vmovups xmmword [rdx + 0x30], xmm12
vmovups xmmword [rdx + 0x40], xmm13
vmovups xmmword [rdx + 0x50], xmm14
lea rdx, [rdx + 0x60]
ret
vpshufb xmm6, xmm1, xmm0
vmovdqu xmm5, xmmword [r11 + 0x30]
vpaddd xmm10, xmm6, xmmword [r11 + 0x40]
vpaddd xmm11, xmm6, xmm5
vpaddd xmm12, xmm10, xmm5
vpshufb xmm10, xmm10, xmm0
vpaddd xmm13, xmm11, xmm5
vpshufb xmm11, xmm11, xmm0
vpxor xmm10, xmm10, xmm4
vpaddd xmm14, xmm12, xmm5
vpshufb xmm12, xmm12, xmm0
vpxor xmm11, xmm11, xmm4
vpaddd xmm1, xmm13, xmm5
vpshufb xmm13, xmm13, xmm0
vpxor xmm12, xmm12, xmm4
vpshufb xmm14, xmm14, xmm0
vpxor xmm13, xmm13, xmm4
vpshufb xmm1, xmm1, xmm0
vpxor xmm14, xmm14, xmm4
jmp 0x1400c2760
Function at 0x1400ce910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov esi, ecx
test r8, r8
je 0x1400ce996
mov rax, rdx
mov rdx, qword [rsp + 0x80]
mov r10d, esi
shr r10d, 8
lea r8, [rax + r8*2]
movzx ebx, byte [rax + 1]
xor edi, edi
mov rcx, rbx
lea r11, [rax + 2]
cmp byte [rax], r10b
jne 0x1400ce970
cmp rcx, rdx
ja 0x1400cea2d
cmp rcx, rdi
je 0x1400ce972
lea rbx, [rdi + 1]
cmp byte [r9 + rdi], sil
mov rdi, rbx
jne 0x1400ce950
jmp 0x1400ce992
ja 0x1400ce996
cmp r11, r8
je 0x1400ce996
movzx ebx, byte [rax + 3]
mov rax, r11
mov rdi, rcx
add rbx, rcx
jae 0x1400ce93b
lea rcx, [0x140132d68]
call fcn.1401151b0
xor edi, edi
jmp 0x1400cea12
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x28]
call fcn.1400cede0
mov dil, 1
test al, 1
je 0x1400cea12
movzx ebx, si
mov dil, 1
lea rsi, [rsp + 0x28]
nop
test dl, dl
js 0x1400ce9e0
movzx eax, dl
sub ebx, eax
jns 0x1400cea02
jmp 0x1400cea12
mov ebp, edx
mov rcx, rsi
call fcn.1400cede0
test al, 1
je 0x1400cea21
and bpl, 0x7f
movzx ecx, bpl
shl ecx, 8
movzx eax, dl
or eax, ecx
sub ebx, eax
js 0x1400cea12
xor dil, 1
mov rcx, rsi
call fcn.1400cede0
test al, 1
jne 0x1400ce9d0
and dil, 1
mov eax, edi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140132d80]
call fcn.1401154b0
lea r8, [0x140132d98]
call fcn.140115550
int3
Function at 0x1400d15f0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov rdi, qword [rdx + 8]
mov edx, 0x200
mov rbp, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r13d, 0xffffffff
cmp rdx, 0x201
jae 0x1400d1670
jmp 0x1400d165f
jae 0x1400d16f4
cmp rdx, 0x201
jae 0x1400d1670
mov r14d, 0x200
lea r15, [rsp + 0x48]
mov r12, rdx
jmp 0x1400d169e
sub rdx, qword [rsp + 0x40]
jb 0x1400d1764
lea rcx, [rsp + 0x30]
call fcn.1400d2530
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
cmp r14, r13
cmovae r14, r13
mov qword [rsp + 0x40], r14
mov r12, r14
xor ecx, ecx
call rbp
mov rcx, rdi
mov rdx, r15
mov r8d, r12d
call rsi
test eax, eax
jne 0x1400d16c0
mov ebx, eax
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov eax, ebx
test ecx, ecx
jne 0x1400d1715
mov edx, eax
cmp r12, rdx
jne 0x1400d1650
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400d1770
add r12, r12
cmp r12, r13
cmovae r12, r13
mov rdx, r12
cmp rdx, 0x201
jb 0x1400d165f
jmp 0x1400d1670
mov rax, rdx
cmp r14, rdx
jb 0x1400d1788
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, r15
mov r8, rax
call fcn.1400d2af0
jmp 0x1400d1738
call fcn.1400d6550
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400032b0
mov rcx, rdi
call fcn.1400d2160
mov rax, rsi
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str..._.._third_party_rust_toolchain_lib_rustlib_src_rust_library_std_src_syspalwindowsmod.rs
call fcn.1401151f0
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str..._.._third_party_rust_toolchain_lib_rustlib_src_rust_library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1401152b0
lea r8, str..._.._third_party_rust_toolchain_lib_rustlib_src_rust_library_std_src_syspalwindowsmod.rs
mov rcx, rax
mov rdx, r14
call fcn.140115550
int3
Function at 0x1400d17a0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x448
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov edx, 0x200
mov r13, qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, 0xffffffff
lea rdi, [rsp + 0x30]
cmp rdx, 0x201
jae 0x1400d1820
jmp 0x1400d180f
jae 0x1400d189f
cmp rdx, 0x201
jae 0x1400d1820
mov ebx, 0x200
lea r14, [rsp + 0x48]
mov r15, rdx
jmp 0x1400d184c
sub rdx, qword [rsp + 0x40]
jb 0x1400d190f
mov rcx, rdi
call fcn.1400d2530
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
cmp rbx, rsi
cmovae rbx, rsi
mov qword [rsp + 0x40], rbx
mov r15, rbx
xor ecx, ecx
call r13
mov ecx, r15d
mov rdx, r14
call rbp
test eax, eax
jne 0x1400d186e
mov r12d, eax
call sub.KERNEL32.dll_GetLastError
mov ecx, eax
mov eax, r12d
test ecx, ecx
jne 0x1400d18c0
mov edx, eax
cmp r15, rdx
jne 0x1400d1800
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400d191b
add r15, r15
cmp r15, rsi
cmovae r15, rsi
mov rdx, r15
cmp rdx, 0x201
jb 0x1400d180f
jmp 0x1400d1820
mov rax, rdx
cmp rbx, rdx
jb 0x1400d1933
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, r14
mov r8, rax
call fcn.1400d2af0
jmp 0x1400d18e3
call fcn.1400d6550
shl rax, 0x20
or rax, 2
mov rsi, qword [rsp + 0x28]
mov qword [rsi + 8], rax
movabs rax, 0x8000000000000000
mov qword [rsi], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.1400032b0
mov rcx, rdi
call fcn.1400d2160
mov rax, rsi
add rsp, 0x448
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, str..._.._third_party_rust_toolchain_lib_rustlib_src_rust_library_std_src_syspalwindowsmod.rs
call fcn.1401151f0
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str..._.._third_party_rust_toolchain_lib_rustlib_src_rust_library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.1401152b0
lea r8, str..._.._third_party_rust_toolchain_lib_rustlib_src_rust_library_std_src_syspalwindowsmod.rs
mov rcx, rax
mov rdx, rbx
call fcn.140115550
int3
Function at 0x1400d3ee0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0xb0
mov rsi, rcx
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x70], r9
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], rax
movups xmm0, xmmword [0x140135510]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r8, rax
cmovb rax, r8
xor r8d, r8d
test r9b, 1
cmove rcx, r8
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x1400d3f77
mov rcx, rsi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x1400d3fab
test eax, eax
js 0x1400d3f8b
mov rdx, qword [rsp + 0x68]
xor eax, eax
add rsp, 0xb0
pop rsi
ret
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0xb0
pop rsi
ret
mov dword [rsp + 0x58], 0
mov byte [rsp + 0x5c], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x90], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x80]
call fcn.1400d3290
mov rcx, rax
call fcn.1400d0260
mov ecx, 7
int 0x29
ud2
Function at 0x1400e0b00
Capabilities:
Parse pe header

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

Function at 0x1400e0e48
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 0x1400e0ec0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400e0ec0
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 0x1400e0ec0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400e0eb4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400e0ed2
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400e0ea2
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 0x1400e0ec2

Function at 0x1400f12b0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x1400f12b0
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 0x1400f131f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400f131f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400f131f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400f131f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400f131f
cmp dword [rcx + 0x84], 0xe
jbe 0x1400f131f
cmp dword [rcx + 0xf8], 0
je 0x1400f131f
mov ecx, ebx
call fcn.1400f11e8
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.1400f1444
nop
cmp dword [rbp + 0x20], 0
je 0x1400f136d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400f127c
int3
Function at 0x1400f4308
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14013a2d8]
mov rbp, rcx
call fcn.14010892c
xor edi, edi
test rax, rax
je 0x1400f43ee
mov ebx, edi
call fcn.1400f3fa4
mov r14d, dword [rax]
call fcn.1400f3fa4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400f8bac
mov rsi, rax
test rax, rax
je 0x1400f437f
call fcn.1400f3fa4
mov dword [rax], r14d
jmp 0x1400f43a9
call fcn.1400f3fa4
cmp dword [rax], 0x22
jne 0x1400f43e6
call fcn.1400f3fa4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400f8bac
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400f43e6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400f43ad
cmp rax, 3
je 0x1400f43c8
mov rcx, rsi
call fcn.1400f4264
test al, al
je 0x1400f43d9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400f43d9
mov dil, 1
mov rcx, rbx
call fcn.1400626a0
mov al, dil
jmp 0x1400f43f0
mov rcx, rbx
call fcn.1400626a0
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400e0180
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1400f5ef8
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, [0x1401709b0]
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 0x1400f5f4f
cmp word [rdx], r13w
jne 0x1400f5f4f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400f5f54
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400f6079
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400f609a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400f5f8d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400f5fb4
cmp r9, r8
jae 0x1400f5fc4
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 0x1400f5f6e
jmp 0x1400f6079
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 0x1400f606e
cmp dword [rsp + 0x80], esi
je 0x1400f606e
lea r8, [0x1401709b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400f6046
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400f6016
mov word [rbx], r13w
jmp 0x1400f6076
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 0x1400f6023
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400f6076
cmp word [rsp + 0x70], r13w
jne 0x1400f6053
cmp rbx, r14
je 0x1400f6010
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140107538
cmp word [rsp + 0x70], r13w
je 0x1400f6079
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, [0x1401709b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400f6073
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400f6079
Function at 0x140100130
Capabilities:
Parse pe header

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

Function at 0x14010a0e8
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.140103d54
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 0x14010a189
cmp ebx, dword [rsp + 0x30]
je 0x14010a182
test esi, esi
je 0x14010a182
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14010a15d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14010a16a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14010a147
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14010a16e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14010a18b
mov eax, 1
jmp 0x14010a18b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14010b1b0
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 0x14010b1e0
xor eax, eax
jmp 0x14010b2a3
mov rbp, rbx
cmp word [rax], si
je 0x14010b205
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14010b1ec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14010b1e8
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.14010b0d0
movsxd r14, eax
test eax, eax
jne 0x14010b243
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14010b1d9
mov rcx, r14
call fcn.140062740
mov rdi, rax
test rax, rax
jne 0x14010b25c
xor ecx, ecx
call fcn.1400626a0
jmp 0x14010b238
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.14010b0d0
test eax, eax
jne 0x14010b28d
mov rcx, rdi
call fcn.1400626a0
jmp 0x14010b297
xor ecx, ecx
call fcn.1400626a0
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 0x14010b2c0
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 0x14010b347
mov rsi, rbx
cmp word [rax], bp
je 0x14010b306
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14010b2f0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14010b2ec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140062740
mov rdi, rax
test rax, rax
je 0x14010b334
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401145c0
mov rbp, rdi
xor ecx, ecx
call fcn.1400626a0
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 0x14010e5bc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140155cc0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14010e606
call fcn.1400f3fc4
mov dword [rax], 0xf
call fcn.1400f3fa4
mov dword [rax], 0xd
call fcn.1400f62e4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400e0180
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14010e611
lea eax, [rbx + 1]
jmp 0x14010e5f3
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 0x14010e5f1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14010e5f3

Function at 0x14010ef60
Capabilities:
Get file size

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