joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140107920
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 [0x140241038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
call fcn.140107c70
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryThreadCycleTime]
movsd xmm0, qword [0x140259970]
xorpd xmm6, xmm6
ucomisd xmm0, xmm6
jne 0x14010797e
jnp 0x1401079e4
ucomisd xmm0, xmm6
jne 0x140107986
jnp 0x1401079e0
movsd xmm1, qword [rsp + 0x28]
unpcklps xmm1, xmmword [0x14021a3d0]
subpd xmm1, xmmword [0x14021a3e0]
movapd xmm2, xmm1
unpckhpd xmm2, xmm1
addsd xmm2, xmm1
divsd xmm2, xmm0
mulsd xmm2, qword [0x140218ac0]
cvttsd2si rax, xmm2
mov qword [rsi], rax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1401542e0
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
xor eax, eax
jmp 0x1401079b8
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 [0x140259980]
mov ecx, dword [0x140251494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140107af9
mov eax, dword [0x140259990]
mov ecx, dword [0x140251494]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140107b33
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 [0x140259988]
cvtsi2sd xmm1, r13
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rdi]
divsd xmm1, xmm0
xorpd xmm0, xmm0
movsd xmm2, qword [0x1402276a0]
ucomisd xmm2, xmm1
ja 0x14010797e
shl r14, 0x20
or rbx, r14
sub rbx, qword [0x140259978]
movq xmm0, rbx
punpckldq xmm0, xmmword [0x14021a3d0]
subpd xmm0, xmmword [0x14021a3e0]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x140259970], xmm0
jmp 0x14010797e
lea rcx, [0x140259980]
call fcn.140153800
cmp dword [0x140259980], 0xffffffff
jne 0x140107a2d
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140259978], rdx
lea rcx, [0x140259980]
call fcn.140153898
jmp 0x140107a2d
lea rcx, [0x140259990]
call fcn.140153800
cmp dword [0x140259990], 0xffffffff
jne 0x140107a52
lea rbx, [rsp + 0x30]
mov qword [rbx], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rbx]
mov qword [0x140259988], rax
lea rcx, [0x140259990]
call fcn.140153898
jmp 0x140107a52
Function at 0x140107e20
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 0x140107eba
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140107ea4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140107e81
mov qword [rsi], rdi
call fcn.14011e5e0
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 0x140107ebe
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14011e5e0
mov rcx, qword [rsi]
call fcn.140106db0
mov qword [rsi], 0
jmp 0x140107e6f
mov byte [rsi + 8], 0
int3
Function at 0x14011d260
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14011d28a
call fcn.14011e5e0
cmp qword [rsi], r14
je 0x14011d2b9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14011d2d8
cmp r15, 2
jb 0x14011d2b1
mov qword [rsi], r14
call fcn.14011e5e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011e5e0
mov rcx, qword [rsi]
call fcn.140106db0
mov qword [rsi], 0
jmp 0x14011d2a3

