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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140392210]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140113b75
jnp 0x140113b99
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016cc60
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140392220]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140113cae
mov eax, dword [0x140392230]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140113ce8
rdtsc
mov rdi, rax
mov rbx, rdx
xor r15d, r15d
lea r14, [rsp + 0x20]
mov qword [r14], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r12, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, esi
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [r14], r15
lea rsi, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub r12, qword [0x140392228]
xorps xmm0, xmm0
cvtsi2sd xmm0, r12
cvtsi2sd xmm1, qword [rsi]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x140306678]
ucomisd xmm1, xmm0
ja 0x140113b75
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140392218]
movq xmm6, rdi
punpckldq xmm6, xmmword [0x140306680]
subpd xmm6, xmmword [0x140306690]
haddpd xmm6, xmm6
divsd xmm6, xmm0
movsd qword [0x140392210], xmm6
jmp 0x140113b75
lea rcx, [0x140392220]
call fcn.14016b76c
cmp dword [0x140392220], 0xffffffff
jne 0x140113be2
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140392218], rdx
lea rcx, [0x140392220]
call fcn.14016b820
jmp 0x140113be2
lea rcx, [0x140392230]
call fcn.14016b76c
cmp dword [0x140392230], 0xffffffff
jne 0x140113c07
lea rdi, [rsp + 0x20]
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
mov qword [0x140392228], rax
lea rcx, [0x140392230]
call fcn.14016b820
jmp 0x140113c07
Function at 0x140117320
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1402faf80]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Read
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x42
call fcn.1401250e0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14011a140
mov ebp, 0xffffffff
test r14, r14
js 0x14011741c
test esi, esi
js 0x14011741c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140135430
test al, al
jne 0x140117462
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14011744a
mov ebp, dword [rsp + 0x2c]
test ebp, ebp
js 0x14011745d
lea rcx, [rsp + 0x30]
call fcn.1401354b0
lea rcx, [rsp + 0x60]
call fcn.14011a1c0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016cc60
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor ebp, ebp
cmp eax, 0x26
setne bpl
neg ebp
jmp 0x140117412
int3
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025bd60
jmp 0x1401173d4

Function at 0x140117480
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1402faf80]
lea r14, [rsp + 0x50]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.ReadAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x5f
call fcn.1401250e0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14011a140
test esi, esi
js 0x140117585
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140135430
test al, al
jne 0x140117591
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401175ad
mov esi, dword [rsp + 0x2c]
test esi, esi
js 0x14011758c
lea rcx, [rsp + 0x30]
call fcn.1401354b0
lea rcx, [rsp + 0x50]
call fcn.14011a1c0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14016cc60
mov eax, esi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14011755a
int3
mov r9d, esi
lea rdx, str.File::ReadAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025bd60
jmp 0x140117520
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x140117550
Function at 0x1401175c0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
mov esi, r9d
mov rdi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [0x1402faf80]
lea r12, [rsp + 0x60]
movaps xmmword [r12 + 0x30], xmm0
movaps xmmword [r12 + 0x20], xmm0
movaps xmmword [r12 + 0x10], xmm0
movaps xmmword [r12], xmm0
lea rdx, str.Write
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x7f
call fcn.1401250e0
mov rcx, r12
mov rdx, r15
xor r8d, r8d
call fcn.14011a140
mov ebp, 0xffffffff
test r14, r14
js 0x1401176b9
test esi, esi
js 0x1401176b9
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
call fcn.140135430
test al, al
jne 0x1401176e7
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], r15
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor ebp, ebp
cmp eax, 1
sbb ebp, ebp
or ebp, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.1401354b0
lea rcx, [rsp + 0x60]
call fcn.14011a1c0
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14016cc60
mov eax, ebp
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r9d, esi
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.14025bd60
jmp 0x140117670
Function at 0x140117710
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movaps xmm0, xmmword [0x1402faf80]
lea rdi, [rsp + 0x50]
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.CreateFileVersionInfoWin
lea r8, str....._base_file_version_info_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x4d
call fcn.1401250e0
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.14011a140
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x140117796
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x1401177df
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.14011a1c0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14016cc60
mov rax, rsi
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.14016b6ec
mov rdi, rax
lea r15, [rax + r14]
xor r12d, r12d
jmp 0x140117905
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x14011791f
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14011791f
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x14011791f
add r12, rdi
mov ecx, 0x38
call fcn.14016b6ec
mov rbx, rax
movzx r13d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.1400682e0
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x140380a88]
jne 0x1401178a5
mov rcx, rdi
call fcn.140025b30
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r13w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x9c]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x140315b32]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14011793c
mov rdi, qword [rsp + 0x30]
and r14, rdi
cmp r14, qword [0x140380a88]
jne 0x1401178f9
mov rcx, rdi
call fcn.140025b30
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
jmp 0x1401177ae
mov rax, rdi
add rax, r12
je 0x14011791d
mov byte [rax], 0
inc r12
cmp r14, r12
jne 0x140117905
jmp 0x1401177fb
ud2
mov qword [rsi], 0
test rdi, rdi
je 0x1401177ae
mov rcx, rdi
call fcn.14016b728
jmp 0x1401177ae
int3
Function at 0x140127a40
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.1401171e0
mov qword [rsi], 0
test rax, rax
je 0x140127a93
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140127ac7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140127a8b
mov qword [rsi], rbx
call fcn.140125100
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.140125d80
lea rcx, [rsi + 0x20]
call fcn.140135450
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.140125100
mov rcx, qword [rsi]
call fcn.140113440
mov qword [rsi], 0
jmp 0x140127a79
Function at 0x14012de40
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 0x14012deda
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14012dec4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14012dea1
mov qword [rsi], rdi
call fcn.140125100
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 0x14012dede
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140125100
mov rcx, qword [rsi]
call fcn.140113440
mov qword [rsi], 0
jmp 0x14012de8f
mov byte [rsi + 8], 0
int3

