joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400365f0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
movaps xmmword [rsp + 0xe0], xmm6
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0xd8], rax
test rcx, rcx
je 0x1400367b3
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.140091abc
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x50], rax
movaps xmm6, xmmword [0x1400ed0e0]
movaps xmmword [r14 + 0x40], xmm6
movaps xmmword [r14 + 0x30], xmm6
movaps xmmword [r14 + 0x20], xmm6
movaps xmmword [r14 + 0x10], xmm6
movaps xmmword [r14], xmm6
lea rdx, str.ReadStreamToSpanWithMaxSize
lea r8, str....._base_files_file_util.cc
lea r15, [rsp + 0x40]
mov rcx, r15
mov r9d, 0x48
call fcn.14005a9f0
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.14005e820
xorps xmm0, xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
mov dword [r15 + 0x30], 0
mov rcx, rbx
call fcn.140089544
mov ecx, eax
call fcn.14008959c
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400367b7
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x64]
shl rax, 0x20
or rax, rcx
test rax, rax
mov r14d, 0xffff
cmovg r14, rax
cmp r14, rdi
cmovae r14, rdi
inc r14
lea rcx, [rsp + 0x30]
movaps xmmword [rcx], xmm6
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
mov r8, r14
call qword [0x140128008]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.14009183c
test rax, rax
je 0x140036756
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x1400367c2
add r15, r12
mov rcx, rbx
call fcn.140091074
test eax, eax
je 0x1400367c6
mov r12, r15
mov rcx, rbx
call fcn.1400910a0
test eax, eax
sete bl
mov rdi, r12
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x20]
mov r8, rdi
call qword [0x140128008]
lea rcx, [rsp + 0x80]
call fcn.14005e880
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140077cf0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x140036788
mov r14d, 0xffff
jmp 0x1400366f4
xor ebx, ebx
jmp 0x140036766
test r12, r12
mov eax, 0x10000
cmove r14, rax
lea r8, [r15 + r14]
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
lea r12, [rsp + 0x20]
mov rcx, r12
call qword [0x140128008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x140036719
Function at 0x140036ac0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.140036b80
mov eax, dword [rsi]
mov dword [0x140106f58], eax
test al, 1
jne 0x140036ae1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x140117440]
test rcx, rcx
jne 0x140036afb
mov rcx, qword [0x140117418]
test rcx, rcx
je 0x140036b1f
jmp 0x140036b41
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140117440], 0
mov rcx, qword [0x140117418]
test rcx, rcx
jne 0x140036b41
and byte [0x140106f58], 0xfe
mov ecx, 0x18
call fcn.1400767bc
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140117418], rax
mov rdx, qword [rsi + 8]
call fcn.1400376e0
cmp dword [rsi + 0x14], 0
jne 0x140036b66
mov rcx, qword [0x140117418]
cmp byte [rcx + 0x17], 0
jns 0x140036b60
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400c22a0
Function at 0x14003a6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1400ed0e0]
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, 0x1c9
call fcn.14005a9f0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.14005e820
cmp byte [rdi + 0x17], 0
jns 0x14003a724
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.14005e880
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140077cf0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret

Function at 0x14003a760
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.140079e10
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x14003a803
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.140095fd0
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.140059d20
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140036370
mov rcx, rsi
mov rdx, r14
call fcn.140035c40
mov rcx, r14
call fcn.140059ea0
mov rcx, rbx
call fcn.140059ea0
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140077cf0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14003a830
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140079e10
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 0x14003a8c5
cmp word [rsp + 0x70], 0
je 0x14003a8c5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.140095fd0
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140059d20
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140077cf0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400ed0e0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140059ce0
mov rcx, rdi
call fcn.14003a760
test al, al
je 0x14003a905
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140059d00
jmp 0x14003a924
lea rax, [0x1400f03d2]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140059d20
lea rcx, [rsp + 0x40]
call fcn.140059ea0
jmp 0x14003a8a7
Function at 0x14003bcc0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.1400767bc
mov rsi, rax
mov rax, qword [0x1401085e0]
and rax, r15
cmp rax, qword [0x1401085c8]
je 0x14003bd84
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14003c1b0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x14003bd8e
test r14, r14
je 0x14003bdd9
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140077cf0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, r15
call fcn.14005b960
jmp 0x14003bd1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14003bda7
mov ebp, eax
cmp eax, 0x5af
je 0x14003bda7
cmp ebp, 0xe
jne 0x14003bde7
mov rcx, rbx
call fcn.1400cb190
test rsi, rsi
je 0x14003bd60
mov rcx, qword [rsi]
mov rax, qword [0x1401085e0]
and rax, rcx
cmp rax, qword [0x1401085c8]
jne 0x14003bdcf
call fcn.14005bab0
mov rcx, rsi
call fcn.1400767f8
jmp 0x14003bd60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003bd60
mov eax, dword [0x140117508]
mov ecx, dword [0x1401148dc]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003be5f
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, ebp
call fcn.140039290
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 + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x140117500]
call fcn.140062820
cmp byte [rbx + 0x17], 0
jns 0x14003bdaf
mov rcx, qword [rsp + 0x30]
call fcn.1400767f8
jmp 0x14003bdaf
lea rcx, [0x140117508]
call fcn.140076910
cmp dword [0x140117508], 0xffffffff
jne 0x14003be08
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140041170
mov qword [0x140117500], rax
lea rcx, [0x140117508]
call fcn.1400769a8
jmp 0x14003be08