Function at 0x140121d00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx eax, byte [0x140259d30]
and eax, 1
neg rax
cmp rax, 0xfffffffffffffffd
je 0x140121e5d
mov rsi, rcx
lea r14, [0x140229340]
movabs r15, 0xaaaaaaaaaaaaaaaa
movaps xmm6, xmmword [0x1402184a0]
lea rbx, [rsp + 0x30]
xor r12d, r12d
mov rax, r12
shl rax, 4
mov qword [rsp + 0x40], r15
movaps xmmword [rsp + 0x30], xmm6
mov rdx, qword [rax + r14]
test rdx, rdx
je 0x140121e6f
mov r13, qword [rax + r14 + 8]
mov byte [rsp + 0x47], r13b
cmp rbx, rdx
ja 0x140121d9c
lea rax, [rsp + r13*2]
add rax, 0x30
cmp rax, rdx
ja 0x140121e9b
lea r8, [r13*2]
mov rcx, rbx
call fcn.140156bc0
mov word [rsp + r13*2 + 0x30], 0
movzx eax, byte [rsp + 0x47]
mov edx, eax
and edx, 0x7f
test al, al
mov rcx, qword [rsp + 0x30]
mov r8, rbx
cmovs rdx, qword [rsp + 0x38]
cmovs r8, rcx
mov r9, qword [rsi + 8]
cmp r9, rdx
mov r10, rdx
cmovb r10, r9
test r10, r10
js 0x140121e6c
cmp rdx, r9
ja 0x140121e42
mov bpl, 1
test rdx, rdx
je 0x140121e61
mov r9, qword [rsi]
xor r10d, r10d
movzx r11d, word [r9 + r10*2]
cmp r11w, word [r8 + r10*2]
jne 0x140121e42
inc r10
cmp rdx, r10
jne 0x140121dfc
mov rdi, rdx
test al, al
js 0x140121e65
test bpl, bpl
je 0x140121e46
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1401542e0
mov rax, rdi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x140121e13
inc r12
movzx eax, byte [0x140259d30]
xor rax, 3
cmp r12, rax
jb 0x140121d5e
xor edi, edi
jmp 0x140121e1c
xor edi, edi
jmp 0x140121e13
call fcn.1401536dc
jmp 0x140121e17
int3
lea rax, str.string_view::string_view__CharT___size_t_:_received_nullptr
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_string_view
lea r9, str.__len__0____s___nullptr
mov r8d, 0x136
call fcn.140194730
lea rax, str.char_traits::copy_overlapped_range
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__stringchar_traits.h
lea r9, str.__s2_____s1____s2_____s1__n
mov r8d, 0x138
call fcn.140194730
int3
Function at 0x1401264e0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
mov dword [rcx], eax
mov qword [rcx + 8], rax
mov ecx, dword [rdx]
mov dword [rsi], ecx
mov dword [rdx], eax
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], rax
lea r14, [rbx + 1]
cmp r14, 2
jb 0x140126511
call fcn.14011e5e0
cmp qword [rsi + 8], rbx
je 0x140126543
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140126550
cmp r14, 2
jb 0x14012653b
mov qword [rsi + 8], rbx
call fcn.14011e5e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14011e5e0
mov rcx, qword [rsi + 8]
call fcn.140106db0
mov qword [rsi + 8], 0
jmp 0x14012652c

Function at 0x140126570
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov dword [rdx], 0
mov rbx, qword [rdx + 8]
mov qword [rdx + 8], 0
lea r14, [rbx + 1]
cmp r14, 2
jb 0x1401265a1
call fcn.14011e5e0
cmp qword [rsi + 8], rbx
je 0x1401265d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1401265e0
cmp r14, 2
jb 0x1401265cb
mov qword [rsi + 8], rbx
call fcn.14011e5e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.14011e5e0
mov rcx, qword [rsi + 8]
call fcn.140106db0
mov qword [rsi + 8], 0
jmp 0x1401265bc

Function at 0x140126600
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x140126632
call fcn.14011e5e0
cmp qword [rsi + 8], r14
je 0x140126664
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x14012667f
cmp r15, 2
jb 0x14012665c
mov qword [rsi + 8], r14
call fcn.14011e5e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140126697
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14011e5e0
mov rcx, qword [rsi + 8]
call fcn.140106db0
mov qword [rsi + 8], 0
jmp 0x14012664d
call fcn.14011e5e0
mov rcx, qword [rdi]
call fcn.140106db0
mov qword [rdi], 0
jmp 0x140126670
Function at 0x1401340f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14013411b
xor ecx, ecx
lea r9, [0x14022d140]
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 0x140134100
ret
Function at 0x140138500
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400d3d80]
mov qword [rsp + 0x20], rax
lea rcx, [0x14025fd00]
lea rdx, [0x1400d3c20]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140138594
cmp dword [0x14025fd08], 0
jne 0x140138590
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14025fd0c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140138590
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401542e0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140138578
call fcn.14016dd20
int3
Function at 0x14014fff0
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov byte [rcx], 0
mov eax, dword [0x140251494]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x1f8]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x1f8]
mov qword [rax + 0x1f8], rsi
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
mov qword [rsi + 0x38], 0
mov dword [rsi + 0x40], 0
mov byte [rsi + 0x50], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi + 0x58], r8
mov qword [rsi + 0x60], r9
test byte [0x1402441e0], 9
jne 0x140150085
mov byte [rsi + 0x30], 0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401542e0
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov byte [rsi + 0x30], 1
mov rax, qword [rdx]
mov rax, qword [rax + 8]
lea rdi, [rsp + 0x28]
mov rcx, rdx
mov rdx, rdi
call qword [case.0x1401bea20.0]
mov rax, qword [rdi]
mov qword [rsi + 0x20], rax
jmp 0x14015006e

