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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rdx
mov rsi, rcx
mov ecx, dword [0x1400f7678]
cmp ecx, 0xffffffff
je 0x140005fcd
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140005fcd
mov eax, dword [0x1400fb3a8]
mov ecx, dword [0x1400f9b20]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140005fd7
mov rbx, qword [0x1400fb3a0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140006047
mov rcx, qword [0x1400f9b90]
inc rcx
mov r8d, 0x100
lea rax, [0x1400f9ba0]
movzx edi, cl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
jne 0x14000601d
lea rcx, [rax + rdx*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x1400f9b90], rdi
mov dword [rsi], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [rsi]
cmp eax, 0xffffffff
je 0x140006044
cmp eax, 0x100
jge 0x140006054
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400051f0
jmp 0x140005f1c
lea rcx, [0x1400fb3a8]
call fcn.1400897dc
cmp dword [0x1400fb3a8], 0xffffffff
jne 0x140005f41
mov ecx, 8
call fcn.140089790
mov rbx, rax
mov rcx, rax
call fcn.1400136e0
mov qword [0x1400fb3a0], rbx
lea rcx, [0x1400fb3a8]
call fcn.140089cd8
jmp 0x140005f41
lea edx, [rcx + 1]
movzx edi, dl
lea rdx, [rdi + rdi*2]
cmp dword [rax + rdx*8], 0
je 0x140005f81
add rcx, 2
add r8, 0xfffffffffffffffe
jne 0x140005f70
jmp 0x140005fa4
int3
mov rcx, rbx
call fcn.1400019f0
jmp 0x140005f59
int3

Function at 0x140007280
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400fc8d0]
mov ecx, dword [0x1400f9b20]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400072b5
lea rcx, [0x1400fc8c8]
add rsp, 0x28
jmp fcn.140002ef0
lea rcx, [0x1400fc8d0]
call fcn.1400897dc
cmp dword [0x1400fc8d0], 0xffffffff
jne 0x1400072a5
mov qword [0x1400fc8c8], 0
lea rcx, [0x1400fc8c8]
xor edx, edx
call fcn.140005ed0
lea rcx, [0x1400fc8d0]
call fcn.140089cd8
jmp 0x1400072a5
Function at 0x14000c400
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x1400f9a08]
test rdi, rdi
jne 0x14000c4c0
mov ecx, 0x48
call fcn.140089790
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov ecx, 0x18
call fcn.140089790
mov qword [rsi + 0x10], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x20], rcx
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x18], rcx
lea rax, [rsi + 0x30]
movups xmmword [rsi + 0x30], xmm6
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x40], 1
mov qword [0x1400f9a08], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14000c4e2
cmp word [rax], 0
je 0x14000c4e2
xor edx, edx
nop word cs:[rax + rax]
lea rcx, [rdx + 1]
cmp word [rax + rdx*2 + 2], 0
mov rdx, rcx
jne 0x14000c4a0
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rcx
mov rcx, rsi
call fcn.14000c4f0
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14008b870
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
xor ecx, ecx
jmp 0x14000c4af
Function at 0x14000c4f0
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x40]
movaps xmmword [rdx], xmm0
lea rsi, [rsp + 0x20]
mov rcx, rsi
mov r8d, 3
call fcn.14000d150
movups xmm0, xmmword [rsi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x14000c670
movups xmm0, xmmword [rbx]
movups xmmword [r14], xmm0
mov dword [rsp + 0x3c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov r15, rax
test rax, rax
je 0x14000c697
lea rdx, [0x1400bfc7e]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c6aa
mov rsi, rax
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call rax
mov r13, rax
movsxd rdi, dword [rsp + 0x3c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x20], xmm6
mov qword [rsp + 0x30], 0
test rdi, rdi
je 0x14000c60a
test edi, edi
js 0x14000c6b2
shl rdi, 3
lea r12, [rdi + rdi*2]
mov rcx, r12
call fcn.140089790
mov rsi, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
add rax, r12
mov qword [rsp + 0x30], rax
xor ebx, ebx
mov rdx, qword [r13 + rbx]
mov rcx, rsi
call fcn.140010650
add rsi, 0x18
add rbx, 8
cmp rdi, rbx
jne 0x14000c5eb
mov qword [rsp + 0x28], rsi
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.14000c6c0
movups xmmword [r14], xmm6
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LocalFree]
test r15, r15
je 0x14000c632
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rsi, qword [rsp + 0x20]
test rsi, rsi
je 0x14000c670
mov rax, qword [rsp + 0x28]
cmp rax, rsi
je 0x14000c692
lea rdi, [rax - 0x18]
cmp byte [rax - 1], 0
jns 0x14000c659
mov rcx, qword [rax - 0x18]
call fcn.1400897cc
mov rax, rdi
cmp rsi, rdi
jne 0x14000c646
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rsi
call fcn.1400897cc
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008b870
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, rsi
jmp 0x14000c666
mov rcx, qword [rbx]
lea rdx, [rsp + 0x3c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x14000c59e
xor r13d, r13d
jmp 0x14000c5a1
lea rcx, [rsp + 0x20]
call fcn.140026f10
int3
Function at 0x140010f50
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rax, qword [rcx]
jne 0x140010fac
test rax, rax
jne 0x140010fac
cmp dword [rsi + 0x14], 0
jne 0x140010faa
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
jne 0x140010fac
mov rbx, qword [rdi]
cmp rdx, rbx
jne 0x140010ff5
mov rbp, qword [rdi + 8]
cmp rax, rbp
jne 0x140011040
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
xor eax, eax
lea rcx, [rax + 1]
cmp rcx, 2
jae 0x14001108b
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jae 0x140010fd8
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
jmp 0x140010f80
call fcn.140003010
mov rcx, qword [rsi + 8]
call fcn.1400066a0
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
jmp 0x140010fc8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14001101d
call fcn.140003010
mov rcx, qword [rsi]
call fcn.1400066a0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14001102f
mov qword [rsi], rbx
call fcn.140003010
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
jmp 0x140010f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x14001106b
call fcn.140003010
mov rcx, qword [rsi + 8]
call fcn.1400066a0
mov qword [rsi + 8], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14001107e
mov qword [rsi + 8], rbp
call fcn.140003010
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140010f95
call fcn.140003010
mov rcx, qword [rsi]
call fcn.1400066a0
mov qword [rsi], 0
xor eax, eax
jmp 0x140010fba

Function at 0x1400111a0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
jne 0x1400111d3
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140011217
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x1400111fb
call fcn.140003010
mov rcx, qword [rsi]
call fcn.1400066a0
mov qword [rsi], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14001120d
mov qword [rsi], rdi
call fcn.140003010
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400111b9
int3
Function at 0x140013710
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x190
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x188], rax
mov eax, dword [0x1400fb7e0]
mov ecx, dword [0x1400f9b20]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013772
lea rsi, [0x1400fb7d8]
mov rcx, qword [rsp + 0x188]
xor rcx, rsp
call fcn.14008b870
mov rax, rsi
add rsp, 0x190
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1400fb7e0]
call fcn.1400897dc
cmp dword [0x1400fb7e0], 0xffffffff
jne 0x14001374d
lea rsi, [rsp + 0x6c]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008ea40
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
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, 0x80
call fcn.140089790
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1400fb818]
mov ecx, dword [0x1400f9b20]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013832
lea r8, [0x1400fb7e8]
lea rdx, [rsp + 0x68]
mov rcx, rsi
mov r9d, edi
call fcn.1400138a0
mov qword [0x1400fb7d8], rsi
lea rcx, [0x1400fb7e0]
call fcn.140089cd8
jmp 0x14001374d
lea rcx, [0x1400fb818]
call fcn.1400897dc
cmp dword [0x1400fb818], 0xffffffff
jne 0x140013803
xorps xmm0, xmm0
lea rbx, [rsp + 0x30]
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
movaps xmmword [rbx], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movups xmmword [0x1400fb808], xmm2
movups xmmword [0x1400fb7f8], xmm1
movups xmmword [0x1400fb7e8], xmm0
lea rcx, [0x1400fb818]
call fcn.140089cd8
jmp 0x140013803