Function at 0x14003c530
Capabilities:
Query or enumerate registry value

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140077c90
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140079e10
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], r14
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003c683
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14003c687
lea rcx, [rsp + 0x840]
call fcn.140095fd0
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140032990
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140077cf0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x14003c664
cmp eax, 2
jne 0x14003c6dc
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140079e10
lea rcx, [rsp + 0x840]
mov rdx, rdi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x14003c6e3
lea rcx, [rsp + 0x40]
call fcn.140095fd0
lea rdx, [rsp + 0x40]
jmp 0x14003c657
mov edi, 0x3f4
jmp 0x14003c664
mov edi, 0xea
jmp 0x14003c664

Function at 0x14003c6f0
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
xor r8d, r8d
mov r9d, 4
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140077cf0
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x14003c6f0
Function at 0x14003cf00
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, [0x1400ecfd0]
mov qword [rcx], rax
add rcx, 8
call fcn.14005f120
lea rcx, [rsi + 0x10]
call fcn.14005f120
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.14005f120
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
mov qword [rsi + 0xc0], rbx
movups xmmword [rsi + 0xc8], xmm6
movups xmmword [rsi + 0xd8], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x1400f2fdc]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.1400468f0
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.140042020
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.140042020
lea rcx, [rsi + 0x330]
xor edx, edx
call fcn.140042020
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov dword [rsi + 0x360], ebp
movups xmmword [rsi + 0x368], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
mov byte [rsi + 0x398], bl
mov dword [rsi + 0x39c], edi
mov byte [rsi + 0x3a0], bl
movups xmmword [rsi + 0x3a8], xmm6
movups xmmword [rsi + 0x3b8], xmm6
call fcn.140026350
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.14003d130
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14003d11b
call fcn.1400464b0
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.140046560
mov qword [0x140117948], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x140128008]
jmp 0x14003d0e9
Function at 0x14003ed10
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 0x14003ed40
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x14003ed4e
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140037d80
lea rax, [rdx - 1]
test rdx, rax
jne 0x14003ed64
mov rdi, rdx
jmp 0x14003ed25
jae 0x14003ee51
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x14003ed71
cvtsi2ss xmm0, rax
jmp 0x14003ed86
mov rcx, rdx
call fcn.140056860
mov rdi, rax
jmp 0x14003ed25
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.1400a8b30
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1400e0db0]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x14003ee39
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 0x14003ee39
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 0x14003ee41
mov rcx, rdx
call fcn.140056860
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x14003ed2e
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003fc10
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140105038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.140079e10
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 0x14003fca5
mov eax, eax
inc rax
cmp rax, 1
je 0x14003fca5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003fc71
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003fc92
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14008eae8
test eax, eax
je 0x14003fd84
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 0x14003fd06
mov eax, eax
inc rax
cmp rax, 1
je 0x14003fd06
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003fcd2
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003fcf3
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14008eae8
test eax, eax
je 0x14003fd92
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 0x14003fd63
mov eax, eax
inc rax
cmp rax, 1
je 0x14003fd63
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x14003fd33
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14003fd54
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.14008eae8
test eax, eax
je 0x14003fda0
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140077cf0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14003fdae
mov rax, qword [rsi + 8]
jmp 0x14003fdb1
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14003fdcf
mov rax, qword [rsi + 8]
jmp 0x14003fdd2
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14003fdf3
mov rax, qword [rsi + 8]
jmp 0x14003fdf6
and eax, 0x7f
mov bl, 1
cmp rax, r14
je 0x14003fd65
mov rcx, rsi
mov rdx, r14
call fcn.1400ba8d0
cmp word [rax], 0x5c
jne 0x14003fca5
jmp 0x14003fd65
and eax, 0x7f
mov bl, 1
cmp rax, r14
je 0x14003fd65
mov rcx, rsi
mov rdx, r14
call fcn.1400ba8d0
cmp word [rax], 0x5c
jne 0x14003fd06
jmp 0x14003fd65
and eax, 0x7f
mov bl, 1
cmp rax, r14
je 0x14003fd65
mov rcx, rsi
mov rdx, r14
call fcn.1400ba8d0
cmp word [rax], 0x5c
jne 0x14003fd63
jmp 0x14003fd65
Function at 0x140041490
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x1400414cf
test r15, r15
je 0x1400415bd
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x140041519
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.140079760
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x1400414ad
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x1400415e9
lea rcx, [r12*8]
call fcn.1400767bc
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x14004158d
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x1400415bd
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x140041575
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x1400414ad
mov rcx, r14
call fcn.1400767f8
mov r15, qword [rsi + 0x10]
jmp 0x1400414ad
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1400a9eb0
call fcn.1400a9540
int3
Function at 0x1400419c0
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 [0x140105038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140041bdc
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140108630], rax
jne 0x140041bdf
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.140062e10
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 0x140041b9e
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140041b2c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140041b97
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140041bab
mov edx, ecx
and edx, 0x1fc000
je 0x140041bab
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.140065550
mov ecx, dword [0x1401179c8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1401148dc]
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.140077cf0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
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.14006c1a0
test rax, rax
je 0x140041be2
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 0x140041aa7
xor ecx, ecx
jmp 0x140041a8d
mov rcx, rbx
call fcn.1400663a0
jmp 0x140041a3e
movaps xmm0, xmmword [0x1400ed0e0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400ca7a0
mov rcx, rsi
call fcn.140026350
mov rcx, r14
call fcn.1400cb080
int3
int3
xor edi, edi
jmp 0x140041ad1

Function at 0x140041ca0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140114654]
cmp ecx, 0xffffffff
je 0x140041cc5
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 0x140041cc0