joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140053780
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x168
mov rdi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x160], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400536a0
test rax, rax
jne 0x1400537bf
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400537e5
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x1400537d9
call fcn.1400870e0
int3
mov eax, esi
add rsp, 0x168
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14006e000
test al, al
je 0x14005383b
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadutil_file_file_io_win.cc
lea rsi, [rsp + 0x28]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1400d5e90
lea rcx, [rsp + 0x38]
lea rdx, [0x14010c3d2]
mov r8d, 0xc
call fcn.1400599a0
mov rcx, rsi
call fcn.1400d5f00
xor esi, esi
jmp 0x1400537bf

Function at 0x140053ce0
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov esi, 0xffffffff
cmp r8, rsi
cmovae r8, rsi
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400531c5
mov eax, dword [rsp + 0x34]
cmp rax, rsi
je 0x1400531ce
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x1400531bf
call fcn.1400870e0
int3
add rsp, 0x40
pop rsi
ret
mov rax, 0xffffffffffffffff
jmp 0x1400531a8
int3
mov rcx, qword [rcx + 8]
jmp 0x140053160

Function at 0x140056c20
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 [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x140056bf0]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140133f20]
lea rdx, [0x140056a90]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x140056d20
cmp dword [0x140133f28], 0
jne 0x140056d2d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x140133f2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x140056ccc
mov ecx, 1
mov edx, 0x28
call fcn.140034ad0
test rax, rax
je 0x140056d2d
mov r14, rax
mov ecx, dword [0x140133f2c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140056d25
lea r15, [0x140133f30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x140133f40]
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 [0x14011e040]
je 0x140056d13
call fcn.1400870e0
int3
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14009db3c
mov rcx, r14
call fcn.140034a40
mov rcx, rsi
mov rax, rdi
call qword [0x140112388]
xor eax, eax
jmp 0x140056cfc
Function at 0x1400576e0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140133f98], 0
jne 0x14005771d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140057710
mov dword [rdi], eax
mov dword [0x140133fa0], eax
mov qword [0x140133f98], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x140060c90
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140060d8e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1400fadc0]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140060d00
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x1400fade0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x140060e1e
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140060df4
pmovzxdq xmm1, qword [0x1400fade0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1400fadd0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x140067740
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 0x1400677da
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400677c4
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400677a1
mov qword [rsi], rdi
call fcn.140073c90
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 0x1400677de
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140073c90
mov rcx, qword [rsi]
call fcn.140073ca0
mov qword [rsi], 0
jmp 0x14006778f
mov byte [rsi + 8], 0
int3
Function at 0x140068550
Capabilities:
Get file version info

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [0x1400f7a90]
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.140073c70
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.1400740b0
mov dword [rsp + 0x2c], 0xaaaaaaaa
cmp byte [rbx + 0x17], 0
jns 0x1400685d4
mov rbx, qword [rbx]
lea rdx, [rsp + 0x2c]
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
jne 0x140068610
mov qword [rsi], 0
lea rcx, [rsp + 0x50]
call fcn.140074140
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14006862b
call fcn.1400870e0
int3
mov ebp, eax
mov r14d, eax
mov rcx, r14
call fcn.140085d40
mov rdi, rax
lea r15, [rax + r14]
xor eax, eax
jmp 0x140068747
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edx, dword [rsp + 0x2c]
mov rcx, rbx
mov r8d, ebp
mov r9, rdi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x140068761
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x94]
mov dword [r9], 0xaaaaaaaa
lea rdx, str.VarFileInfoTranslation
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140068761
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x140068761
mov ecx, 0x38
call fcn.140085d40
mov rbx, rax
movzx r12d, word [r14]
movzx ebp, word [r14 + 2]
lea rax, fcn.140027b70
mov qword [rbx], rax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
movabs r14, 0xfffffffc00000000
mov rax, rdi
and rax, r14
cmp rax, qword [0x140120c08]
jne 0x1400686e7
mov rcx, rdi
call fcn.1400193f0
mov qword [rbx + 0x20], rdi
mov word [rbx + 0x28], r12w
mov word [rbx + 0x2a], bp
lea r8, [rsp + 0x30]
mov qword [r8], 0
lea r9, [rsp + 0x94]
mov dword [r9], 0xaaaaaaaa
lea rdx, [0x1400fd392]
mov rcx, rdi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x14006877e
mov rdi, qword [rsp + 0x30]
and r14, rdi
cmp r14, qword [0x140120c08]
jne 0x14006873b
mov rcx, rdi
call fcn.1400193f0
mov qword [rbx + 0x30], rdi
mov qword [rsi], rbx
jmp 0x1400685ec
mov rcx, rdi
add rcx, rax
je 0x14006875f
mov byte [rcx], 0
inc rax
cmp r14, rax
jne 0x140068747
jmp 0x140068640
ud2
mov qword [rsi], 0
test rdi, rdi
je 0x1400685ec
mov rcx, rdi
call fcn.140085d7c
jmp 0x1400685ec
int3
Function at 0x140073cd0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140130740]
mov ecx, dword [0x14012cda8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073d37
mov rax, qword [0x140130738]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x140073d2d
call fcn.1400870e0
int3
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140130740]
call fcn.140085dcc
cmp dword [0x140130740], 0xffffffff
jne 0x140073d0c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bad40
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.140085d40
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x140130788]
mov ecx, dword [0x14012cda8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140073df7
lea r8, [0x140130758]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140038330
mov qword [0x140130738], rsi
lea rcx, [0x140130740]
call fcn.140085e80
jmp 0x140073d0c
lea rcx, [0x140130788]
call fcn.140085dcc
cmp dword [0x140130788], 0xffffffff
jne 0x140073dc8
xorps xmm0, xmm0
movups xmmword [0x140130778], xmm0
movups xmmword [0x140130768], xmm0
movups xmmword [0x140130758], xmm0
lea rcx, [0x140130758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140130788]
call fcn.140085e80
jmp 0x140073dc8

Function at 0x140074d70
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.140074c30
mov qword [rsi], 0
test rax, rax
je 0x140074dc3
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140074df7
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140074dbb
mov qword [rsi], rbx
call fcn.140073c90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14006f2e0
lea rcx, [rsi + 0x20]
call fcn.14007f770
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.140073c90
mov rcx, qword [rsi]
call fcn.140073ca0
mov qword [rsi], 0
jmp 0x140074da9
Function at 0x140082fa0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x140056bf0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140133f20]
lea rdx, [0x140056a90]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14008303b
cmp dword [0x140133f28], 0
jne 0x140083037
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x140133f2c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140083037
movsxd rax, esi
mov rax, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
cmp rcx, qword [0x14011e040]
je 0x14008302f
call fcn.1400870e0
int3
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x140083018
call fcn.14009db3c
int3

Function at 0x1400865a4
Capabilities:
Parse pe header

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

Function at 0x140086900
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 0x140086978
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140086978
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 0x140086978
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x14008696c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14008698a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14008695a
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 0x14008697a
Function at 0x140098c20
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
lea edx, [r8 + 2]
jmp 0x140098c20
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 0x140098c8f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140098c8f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140098c8f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140098c8f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140098c8f
cmp dword [rcx + 0x84], 0xe
jbe 0x140098c8f
cmp dword [rcx + 0xf8], 0
je 0x140098c8f
mov ecx, ebx
call fcn.140098b58
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.140098db4
nop
cmp dword [rbp + 0x20], 0
je 0x140098cdd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140098bec
int3

Function at 0x14009bc14
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 [0x14011e040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400ef978]
mov rbp, rcx
call fcn.1400ad9fc
xor edi, edi
test rax, rax
je 0x14009bcfa
mov ebx, edi
call fcn.14009b8b0
mov r14d, dword [rax]
call fcn.14009b8b0
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400a04ac
mov rsi, rax
test rax, rax
je 0x14009bc8b
call fcn.14009b8b0
mov dword [rax], r14d
jmp 0x14009bcb5
call fcn.14009b8b0
cmp dword [rax], 0x22
jne 0x14009bcf2
call fcn.14009b8b0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400a04ac
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14009bcf2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14009bcb9
cmp rax, 3
je 0x14009bcd4
mov rcx, rsi
call fcn.14009bb70
test al, al
je 0x14009bce5
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14009bce5
mov dil, 1
mov rcx, rbx
call fcn.140034a40
mov al, dil
jmp 0x14009bcfc
mov rcx, rbx
call fcn.140034a40
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400870e0
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 0x14009d7f8
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, [0x14012dc40]
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 0x14009d84f
cmp word [rdx], r13w
jne 0x14009d84f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14009d854
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14009d979
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14009d99a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14009d88d
mov rdx, r9
mov word [rbx], cx
jmp 0x14009d8b4
cmp r9, r8
jae 0x14009d8c4
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 0x14009d86e
jmp 0x14009d979
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 0x14009d96e
cmp dword [rsp + 0x80], esi
je 0x14009d96e
lea r8, [0x14012dc40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14009d946
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14009d916
mov word [rbx], r13w
jmp 0x14009d976
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 0x14009d923
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14009d976
cmp word [rsp + 0x70], r13w
jne 0x14009d953
cmp rbx, r14
je 0x14009d910
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ac608
cmp word [rsp + 0x70], r13w
je 0x14009d979
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, [0x14012dc40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009d973
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14009d979
Function at 0x1400a5200
Capabilities:
Parse pe header

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

Function at 0x1400af1b8
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.1400a8e24
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 0x1400af259
cmp ebx, dword [rsp + 0x30]
je 0x1400af252
test esi, esi
je 0x1400af252
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400af22d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400af23a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400af217
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400af23e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400af25b
mov eax, 1
jmp 0x1400af25b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400b0280
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 0x1400b02b0
xor eax, eax
jmp 0x1400b0373
mov rbp, rbx
cmp word [rax], si
je 0x1400b02d5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b02bc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b02b8
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.1400b01a0
movsxd r14, eax
test eax, eax
jne 0x1400b0313
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b02a9
mov rcx, r14
call fcn.1400349f0
mov rdi, rax
test rax, rax
jne 0x1400b032c
xor ecx, ecx
call fcn.140034a40
jmp 0x1400b0308
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.1400b01a0
test eax, eax
jne 0x1400b035d
mov rcx, rdi
call fcn.140034a40
jmp 0x1400b0367
xor ecx, ecx
call fcn.140034a40
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 0x1400b0390
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 0x1400b0417
mov rsi, rbx
cmp word [rax], bp
je 0x1400b03d6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b03c0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b03bc
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400349f0
mov rdi, rax
test rax, rax
je 0x1400b0404
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ba6a0
mov rbp, rdi
xor ecx, ecx
call fcn.140034a40
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