Function at 0x14012e150
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1403947c8]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012e1b0
mov rsi, qword [0x1403947c0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14016cc60
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1403947c8]
call fcn.14016b76c
cmp dword [0x1403947c8], 0xffffffff
jne 0x14012e18c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401a5660
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.14016b6ec
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140394830]
mov ecx, dword [0x14038f0a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012e270
lea r8, [0x140394800]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140093fc0
mov qword [0x1403947c0], rsi
lea rcx, [0x1403947c8]
call fcn.14016b820
jmp 0x14012e18c
lea rcx, [0x140394830]
call fcn.14016b76c
cmp dword [0x140394830], 0xffffffff
jne 0x14012e241
xorps xmm0, xmm0
movups xmmword [0x140394820], xmm0
movups xmmword [0x140394810], xmm0
movups xmmword [0x140394800], xmm0
lea rcx, [0x140394800]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140394830]
call fcn.14016b820
jmp 0x14012e241
Function at 0x140130d20
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
sub rsp, 0x28
movsxd rax, dword [rdx + 8]
test rax, rax
je 0x140130e23
mov rsi, rcx
mov rcx, qword [rdx]
xor r8d, r8d
xor r9d, r9d
or r9, qword [rcx + r8*8]
inc r8
cmp rax, r8
jne 0x140130d3f
test r9, r9
je 0x140130e23
test eax, eax
jle 0x140130e63
mov rcx, qword [rdx]
test byte [rcx], 1
je 0x140130e63
cmp dword [rdx + 0x10], 0
jne 0x140130ec1
cmp eax, 0x401
jae 0x140130e83
lea rdi, [rsi + 0x18]
mov rcx, rdi
call fcn.14009a370
test rax, rax
je 0x140130ee4
mov eax, dword [rsi + 0x20]
test eax, eax
jle 0x140130e5b
mov rcx, qword [rdi]
mov edx, eax
cmp qword [rcx + rdx*8 - 8], 0
jne 0x140130db9
lea edx, [rax - 1]
cmp eax, 1
mov eax, edx
jg 0x140130da0
jmp 0x140130e48
mov dword [rsi + 0x20], eax
mov rax, qword [rdi]
mov rax, qword [rax]
mov r9d, 1
mov edx, 0x40
xor ecx, ecx
movabs r8, 0x8000000000000000
mov r10d, r9d
and r10d, 1
neg r10
mov r11, rax
and r11, r10
mov rdi, r11
and rdi, r9
xor r11, r9
shr r11, 1
add r11, rdi
and r10, r8
shr rcx, 1
or rcx, r10
mov r9, r11
dec rdx
jne 0x140130dd9
mov qword [rsi + 0x30], rcx
mov qword [rsi + 0x38], 0
mov esi, 1
mov eax, esi
add rsp, 0x28
pop rdi
pop rsi
ret
mov dword [rsp + 0x20], 0xaa
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x69
call fcn.1402821d0
jmp 0x140130e1a
mov dword [rsi + 0x20], 0
mov dword [rsi + 0x28], 0
jmp 0x140130dbc
jne 0x140130dbc
jmp 0x140130e4f
mov dword [rsp + 0x20], 0xae
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x68
jmp 0x140130e41
mov r9d, 0x400
xor r8d, r8d
or r8, qword [rcx + r9*8]
inc r9
cmp rax, r9
jne 0x140130e8c
test r8, r8
je 0x140130d7d
mov dword [rsp + 0x20], 0xb6
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x66
jmp 0x140130e41
mov dword [rsp + 0x20], 0xb2
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x6d
jmp 0x140130e41
mov dword [rsp + 0x20], ILCreateFromPathW
lea r9, str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
xor esi, esi
mov ecx, 3
xor edx, edx
mov r8d, 0x44
jmp 0x140130e41
Function at 0x140138170
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140138199
xor eax, eax
xor r9d, r9d
nop word [rax + rax]
movzx r10d, byte [rdx + rax]
xor r10b, byte [rcx + rax]
or r9b, r10b
inc rax
cmp r8, rax
jne 0x140138180
movzx eax, r9b
ret
xor eax, eax
ret
Function at 0x140144810
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400c4690]
mov qword [rsp + 0x20], rax
lea rcx, [0x14039a908]
lea rdx, [0x1400c44e0]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1401448a4
cmp dword [0x14039a910], 0
jne 0x1401448a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x14039a914]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1401448a0
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016cc60
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x140144888
call fcn.140184880
int3