Function at 0x140013ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 4
lea r9, [rsp + 0x3c]
mov dword [r9], eax
lea rdi, [rsp + 0x38]
mov dword [rdi], eax
lea rax, [rsp + 0x34]
mov dword [rax], 0
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013f57
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140013f41
cmp dword [rsp + 0x38], 4
jne 0x140013f41
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008b870
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
mov edi, eax
jmp 0x140013f41
Function at 0x140013f60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008b800
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14008ea40
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140014013
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140014017
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140014070
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008b870
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140013ff4
cmp eax, 2
jne 0x14001405c
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14008ea40
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x140014063
lea rdx, [rsp + 0x40]
jmp 0x140013fea
mov edi, 0x3f4
jmp 0x140013ff4
mov edi, 0xea
jmp 0x140013ff4

Function at 0x140018ac0
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x140018afa
mov rax, qword [rdi]
mov qword [rbx], rax
add qword [rsi + 0x10], 8
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r15
jbe 0x140018b56
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, r14
sub r15, rax
sub rbx, r14
je 0x140018b45
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14008e630
mov r14, qword [rsi + 8]
add rbx, r15
mov qword [rsi + 0x10], rbx
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x140018adf
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140018c23
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140089790
lea r10, [rax + r12*8]
lea r9, [rax + r13*8]
mov r11, rbx
sub r11, r14
lea r8, [r10 + r11]
mov rcx, r10
test r11, r11
je 0x140018bf7
lea r13, [rax + r12*8]
mov rdx, 0xffffffffffffffff
cmovns rdx, r11
test rdx, rdx
mov r12d, 1
cmovle r12, rdx
mov rdx, r14
sub rdx, rbx
cmp rdx, r11
cmovle rdx, r11
shr rdx, 3
imul rdx, r12
shl rdx, 3
xor ebx, ebx
mov rcx, qword [r14 + rbx]
mov qword [r13 + rbx], rcx
add rbx, 8
cmp rdx, rbx
jne 0x140018be2
mov rcx, r8
mov qword [rsi], rax
mov qword [rsi + 8], r10
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], r9
mov rbx, rcx
test r15, r15
je 0x140018adf
mov rcx, r15
call fcn.1400897cc
mov rbx, qword [rsi + 0x10]
jmp 0x140018adf
call fcn.14008a788
int3
Function at 0x140019bc0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x288
mov rsi, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x280], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008ea40
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140019c58
cmp word [rsp + 0x70], 0
je 0x140019c58
mov qword [rsp + 0x60], rdi
xor eax, eax
cmp word [rsp + rax*2 + 0x72], 0
lea rax, [rax + 1]
jne 0x140019c1e
lea rdx, [rsp + 0x60]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140012520
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14008b870
mov rax, rsi
add rsp, 0x288
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [section..rdata]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140016ab0
mov rcx, rdi
call fcn.1400239a0
test al, al
je 0x140019c98
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400255e0
jmp 0x140019cb7
lea rax, [0x1400bfec4]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140012520
lea rcx, [rsp + 0x40]
call fcn.1400136d0
jmp 0x140019c3b
Function at 0x14001cef0
Capabilities:
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x78
mov rsi, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.14001d0e0
test al, al
je 0x14001cf49
call fcn.14001d0d0
mov rdi, rax
lea rbx, [0x1400c0279]
mov rcx, rax
mov rdx, rbx
call fcn.14001d0f0
test al, al
jne 0x14001cf78
lea rdx, str.vmodule
mov rcx, rdi
call fcn.14001d0f0
test al, al
jne 0x14001cf78
mov eax, dword [rsi]
mov dword [0x1400f6338], eax
mov bl, 1
test al, 1
jne 0x14001d039
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008b870
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp qword [0x1400f9a18], 0
jne 0x14001d0ca
mov rax, qword [0x1400f9a20]
mov qword [0x1400f9a18], rax
mov ecx, 0x20
call fcn.140089790
mov r14, rax
lea rcx, str.vmodule
lea r15, [rsp + 0x48]
mov qword [r15], rcx
call fcn.1400a7010
mov qword [r15 + 8], rax
lea r12, [rsp + 0x58]
mov rcx, rdi
mov rdx, r12
mov r8, r15
call fcn.140014f20
lea r15, [rsp + 0x20]
mov qword [r15], rbx
mov rcx, rbx
call fcn.1400a7010
mov qword [r15 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.140014f20
lea r9, [0x1400f9a28]
mov rcx, r14
mov rdx, rbx
mov r8, r12
call fcn.140032ae0
mov qword [0x1400f9a20], r14
cmp byte [rbx + 0x17], 0
jns 0x14001d01f
mov rcx, qword [rsp + 0x30]
call fcn.1400897cc
cmp byte [rsp + 0x6f], 0
jns 0x14001cf49
mov rcx, qword [rsp + 0x58]
call fcn.1400897cc
jmp 0x14001cf49
mov rcx, qword [0x1400f9a50]
test rcx, rcx
jne 0x14001d053
mov rcx, qword [0x1400f9a30]
test rcx, rcx
je 0x14001d077
jmp 0x14001d099
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1400f9a50], 0
mov rcx, qword [0x1400f9a30]
test rcx, rcx
jne 0x14001d099
and byte [0x1400f6338], 0xfe
mov ecx, 0x18
call fcn.140089790
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x1400f9a30], rax
mov rdx, qword [rsi + 8]
call fcn.140014070
cmp dword [rsi + 0x14], 0
jne 0x14001d0be
mov rcx, qword [0x1400f9a30]
cmp byte [rcx + 0x17], 0
jns 0x14001d0b8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.140032d10
mov ebx, eax
jmp 0x14001cf5b
int3
Function at 0x1400223f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov r12, r8
mov r14, rdx
mov r15, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test r8, r8
je 0x140022441
cmp byte [r12 + 0x17], 0
js 0x140022602
xor eax, eax
mov byte [r12], al
mov byte [r12 + 0x17], al
mov rcx, r15
xor edx, edx
xor r8d, r8d
call fcn.14008a2b4
movaps xmm0, xmmword [section..rdata]
lea rdi, [rsp + 0x80]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.ReadStreamToStringWithMaxSize
lea r8, str..._.._base_files_file_util.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x9e
call fcn.14000a300
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14000a4d0
xorps xmm6, xmm6
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov dword [rbx + 0x30], 0
mov rcx, r15
call fcn.14008a2dc
mov ecx, eax
call fcn.14008a35c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x140022617
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov edi, 0xffff
cmovg rdi, rax
cmp rdi, r14
cmova rdi, r14
inc rdi
lea rbx, [rsp + 0x20]
movaps xmmword [rbx], xmm6
mov qword [rbx + 0x10], 0
xor esi, esi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
call fcn.140006230
cmp byte [rbx + 0x17], 0
jns 0x140022529
mov rbx, qword [rsp + 0x20]
mov edx, 1
mov rcx, rbx
mov r8, rdi
mov r9, r15
call fcn.14008a2bc
test rax, rax
je 0x140022571
xor esi, esi
mov ebx, 0x10000
mov rcx, r14
sub rcx, rsi
cmp rcx, rax
jb 0x140022621
test rsi, rsi
cmove rdi, rbx
add rsi, rax
mov rcx, r15
call fcn.14008a304
test eax, eax
je 0x140022628
mov rcx, r15
call fcn.14008a330
test eax, eax
sete dil
mov r14, rsi
test r12, r12
je 0x1400225bd
mov rax, qword [r12]
movups xmm0, xmmword [r12 + 8]
mov rcx, qword [rsp + 0x30]
mov qword [r12 + 0x10], rcx
movaps xmm1, xmmword [rsp + 0x20]
movups xmmword [r12], xmm1
mov qword [rsp + 0x20], rax
movups xmmword [rsp + 0x28], xmm0
mov rcx, r12
mov rdx, r14
xor r8d, r8d
call fcn.140006230
cmp byte [rsp + 0x37], 0
js 0x14002266c
lea rcx, [rsp + 0x80]
call fcn.14000a320
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14008b870
mov eax, edi
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [r12]
mov byte [rax], 0
mov qword [r12 + 8], 0
jmp 0x140022441
mov edi, 0xffff
jmp 0x1400224f4
xor edi, edi
jmp 0x140022582
lea rdx, [rsi + rdi]
lea r13, [rsp + 0x20]
mov rcx, r13
xor r8d, r8d
call fcn.140006230
cmp byte [r13 + 0x17], 0
jns 0x140022648
mov r13, qword [rsp + 0x20]
add r13, rsi
mov edx, 1
mov rcx, r13
mov r8, rdi
mov r9, r15
call fcn.14008a2bc
test rax, rax
jne 0x140022548
jmp 0x140022571
mov rcx, qword [rsp + 0x20]
call fcn.1400897cc
jmp 0x1400225c8
Function at 0x140022730
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400f7678]
cmp ecx, 0xffffffff
je 0x140022755
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
add rsp, 0x28
ret
xor eax, eax
jmp 0x140022750