Function at 0x140154544
Capabilities:
Parse pe header

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

Function at 0x1401549cc
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 0x140154a44
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140154a44
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 0x140154a44
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140154a38
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140154a56
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140154a26
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 0x140154a46
Function at 0x140167938
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 0x14016796f
call fcn.14016ade0
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.14016c490
xor eax, eax
jmp 0x1401679fd
mov rdx, r9
mov rcx, r8
call fcn.140167a20
mov rbx, rax
test rax, rax
je 0x1401679fa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140167a90]
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 0x1401679e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14016ae20
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401679ce
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401679dd
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14010d200
jmp 0x1401679fa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1401679f7
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 0x140167f90
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.14016cd08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14016cd08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401680e0
cmp rax, 0xffffffffffffffff
je 0x1401680e0
xor edi, edi
test rbp, rbp
jle 0x14016808b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14010d2a0
mov rbx, rax
test rax, rax
jne 0x140168018
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140168081
mov edx, 0x8000
mov ecx, r14d
call fcn.14016ddf8
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.140171610
cmp eax, 0xffffffff
je 0x140168061
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140168028
mov edx, r15d
mov ecx, r14d
call fcn.14016ddf8
jmp 0x140168081
cmp byte [rsi + 0x38], dil
je 0x140168078
cmp dword [rsi + 0x34], 5
jne 0x140168078
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x140168081
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14010d200
jmp 0x1401680f4
jns 0x1401680f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14016cd08
cmp rax, 0xffffffffffffffff
jne 0x1401680ac
cmp byte [rsi + 0x30], dil
je 0x1401680f4
mov edi, dword [rsi + 0x2c]
jmp 0x1401680f4
mov ecx, r14d
call fcn.14016b24c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401680f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1401680f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401680ed
mov eax, dword [rsi + 0x2c]
jmp 0x1401680f2
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14016cd08
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 0x14016b83c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14016b886
call fcn.14016ae00
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayDestroy
call fcn.14016ade0
mov dword [rax], SafeArrayDestroy
call fcn.14016c490
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401542e0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14016b891
lea eax, [rbx + 1]
jmp 0x14016b873
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 0x14016b871
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14016b873
Function at 0x14016d9d4
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, [0x1402523d0]
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 0x14016da2b
cmp word [rdx], r13w
jne 0x14016da2b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14016da30
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14016db55
mov r11d, SafeArrayDestroy
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14016db76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14016da69
mov rdx, r9
mov word [rbx], cx
jmp 0x14016da90
cmp r9, r8
jae 0x14016daa0
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 0x14016da4a
jmp 0x14016db55
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 0x14016db4a
cmp dword [rsp + 0x80], esi
je 0x14016db4a
lea r8, [0x1402523d0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14016db22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14016daf2
mov word [rbx], r13w
jmp 0x14016db52
mov ecx, SafeArrayDestroy
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 0x14016daff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14016db52
cmp word [rsp + 0x70], r13w
jne 0x14016db2f
cmp rbx, r14
je 0x14016daec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14016cd08
cmp word [rsp + 0x70], r13w
je 0x14016db55
mov ecx, SafeArrayDestroy
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, [0x1402523d0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14016db4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14016db55
Function at 0x140175824
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.140154280
sub rsp, rax
mov rax, qword [0x140241038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14016b1f4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140175873
mov rax, rbp
jmp 0x14017597b
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 + 0x2523d0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14016cdac
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x2523d0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140175977
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 0x140175977
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14016cdac
test rax, rax
js 0x140175977
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140175977
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140175969
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140175969
cmp byte [rcx], 0xd
jne 0x14017594f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14017595e
cmp byte [rcx + 1], 0xa
jne 0x14017595e
inc rcx
jmp 0x14017595e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x241350]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140175931
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14017597b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401542e0
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 0x14017db60
Capabilities:
Parse pe header

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

Function at 0x140187718
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.140181704
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 0x1401877b9
cmp ebx, dword [rsp + 0x30]
je 0x1401877b2
test esi, esi
je 0x1401877b2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14018778d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14018779a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140187777
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14018779e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401877bb
mov eax, 1
jmp 0x1401877bb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret