joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140040690
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400407d9
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x1400eef60]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [0x140102e80]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [0x140102e80]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [0x140102e80]
test r14, r14
je 0x140040773
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x140040763
mov ecx, 1
call fcn.14005b220
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400407dd
call fcn.140002fe0
lea rax, [0x140001d60]
lea rcx, section..text
mov qword [rsi + 0xf8], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140062e50
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400407bc
bt eax, 9
jae 0x1400407f8
call fcn.1400040d0
lea rax, [0x1400045a0]
lea rcx, [0x1400042a0]
jmp 0x1400407a3
call fcn.1400d0120
lea rax, [0x1400d0920]
lea rcx, [0x1400d0000]
jmp 0x1400407a3

Function at 0x140041080
Capabilities:
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
test rcx, rcx
je 0x1400410f7
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140110be0], rax
jne 0x1400410fa
mov rsi, rcx
call fcn.140045240
mov edx, 0x570
mov rcx, rax
xor r8d, r8d
call fcn.140041100
mov rdi, rax
mov rcx, rax
mov rdx, rsi
call fcn.14005c1e0
mov ecx, dword [0x140122cc0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14011ccc8]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x160], rdi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
int3
int3

Function at 0x140042ef0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140042f50
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140042f59
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140042f39
int3
mov rcx, qword [rcx + 8]
jmp 0x140042ef0
Function at 0x140042f60
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r14, [rsp + 0x34]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0x34], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x140042ffe
mov eax, dword [rsp + 0x34]
test eax, eax
je 0x140042fea
cmp eax, 0xffffffff
je 0x140042fe7
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
je 0x140042f98
mov eax, dword [rsp + 0x34]
jmp 0x140042fc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140042fcb

Function at 0x140043720
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
cmovae r8, rdi
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140042f50
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x140042f59
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x140042f39
int3
mov rcx, qword [rcx + 8]
jmp 0x140042ef0

Function at 0x140043e30
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 [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140043e00]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140123b28]
lea rdx, [0x140043ca0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140043f28
cmp dword [0x140123b30], 0
jne 0x140043f35
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140123b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140043edc
mov ecx, 1
mov edx, 0x28
call fcn.140051430
test rax, rax
je 0x140043f35
mov r14, rax
mov ecx, dword [0x140123b34]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140043f2d
lea r15, [0x140123b38]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140123b40]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140062e50
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140079b60
mov rcx, r14
call fcn.140051390
mov rcx, rsi
mov rax, rdi
call qword [0x140102e80]
xor esi, esi
jmp 0x140043f0c
Function at 0x140045140
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140123b78], 0
jne 0x14004517d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140045170
mov dword [rdi], eax
mov dword [0x140123b80], eax
mov qword [0x140123b78], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x14004d3f0
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 0x14004d48a
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14004d474
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14004d451
mov qword [rsi], rdi
call fcn.140051a60
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 0x14004d48e
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140051a60
mov rcx, qword [rsi]
call fcn.140051a70
mov qword [rsi], 0
jmp 0x14004d43f
mov byte [rsi + 8], 0
int3

Function at 0x14004d610
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x14004d66e
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 0x14004d658
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14004d648
mov qword [rdi], rsi
call fcn.140051a60
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.140051a60
mov rcx, qword [rdi]
call fcn.140051a70
mov qword [rdi], 0
jmp 0x14004d636
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14005e220
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
mov rcx, qword [rdx + 8]
test rcx, rcx
js 0x14005e25c
je 0x14005e25b
mov rdx, qword [rdx]
xor r8d, r8d
lea r9, [0x1400fe7b4]
nop word [rax + rax]
movzx r10d, al
movzx r11d, byte [rdx + r8]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
inc r8
cmp rcx, r8
jne 0x14005e240
ret
int3
Function at 0x14005fb70
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140043e00]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x140123b28]
lea rdx, [0x140043ca0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14005fc02
cmp dword [0x140123b30], 0
jne 0x14005fbfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140123b34]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14005fbfe
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140062e50
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14005fbe6
call fcn.140079b60
int3

Function at 0x140062314
Capabilities:
Parse pe header

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

Function at 0x140062670
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 0x1400626e8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400626e8
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 0x1400626e8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400626dc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400626fa
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400626ca
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 0x1400626ea
Function at 0x140074848
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 0x14007487f
call fcn.1400778a4
mov dword [rax], 0x16
call fcn.140079c08
xor eax, eax
jmp 0x14007490d
mov rdx, r9
mov rcx, r8
call fcn.140074930
mov rbx, rax
test rax, rax
je 0x14007490a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400749a0]
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 0x1400748f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400778e4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400748de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400748ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140051390
jmp 0x14007490a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140074907
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 0x140074bbc
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140074bbc
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 0x140074c2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140074c2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140074c2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140074c2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140074c2b
cmp dword [rcx + 0x84], 0xe
jbe 0x140074c2b
cmp dword [rcx + 0xf8], 0
je 0x140074c2b
mov ecx, ebx
call fcn.140074af4
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.140074d50
nop
cmp dword [rbp + 0x20], 0
je 0x140074c79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140074b88
int3
Function at 0x140077c08
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 [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400e4978]
mov rbp, rcx
call fcn.140089b3c
xor edi, edi
test rax, rax
je 0x140077cee
mov ebx, edi
call fcn.1400778a4
mov r14d, dword [rax]
call fcn.1400778a4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14007c4d0
mov rsi, rax
test rax, rax
je 0x140077c7f
call fcn.1400778a4
mov dword [rax], r14d
jmp 0x140077ca9
call fcn.1400778a4
cmp dword [rax], 0x22
jne 0x140077ce6
call fcn.1400778a4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14007c4d0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140077ce6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x140077cad
cmp rax, 3
je 0x140077cc8
mov rcx, rsi
call fcn.140077b64
test al, al
je 0x140077cd9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140077cd9
mov dil, 1
mov rcx, rbx
call fcn.140051390
mov al, dil
jmp 0x140077cf0
mov rcx, rbx
call fcn.140051390
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140062e50
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 0x14007981c
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, [0x14011db60]
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 0x140079873
cmp word [rdx], r13w
jne 0x140079873
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140079878
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14007999d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400799be
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400798b1
mov rdx, r9
mov word [rbx], cx
jmp 0x1400798d8
cmp r9, r8
jae 0x1400798e8
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 0x140079892
jmp 0x14007999d
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 0x140079992
cmp dword [rsp + 0x80], esi
je 0x140079992
lea r8, [0x14011db60]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14007996a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14007993a
mov word [rbx], r13w
jmp 0x14007999a
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 0x140079947
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14007999a
cmp word [rsp + 0x70], r13w
jne 0x140079977
cmp rbx, r14
je 0x140079934
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140088748
cmp word [rsp + 0x70], r13w
je 0x14007999d
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, [0x14011db60]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140079997
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14007999d
Function at 0x140081220
Capabilities:
Parse pe header

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

Function at 0x14008b2f8
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.140084e44
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 0x14008b399
cmp ebx, dword [rsp + 0x30]
je 0x14008b392
test esi, esi
je 0x14008b392
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14008b36d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14008b37a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14008b357
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14008b37e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14008b39b
mov eax, 1
jmp 0x14008b39b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14008c3c0
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 0x14008c3f0
xor eax, eax
jmp 0x14008c4b3
mov rbp, rbx
cmp word [rax], si
je 0x14008c415
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14008c3fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14008c3f8
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.14008c2e0
movsxd r14, eax
test eax, eax
jne 0x14008c453
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14008c3e9
mov rcx, r14
call fcn.14002e310
mov rdi, rax
test rax, rax
jne 0x14008c46c
xor ecx, ecx
call fcn.140051390
jmp 0x14008c448
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.14008c2e0
test eax, eax
jne 0x14008c49d
mov rcx, rdi
call fcn.140051390
jmp 0x14008c4a7
xor ecx, ecx
call fcn.140051390
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 0x14008c4d0
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 0x14008c557
mov rsi, rbx
cmp word [rax], bp
je 0x14008c516
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008c500
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008c4fc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002e310
mov rdi, rax
test rax, rax
je 0x14008c544
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140097fc0
mov rbp, rdi
xor ecx, ecx
call fcn.140051390
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 0x14008f7cc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14010e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14008f816
call fcn.1400778c4
mov dword [rax], 0xf
call fcn.1400778a4
mov dword [rax], 0xd
call fcn.140079c08
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140062e50
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14008f821
lea eax, [rbx + 1]
jmp 0x14008f803
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 0x14008f801
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14008f803

Function at 0x14008fdec
Capabilities:
Get file size

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