Function at 0x1400239a0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14008ea40
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x140023a4f
mov qword [rsp + 0x20], rbx
cmp word [rsp + 0x60], 0
je 0x140023a77
xor ecx, ecx
lea rax, [rcx + 1]
cmp word [rsp + rcx*2 + 0x62], 0
mov rcx, rax
jne 0x1400239ff
lea rdx, [rsp + 0x20]
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.140012520
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140023a80
mov rcx, r14
mov rdx, rsi
call fcn.1400226c0
mov rcx, rsi
call fcn.1400136d0
mov rcx, rbx
call fcn.1400136d0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008b870
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x140023a0e
Function at 0x140024bb0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x1400fb818]
mov ecx, dword [0x1400f9b20]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140024c0c
movzx eax, word [0x1400fb7e8]
cmp ax, 9
jne 0x140024c6e
mov esi, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008b870
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x1400fb818]
call fcn.1400897dc
cmp dword [0x1400fb818], 0xffffffff
jne 0x140024be5
xorps xmm0, xmm0
lea rsi, [rsp + 0x20]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsi]
movaps xmm1, xmmword [rsi + 0x10]
movaps xmm2, xmmword [rsi + 0x20]
movups xmmword [0x1400fb808], xmm2
movups xmmword [0x1400fb7f8], xmm1
movups xmmword [0x1400fb7e8], xmm0
lea rcx, [0x1400fb818]
call fcn.140089cd8
jmp 0x140024be5
xor esi, esi
test ax, ax
je 0x140024bf7
cmp ax, 6
jne 0x140024c85
mov esi, 2
jmp 0x140024bf7
cmp ax, 0xc
jne 0x140024c95
mov esi, 3
jmp 0x140024bf7
mov esi, 4
jmp 0x140024bf7
Function at 0x140025b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x1400f6398]
xor rax, rsp
mov qword [rsp + 0x98], rax
movaps xmm0, xmmword [section..rdata]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.PathExists
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x1ce
call fcn.14000a300
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14000a4d0
cmp byte [rdi + 0x17], 0
jns 0x140025b86
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14000a320
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008b870
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret