joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140019b50
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401fd0c0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xba
call fcn.1400c8fe0
xor edi, edi
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.1400f51e0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14], rax
mov rcx, qword [rbx]
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rbx]
mov rcx, rsi
call fcn.1400f4cf0
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012c2d0
mov rax, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140019da0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.14012c270
sub rsp, rax
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x14023f7a0]
cmp esi, 0xffffffff
je 0x140019e53
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140019e85
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.14012e410
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.140129c20
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.14012dd60
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14012c2d0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140019e88
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x14023f7a0], esi
je 0x140019dd3
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x14023f7a0]
jmp 0x140019dd3
int3
int3
Function at 0x14001b160
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 0x14001b1a6
mov r15, rbx
test r15, r15
je 0x14001b2a1
mov rax, qword [rdi]
mov qword [r15], 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 r12, qword [rsi]
mov r14, qword [rsi + 8]
mov rax, r14
sub rax, r12
jbe 0x14001b202
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 0x14001b1f1
mov rcx, r15
mov rdx, r14
mov r8, rbx
call fcn.14012dd60
mov r14, qword [rsi + 8]
add r15, rbx
mov qword [rsi + 0x10], r15
lea rax, [r14 + r12*8]
mov qword [rsi + 8], rax
jmp 0x14001b182
mov rax, rbx
sub rax, r12
sar rax, 2
cmp rbx, r12
mov r13d, 1
cmovne r13, rax
mov rax, r13
shr rax, 0x3d
jne 0x14001b2c7
lea rcx, [r13*8]
call fcn.1401298a8
mov rcx, r13
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rbx
mov r15, rcx
sub rdx, r14
je 0x14001b267
xor r15d, r15d
mov r8, rcx
add r8, r15
je 0x14001b2a1
mov r9, qword [r14 + r15]
mov qword [r8], r9
add r15, 8
cmp rdx, r15
jne 0x14001b24c
add r15, rcx
lea rdx, [rax + r13*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], rdx
cmp rbx, r14
je 0x14001b287
add rbx, 0xfffffffffffffff8
jne 0x14001b27a
jmp 0x14001b2b4
test r12, r12
je 0x14001b182
mov rcx, r12
call fcn.1401298a0
mov r15, qword [rsi + 0x10]
jmp 0x14001b182
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:40:_assertion___location___nullptr_failed:_null_pointer_given_to_construct_at_n
call fcn.140163630
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude__memoryconstruct_at.h:66:_assertion___loc___nullptr_failed:_null_pointer_given_to_destroy_at_n
call fcn.140163630
call fcn.140168700
int3
Function at 0x1400208e0
Capabilities:
Create thread

Disassembly:
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 [0x140231028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.1401298a8
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x140233688]
jne 0x14002094d
mov rcx, r15
call fcn.140097e00
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, [0x140025a50]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400209c1
test r14, r14
je 0x1400209b6
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012c2d0
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, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140020990
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp eax, 0x27a
jle 0x140020a0b
cmp ebp, 0x5af
je 0x1400209e0
cmp ebp, 0x27b
jne 0x140020a15
mov rcx, rbx
call fcn.14018a2c0
test rsi, rsi
je 0x140020990
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140233688]
jne 0x140020a01
call fcn.1400980c0
mov rcx, rsi
call fcn.1401298a0
jmp 0x140020990
cmp ebp, 8
je 0x1400209e0
cmp ebp, 0xe
je 0x1400209e0
mov eax, dword [0x140243768]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140020aca
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.140093640
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x140020a5d
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rax
test rax, rax
js 0x140020aa4
sete al
test rbx, rbx
setne cl
or cl, al
je 0x140020ab7
mov rcx, qword [0x140243760]
lea rdx, [rsp + 0x50]
call fcn.14000ff00
cmp byte [rsp + 0x4f], 0
jns 0x1400209e8
mov rcx, qword [rsp + 0x38]
call fcn.1401298a0
jmp 0x1400209e8
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude_string_view:318:_assertion___len___static_cast_size_type__numeric_limits_difference_type_::max____failed:_string_view::string_view__CharT___size_t_:_length_does_not_fit_in_difference_type_n
call fcn.140163630
lea rcx, [0x14020233c]
lea rdx, str....._third_partylibc_srcinclude_string_view:320:_assertion___len__0____s___nullptr_failed:_string_view::string_view__CharT___size_t_:_received_nullptr_n
call fcn.140163630
lea rcx, [0x140243768]
call fcn.1401299b4
cmp dword [0x140243768], 0xffffffff
jne 0x140020a3a
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140014420
mov qword [0x140243760], rax
lea rcx, [0x140243768]
call fcn.140129a1c
jmp 0x140020a3a
Function at 0x140028150
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x1401ff968]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x1400281c2
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400281cf
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400281ba
mov qword [rsi + 0x18], rdi
call fcn.1400b34e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400b34e0
mov r14, qword [rsi + 0x18]
cmp qword [0x140243968], 0
je 0x140028202
mov rcx, qword [0x140243968]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140223bc8]
mov qword [rsi + 0x18], 0
jmp 0x1400281a7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14021595f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140028243
lea rcx, [sym.browser.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14002823d
call qword [0x140223bc8]
mov rcx, rax
xor edx, edx
call fcn.140047ac0
jmp 0x1400281e2
xor ecx, ecx
mov dl, 1
jmp 0x140028236
xor ecx, ecx
jmp 0x140028234
Function at 0x14002ab10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x14024a448]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002ac45
mov ecx, dword [0x14023f7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ab71
mov rcx, qword [0x14024a438]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14024a440]
jne 0x14002ab71
add rax, rcx
cmp qword [rax], 0
jne 0x14002ac04
mov ecx, 4
call fcn.1401298a8
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x14023f7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ac3e
mov rcx, qword [0x14024a438]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14024a440]
jne 0x14002ac3e
add rax, rcx
mov rdi, qword [rax]
mov ecx, dword [0x14023f7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x14002abd7
test rsi, rsi
je 0x14002abfb
call fcn.140019da0
mov rcx, qword [0x14024a438]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x14024a440]
mov rdx, qword [0x14024a438]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14002ac98
mov ecx, dword [0x14023f7a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ac3a
mov rcx, qword [0x14024a438]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x14024a440]
jne 0x14002ac3a
add rax, rcx
mov rax, qword [rax]
add rsp, 0x28
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14002ac33
xor edi, edi
jmp 0x14002abbb
lea rcx, [0x14024a448]
call fcn.1401299b4
cmp dword [0x14024a448], 0xffffffff
jne 0x14002ab3b
mov qword [0x14024a440], 0
lea rcx, [0x14024a438]
mov qword [0x14024a438], 0xffffffffffffffff
lea rdx, [0x140066540]
call fcn.140031990
lea rcx, [0x14024a448]
call fcn.140129a1c
jmp 0x14002ab3b
mov rcx, rdi
call fcn.1401298a0
jmp 0x14002ac04
Function at 0x14002e330
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea rbx, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.14012e410
xor ebp, ebp
mov dword [rsp + 0x30], ebp
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rsi
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140033360
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1401fd0c0]
movaps xmmword [rsi], xmm0
mov rcx, rbx
mov rdx, rsi
call fcn.14002e6b0
movsx rax, byte [rsi + 0x17]
mov rcx, rax
test rax, rax
jns 0x14002e3cd
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002e494
xor r14d, r14d
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x68]
lea rbx, [rsp + 0x38]
xor r13d, r13d
cmp byte [rsp + 0x68], 0
je 0x14002e4d9
mov edx, dword [rsp + 0x6c]
test dl, 1
jne 0x14002e4e3
test dl, 0x10
jne 0x14002e4d2
cmp byte [rsp + 0x67], 0
mov rcx, rsi
jns 0x14002e424
mov rcx, qword [rsp + 0x50]
call r15
test eax, eax
jne 0x14002e4d2
call r12
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebp, r14d
test r13d, r13d
cmovne ebp, r13d
mov rcx, rdi
mov rdx, rbx
call fcn.14002e6b0
cmp byte [rsp + 0x67], 0
jns 0x14002e461
mov rcx, qword [rsp + 0x50]
call fcn.1401298a0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movsx rax, byte [rsp + 0x67]
mov rcx, rax
test rax, rax
jns 0x14002e488
mov rcx, qword [rsp + 0x58]
mov r13d, ebp
test rcx, rcx
jne 0x14002e3f4
test al, al
jns 0x14002e4a2
mov rcx, qword [rsp + 0x50]
call fcn.1401298a0
lea rcx, [rsp + 0x68]
call fcn.14002e510
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.14012c2d0
mov eax, ebp
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
jmp 0x14002e43e
call fcn.140165cc0
jmp 0x14002e415
xor ebp, ebp
test dl, 0x10
jne 0x14002e43e
test al, al
jns 0x14002e4f9
mov rcx, qword [rsp + 0x50]
jmp 0x14002e4fe
lea rcx, [rsp + 0x50]
and edx, 0xffffffee
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002e415
Function at 0x140030cd0
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x140030cff
test r8d, r8d
jne 0x140030cf8
lea rcx, [0x140246408]
lea rdx, [0x140095160]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.140112dd0

Function at 0x140031880
Capabilities:
Check if file exists

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 [rdx]
mov qword [rdx], 0
lea r12, [r15 + 1]
cmp r12, 2
jb 0x1400318ac
call fcn.1400b34e0
mov qword [rsi], 0
test r15, r15
je 0x1400318e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003190d
cmp r12, 2
jb 0x1400318da
mov qword [rsi], r15
call fcn.1400b34e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [rdi + 8]
mov byte [rsi + 8], al
mov byte [rdi + 8], 0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14003197f
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1400b34e0
mov r14, qword [rsi]
cmp qword [0x140243968], 0
je 0x14003193e
mov rcx, qword [0x140243968]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140223bc8]
mov qword [rsi], 0
jmp 0x1400318cc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14021595f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003198c
lea rcx, [sym.browser.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140031979
call qword [0x140223bc8]
mov rcx, rax
xor edx, edx
call fcn.140047ac0
jmp 0x14003191f
xor ecx, ecx
mov dl, 1
jmp 0x140031972
mov rcx, rdi
call fcn.14011cc80
jmp 0x1400318fc
xor ecx, ecx
jmp 0x140031970
Function at 0x140031990
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x14023f7a0]
cmp ecx, 0xffffffff
je 0x140031a6a
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x140031a6a
mov eax, dword [0x140249800]
mov ecx, dword [0x1402403d0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140031a74
mov rbx, qword [0x1402497f8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140031ab9
mov rax, qword [0x140247fe8]
inc rax
xor ecx, ecx
lea rdx, [0x140247ff0]
lea r8d, [rax + rcx]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rdx + r9*8], 0
jne 0x140031ac6
lea rax, [rdx + r9*8]
mov dword [rax], 1
mov qword [rax + 8], rdi
mov ecx, dword [0x1402497f0]
inc ecx
mov dword [0x1402497f0], ecx
mov dword [rax + 0x14], ecx
mov qword [0x140247fe8], r8
mov qword [rsi], r8
mov eax, dword [rax + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp qword [rsi], 0x100
jae 0x140031ab6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.140019da0
jmp 0x1400319ba
lea rcx, [0x140249800]
call fcn.1401299b4
cmp dword [0x140249800], 0xffffffff
jne 0x1400319df
mov ecx, 8
call fcn.1401298a8
mov qword [rax], 0
mov qword [0x1402497f8], rax
lea rcx, [0x140249800]
call fcn.140129a1c
jmp 0x1400319df
int3
mov rcx, rbx
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x1400319f7
inc rcx
cmp rcx, 0x100
jne 0x140031a0a
jmp 0x140031a50
Function at 0x1400322c0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14012c270
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14012e410
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 0x140032373
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140032377
lea rdx, [rsp + 0x840]
mov rcx, rsi
call fcn.1400323d0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14012c2d0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140032354
cmp eax, 2
jne 0x1400323bf
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14012e410
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 0x1400323c6
lea rdx, [rsp + 0x40]
jmp 0x14003234a
mov edi, 0x3f4
jmp 0x140032354
mov edi, 0xea
jmp 0x140032354

Function at 0x1400375b0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
mov eax, 0x10040
call fcn.14012c270
sub rsp, rax
mov rsi, rdx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x10038], rax
mov rax, qword [rcx]
mov rdx, qword [rcx + 8]
xorps xmm0, xmm0
lea rdi, [rsp + 0x20]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rax
mov r8, rdi
call fcn.1400e1e20
test rsi, rsi
je 0x14003767d
lea rbx, [rsp + 0x3a]
mov r8d, 0xfffe
mov rcx, rbx
mov dl, 0xaa
call fcn.14012e410
cmp byte [rsp + 0x37], 0
jns 0x140037620
mov rdi, qword [rsp + 0x20]
mov rcx, rdi
mov rdx, rbx
mov r8d, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
je 0x14003764f
cmp eax, 0x7fff
jae 0x1400376a2
mov edx, eax
lea rcx, [rsp + 0x3a]
mov r8, rsi
call fcn.14004e230
cmp byte [rsp + 0x37], 0
jns 0x140037660
mov rcx, qword [rsp + 0x20]
call fcn.1401298a0
mov rcx, qword [rsp + 0x10038]
xor rcx, rsp
call fcn.14012c2d0
mov eax, ebx
add rsp, 0x10040
pop rbx
pop rdi
pop rsi
ret
cmp byte [rsp + 0x37], 0
js 0x14003768b
lea rcx, [rsp + 0x20]
jmp 0x140037690
mov rcx, qword [rsp + 0x20]
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
jmp 0x14003764f
int3
Function at 0x140038c80
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov ebx, 0xffffffff
cmp r8, rbx
cmovb rbx, r8
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140038d48
mov r15, qword [sym.imp.KERNEL32.dll_GetFileType]
lea r14, [rsp + 0x2c]
mov r12, qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x140038d10
cmp eax, 0xffffffff
je 0x140038d21
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14012c2d0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r15
cmp eax, 3
je 0x140038d24
mov eax, dword [rsp + 0x2c]
jmp 0x140038cf0
int3
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r12
test eax, eax
jne 0x140038ce3
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x140038cf2

Function at 0x1400397e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rax, qword [0x140231028]
xor rax, rsp
mov qword [rsp + 0x48], rax
test rcx, rcx
je 0x140039919
mov rsi, rdx
mov rdi, rcx
lea rbx, [rsp + 0x40]
mov qword [rbx], 0
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov r14, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], 2
mov rcx, rax
mov rdx, rdi
mov r8, r14
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
setne bl
je 0x140039920
mov r15, qword [rsp + 0x40]
cmp qword [rsi], r15
je 0x14003988c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400398a7
lea rax, [r15 + 1]
cmp rax, 2
jb 0x140039884
mov qword [rsi], r15
call fcn.1400b34e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14012c2d0
mov eax, ebx
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400b34e0
mov r14, qword [rsi]
cmp qword [0x140243968], 0
je 0x1400398d8
mov rcx, qword [0x140243968]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140223bc8]
mov qword [rsi], 0
jmp 0x140039872
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14021595f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003992d
lea rcx, [sym.browser.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140039913
call qword [0x140223bc8]
mov rcx, rax
xor edx, edx
call fcn.140047ac0
jmp 0x1400398b9
xor ecx, ecx
mov dl, 1
jmp 0x14003990c
mov bl, 1
jmp 0x14003988c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140039884
xor ecx, ecx
jmp 0x14003990a
Function at 0x14003a190
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x14003a1b8
call fcn.1400b34e0
cmp qword [rsi], r14
je 0x14003a1e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003a1f6
cmp r15, 2
jb 0x14003a1df
mov qword [rsi], r14
call fcn.1400b34e0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400b34e0
mov rbx, qword [rsi]
cmp qword [0x140243968], 0
je 0x14003a227
mov rcx, qword [0x140243968]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x140223bc8]
mov qword [rsi], 0
jmp 0x14003a1d1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14021595f]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003a268
lea rcx, [sym.browser.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14003a262
call qword [0x140223bc8]
mov rcx, rax
xor edx, edx
call fcn.140047ac0
jmp 0x14003a208
xor ecx, ecx
mov dl, 1
jmp 0x14003a25b
xor ecx, ecx
jmp 0x14003a259