joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030320
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140094eb0
mov word [rdi], 0
lea rcx, str.PROGRAMFILES
mov rdx, rdi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400303b5
mov eax, eax
inc rax
cmp rax, 1
je 0x1400303b5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140030381
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400303a2
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400acb18
test eax, eax
je 0x1400304ee
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030416
mov eax, eax
inc rax
cmp rax, 1
je 0x140030416
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400303e2
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140030403
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400acb18
test eax, eax
je 0x1400304bf
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140030473
mov eax, eax
inc rax
cmp rax, 1
je 0x140030473
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140030443
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140030464
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400acb18
test eax, eax
je 0x140030494
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140092d80
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400304a1
and eax, 0x7f
jmp 0x1400304a5
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140030475
mov rcx, rsi
mov rdx, r14
call fcn.1400d5ec0
cmp word [rax], 0x5c
jne 0x140030473
jmp 0x140030475
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400304cc
and eax, 0x7f
jmp 0x1400304d0
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140030475
mov rcx, rsi
mov rdx, r14
call fcn.1400d5ec0
cmp word [rax], 0x5c
jne 0x140030416
jmp 0x140030475
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400304fb
and eax, 0x7f
jmp 0x1400304ff
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140030475
mov rcx, rsi
mov rdx, r14
call fcn.1400d5ec0
cmp word [rax], 0x5c
jne 0x1400303b5
jmp 0x140030475
Function at 0x140031000
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140031129
mov ebx, eax
mov r15d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x14010fbd0]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xb
jae 0x140031139
lea r14, [rsp + 0x20]
mov byte [r14 + 0x17], bl
lea r8, [r15 + r15]
mov rcx, r14
xor edx, edx
call fcn.140094eb0
mov word [r14 + r15*2], 0
cmp byte [rsp + 0x37], 0
js 0x14003108d
lea rdx, [rsp + 0x20]
jmp 0x140031092
mov rdx, qword [rsp + 0x20]
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14003110d
mov edx, eax
movzx eax, byte [rsp + 0x37]
test al, al
js 0x1400310b2
and eax, 0x7f
jmp 0x1400310b7
mov rax, qword [rsp + 0x28]
cmp rax, rdx
jbe 0x14003110d
lea rdi, [rsp + 0x20]
mov rcx, rdi
xor r8d, r8d
call fcn.140065be0
mov rax, qword [rdi + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rdi]
movups xmmword [rsi], xmm0
xorps xmm0, xmm0
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
cmp byte [rsp + 0x37], 0
js 0x14003111d
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400310e8
mov rcx, qword [rsp + 0x20]
call fcn.1400918a8
jmp 0x1400310ef
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x1400310ef
mov r12, r15
or r12, 7
lea rcx, [r12*2 + 2]
call fcn.14009186c
mov r14, rax
mov qword [rsp + 0x20], rax
movabs rax, 0x8000000000000001
add rax, r12
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r15
jmp 0x14003106a
Function at 0x140031a20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x68], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x140031a48
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140031a7c
test al, 0x10
je 0x140031b14
lea rcx, str._hs___ls_directory_exists___n
lea rdx, [0x140113ce4]
mov r8, rsi
call fcn.140031c00
mov dil, 1
jmp 0x140031b2c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov r9d, eax
and r9d, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
cmovs r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x140031ac8
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140031ac2
cmp ecx, 0x2f
jne 0x140031aa9
cmp r9, 0xfffffffffffffffe
jne 0x140031b46
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x140031b01
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
je 0x140031ba8
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, ebx
call fcn.140031c00
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140031b2c
mov rcx, qword [rsp + 0x40]
call fcn.1400918a8
jmp 0x140031b2c
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, [0x140113ce4]
mov r8, rsi
call fcn.140031c00
xor edi, edi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140092d80
mov eax, edi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
sar r9, 1
lea rax, [rsp + 0x67]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.1400265d0
cmp byte [rsp + 0x57], 0
jns 0x140031b74
mov rcx, qword [rsp + 0x40]
call fcn.1400918a8
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rcx], xmm0
call fcn.140031a20
test al, al
jne 0x140031ac8
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140031c00
jmp 0x140031aff
lea r14, [rsp + 0x28]
mov rcx, r14
mov rdx, rsi
call fcn.1400c59a0
cmp byte [r14 + 0x17], 0
jns 0x140031bc4
mov r14, qword [rsp + 0x28]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
setne al
and ebp, 0x10
shr ebp, 4
and bpl, al
cmp byte [rsp + 0x3f], 0
jns 0x140031bef
mov rcx, qword [rsp + 0x28]
call fcn.1400918a8
test bpl, bpl
je 0x140031aed
jmp 0x140031b01
Function at 0x140031c00
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.14005eed0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x14013eb20]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400960b4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140092d80
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400339a0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140033bea
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14012e110], rax
jne 0x140033bed
mov rsi, rcx
mov r14d, dword [rcx + 8]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
cmp byte [rcx + 2], 0
sete al
bsr rdx, r14
xor rdx, 0xffffffffffffffc0
lea rcx, [0x1401147f0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x140114840]
mov rcx, qword [rcx + rdx*8 + 0x208]
and rcx, r14
lea rdx, [r8 + rdx*8]
add rdx, 0x208
cmp rcx, 1
sbb rdx, 0xffffffffffffffff
lea rcx, [0x140113fd0]
movzx ecx, word [rcx + rdx*2 + 0x400]
cmp cx, 0x6e
setb dl
and dl, al
movzx eax, dl
or eax, ecx
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033b6f
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140033b7c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140033b68
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140033bf0
mov edx, ecx
and edx, 0x1fc000
je 0x140033bf0
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14006e840
mov ecx, dword [0x14013f348]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14013bee4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140092d80
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140033ac9
mov rcx, rbx
call fcn.14006f430
jmp 0x140033a79
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14007e690
test rax, rax
je 0x140033be3
mov rdi, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x140033ae3
xor edi, edi
jmp 0x140033b0d
int3
int3
movaps xmm0, xmmword [0x14010fbd0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400df360
mov rcx, rsi
call fcn.1400189d0
mov rcx, r14
call fcn.1400df3d0
int3
Function at 0x1400368b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013f498]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036910
lea rsi, [0x14013f490]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140092d80
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013f498]
call fcn.1400919c0
cmp dword [0x14013f498], 0xffffffff
jne 0x1400368ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140094eb0
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, 0x80
call fcn.14009186c
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013f4e0]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400369d0
lea r8, [0x14013f4b0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140036ad0
mov qword [0x14013f490], rsi
lea rcx, [0x14013f498]
call fcn.140091a58
jmp 0x1400368ec
lea rcx, [0x14013f4e0]
call fcn.1400919c0
cmp dword [0x14013f4e0], 0xffffffff
jne 0x1400369a1
xorps xmm0, xmm0
movups xmmword [0x14013f4d0], xmm0
movups xmmword [0x14013f4c0], xmm0
movups xmmword [0x14013f4b0], xmm0
lea rcx, [0x14013f4b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013f4e0]
call fcn.140091a58
jmp 0x1400369a1

Function at 0x140036a20
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013f4e0]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140036a5b
movzx eax, word [0x14013f4b0]
cmp eax, 9
jne 0x140036aa3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14013f4e0]
call fcn.1400919c0
cmp dword [0x14013f4e0], 0xffffffff
jne 0x140036a45
xorps xmm0, xmm0
movups xmmword [0x14013f4d0], xmm0
movups xmmword [0x14013f4c0], xmm0
movups xmmword [0x14013f4b0], xmm0
lea rcx, [0x14013f4b0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013f4e0]
call fcn.140091a58
jmp 0x140036a45
test eax, eax
je 0x140036a56
cmp eax, 6
jne 0x140036ab3
mov eax, 2
jmp 0x140036a56
cmp eax, 0xc
jne 0x140036abf
mov eax, 3
jmp 0x140036a56
mov eax, 4
jmp 0x140036a56
Function at 0x140037340
Capabilities:
Create thread

Disassembly:
jmp 0x140037340
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.14009186c
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x14013a148]
je 0x14003740e
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x1400377f0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140037423
test r14, r14
je 0x140037418
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140092d80
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.14005f980
jmp 0x1400373a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400373e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14003743c
mov ebp, eax
cmp eax, 0x5af
je 0x14003743c
cmp ebp, 0xe
jne 0x140037467
mov rcx, rbx
call fcn.1400e2d60
test rsi, rsi
je 0x1400373e8
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14013a148]
jne 0x14003745d
call fcn.14005fad0
mov rcx, rsi
call fcn.1400918a8
jmp 0x1400373e8
mov eax, dword [0x14013f538]
mov ecx, dword [0x14013bee4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400374df
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14003a610
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14013f530]
call fcn.140044970
cmp byte [rbx + 0x17], 0
jns 0x140037444
mov rcx, qword [rsp + 0x38]
call fcn.1400918a8
jmp 0x140037444
lea rcx, [0x14013f538]
call fcn.1400919c0
cmp dword [0x14013f538], 0xffffffff
jne 0x140037488
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140044950
mov qword [0x14013f530], rax
lea rcx, [0x14013f538]
call fcn.140091a58
jmp 0x140037488
Function at 0x140037d10
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, [0x14010f0f8]
mov qword [rcx], rax
add rcx, 8
call fcn.140076970
lea rcx, [rsi + 0x10]
call fcn.140076970
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.140076970
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xd0], ebp
mov dword [rsi + 0xd8], ebx
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], ebp
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], ebp
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x150], ebp
movups xmmword [rsi + 0x158], xmm6
movups xmmword [rsi + 0x168], xmm6
mov dword [rsi + 0x178], ebp
mov qword [rsi + 0x198], rbx
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebx
mov eax, dword [0x140119cec]
mov dword [rsi + 0x1a0], eax
lea rcx, [rsi + 0x1a8]
call fcn.14004da20
movups xmmword [rsi + 0x2e0], xmm6
movups xmmword [rsi + 0x2f0], xmm6
mov dword [rsi + 0x300], ebp
movups xmmword [rsi + 0x308], xmm6
movups xmmword [rsi + 0x318], xmm6
movups xmmword [rsi + 0x328], xmm6
mov byte [rsi + 0x338], bl
mov dword [rsi + 0x33c], edi
mov byte [rsi + 0x340], bl
movups xmmword [rsi + 0x348], xmm6
mov qword [rsi + 0x358], rbx
call fcn.1400189d0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x190], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x188], rax
mov edx, dword [rsi + 0x1a0]
mov rax, qword [rsi + 0x1b0]
mov rcx, rax
shr rcx, 6
test dword [0x140119cf0], edx
je 0x140037f0b
cmp rax, 0x40
mov eax, 0x3e8
cmovb rcx, rax
call fcn.140081e20
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x140037f2f
call fcn.14004d5c0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14004d670
mov qword [0x14013f8b8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
test dword [0x140119cf4], edx
jne 0x140037f42
test dword [0x140119cf8], edx
jne 0x140037f50
cmp rax, 0x40
mov eax, 0xfa0
cmovb rcx, rax
call fcn.14004d800
jmp 0x140037ecc
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140152008]
jmp 0x140037ed9
cmp rax, 0x40
mov eax, 0x100
jmp 0x140037ec3
cmp rax, 0x40
mov eax, 0x7a1200
jmp 0x140037f24
Function at 0x140039900
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x140039930
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x140039967
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140075440
lea rax, [rdx - 1]
test rdx, rax
jne 0x14003993e
mov rdi, rdx
jmp 0x140039915
mov rcx, rdx
call fcn.140062c00
mov rdi, rax
jmp 0x140039915
mov rcx, rdx
call fcn.140062c00
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14003991e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jae 0x14003995f
mov rax, qword [rsi + 0x18]
test rax, rax
jns 0x140039989
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14003998e
cvtsi2ss xmm0, rax
divss xmm0, dword [rsi + 0x20]
call fcn.1400c49c0
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1401134d8]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x14003994b
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x14003994b
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x140039953

Function at 0x140039e90
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x50]
mov qword [r14 + 0x40], r12
movaps xmm0, xmmword [0x14010fbd0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x30]
mov rcx, r15
mov r9d, 0x97
call fcn.140071f70
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400737a0
test esi, esi
js 0x140039f9a
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140082790
test al, al
jne 0x140039fa1
lea r14, [rsp + 0x2c]
mov dword [r14], 0xaaaaaaaa
mov rcx, qword [rbx]
mov qword [rsp + 0x20], 0
mov rdx, rdi
mov r8d, esi
mov r9, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [r14]
lea rcx, [rsp + 0x30]
call fcn.140082820
lea rcx, [rsp + 0x50]
call fcn.1400739e0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140092d80
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140039f6d
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, rbx
call fcn.1400edcf0
jmp 0x140039f32
Function at 0x14003a0c0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x14012c038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x60]
mov qword [r14 + 0x40], rax
movaps xmm0, xmmword [0x14010fbd0]
movaps xmmword [r14 + 0x30], xmm0
movaps xmmword [r14 + 0x20], xmm0
movaps xmmword [r14 + 0x10], xmm0
movaps xmmword [r14], xmm0
lea rdx, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x171
call fcn.140071f70
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.1400737a0
mov eax, ebx
and eax, 1
neg eax
and eax, 3
test bl, 2
mov edx, 1
cmove edx, eax
test bl, 4
mov ecx, 4
cmovne edx, ecx
test bl, 8
mov r8d, 2
cmove r8d, edx
test bl, 0x10
mov eax, 5
cmove eax, r8d
test eax, eax
je 0x14003a33a
mov edx, ebx
and edx, 0x40
shl edx, 0x18
test bl, bl
cmovns ecx, edx
mov r8d, ebx
rol r8d, 0x1a
and r8d, 0x80000100
or r8d, ecx
bt ebx, 0x12
jb 0x14003a30f
mov edx, ebx
shr edx, 4
and edx, 0x10000
or edx, r8d
mov ecx, ebx
shr ecx, 8
and ecx, 3
mov r8d, ebx
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov r15d, ebx
and r15d, 0x400
mov ecx, r15d
shl ecx, 0x14
mov r9d, ebx
shr r9d, 3
and r9d, 0x100
or r9d, ecx
mov ecx, ebx
shr ecx, 0xb
and ecx, 2
or ecx, r9d
mov r10d, ebx
shl r10d, 0xd
and r10d, 0x4000000
or r10d, ecx
mov r9d, ebx
shl r9d, 8
and r9d, 0xa000000
or r9d, r10d
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14003a231
mov rcx, qword [rdi]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x30], 0
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp qword [rsi], rax
je 0x14003a28b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003a321
mov rax, r14
inc rax
cmp rax, 2
jb 0x14003a280
mov qword [rsi], r14
call fcn.140071f90
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rsi]
inc r14
cmp r14, 2
jb 0x14003a2f3
shr r15d, 0xa
mov dword [rsi + 0x24], 0
mov byte [rsi + 0x29], r15b
test bl, 4
jne 0x14003a2e2
test bl, 0xa
je 0x14003a2b1
mov byte [rsi + 0x28], 1
bt ebx, 0x15
jb 0x14003a305
lea rcx, [rsp + 0x60]
call fcn.1400739e0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140092d80
nop
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [rsi + 0x28]
jmp 0x14003a2b1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140039fc0
mov dword [rsi + 0x24], eax
jmp 0x14003a2b7
mov rcx, rdi
call fcn.1400286d0
jmp 0x14003a2b7
bt ebx, 0x15
jb 0x14003a356
or r8d, 0x20000000
jmp 0x14003a1af
call fcn.140071f90
mov rcx, qword [rsi]
call fcn.140073cd0
mov qword [rsi], 0
jmp 0x14003a26c
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 0x24], 0xffffffff
call fcn.1400de7b0
jmp 0x14003a2b7
int3