Function at 0x140144ce0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14038ebe8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140144d16
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140144d16
add rax, rcx
mov rax, qword [rax]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x140144d10
Function at 0x140157930
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx], 0
mov eax, dword [0x14038f0a0]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
lea rcx, [rax + 0x228]
mov qword [rsi + 8], rcx
mov rcx, qword [rax + 0x228]
mov qword [rax + 0x228], 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
mov rax, qword [str.0_9_]
movzx eax, byte [rax + 0x80]
test al, al
setne byte [rsi + 0x30]
jne 0x1401579d0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14016cc60
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rbx, [rsi + 0x20]
lea rdi, [rsp + 0x20]
mov rcx, rdx
mov rdx, rdi
call fcn.140119190
mov rax, qword [rdi]
mov qword [rbx], rax
jmp 0x1401579b8
Function at 0x14016c1a4
Capabilities:
Parse pe header

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

Function at 0x14016c46c
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 0x14016c4e4
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14016c4e4
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 0x14016c4e4
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14016c4d8
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14016c4f6
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14016c4c6
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 0x14016c4e6

Function at 0x14017e7a0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x14017e7a0
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 0x14017e80f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14017e80f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14017e80f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14017e80f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14017e80f
cmp dword [rcx + 0x84], 0xe
jbe 0x14017e80f
cmp dword [rcx + 0xf8], 0
je 0x14017e80f
mov ecx, ebx
call fcn.14017e6d8
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.14017e934
nop
cmp dword [rbp + 0x20], 0
je 0x14017e85d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14017e76c
int3
Function at 0x14017eae0
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.1401837d8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401837d8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14017ec30
cmp rax, 0xffffffffffffffff
je 0x14017ec30
xor edi, edi
test rbp, rbp
jle 0x14017ebdb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140083ab0
mov rbx, rax
test rax, rax
jne 0x14017eb68
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14017ebd1
mov edx, 0x8000
mov ecx, r14d
call fcn.140184958
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.1401891d4
cmp eax, 0xffffffff
je 0x14017ebb1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14017eb78
mov edx, r15d
mov ecx, r14d
call fcn.140184958
jmp 0x14017ebd1
cmp byte [rsi + 0x38], dil
je 0x14017ebc8
cmp dword [rsi + 0x34], 5
jne 0x14017ebc8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
cmp byte [rsi + 0x30], dil
je 0x14017ebd1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140083930
jmp 0x14017ec44
jns 0x14017ec44
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401837d8
cmp rax, 0xffffffffffffffff
jne 0x14017ebfc
cmp byte [rsi + 0x30], dil
je 0x14017ec44
mov edi, dword [rsi + 0x2c]
jmp 0x14017ec44
mov ecx, r14d
call fcn.14018269c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14017ec44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohl
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], ntohl
jmp 0x14017ec44
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14017ec3d
mov eax, dword [rsi + 0x2c]
jmp 0x14017ec42
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401837d8
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 0x140181f24
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 [0x14037e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1402f2e30]
mov rbp, rcx
call fcn.14018ec20
xor edi, edi
test rax, rax
je 0x14018200a
mov ebx, edi
call fcn.1401817e4
mov r14d, dword [rax]
call fcn.1401817e4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140188e58
mov rsi, rax
test rax, rax
je 0x140181f9b
call fcn.1401817e4
mov dword [rax], r14d
jmp 0x140181fc5
call fcn.1401817e4
cmp dword [rax], 0x22
jne 0x140182002
call fcn.1401817e4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140188e58
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140182002
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140181fc9
cmp rax, 3
je 0x140181fe4
mov rcx, rsi
call fcn.140181e80
test al, al
je 0x140181ff5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140181ff5
mov dil, 1
mov rcx, rbx
call fcn.140083930
mov al, dil
jmp 0x14018200c
mov rcx, rbx
call fcn.140083930
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14016cc60
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret