joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055350
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 [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x70], rax
call fcn.140072db0
test al, al
je 0x1400553a9
call fcn.140072da0
mov rdi, rax
lea rbx, [0x14011ac8e]
mov rcx, rax
mov rdx, rbx
call fcn.140072e50
test al, al
jne 0x1400553d8
lea rdx, str.vmodule
mov rcx, rdi
call fcn.140072e50
test al, al
jne 0x1400553d8
mov eax, dword [rsi]
mov dword [0x140134028], eax
mov bl, 1
test al, 1
jne 0x140055499
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008a8f0
mov eax, ebx
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
cmp qword [0x1401397e8], 0
jne 0x14005552a
mov rax, qword [0x1401397f0]
mov qword [0x1401397e8], rax
mov ecx, 0x20
call fcn.140089504
mov r14, rax
lea rcx, str.vmodule
lea r15, [rsp + 0x48]
mov qword [r15], rcx
call fcn.1400abcf0
mov qword [r15 + 8], rax
lea r12, [rsp + 0x58]
mov rcx, rdi
mov rdx, r12
mov r8, r15
call fcn.140072f60
lea r15, [rsp + 0x20]
mov qword [r15], rbx
mov rcx, rbx
call fcn.1400abcf0
mov qword [r15 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call fcn.140072f60
lea r9, [0x1401397f8]
mov rcx, r14
mov rdx, rbx
mov r8, r12
call fcn.1400e1230
mov qword [0x1401397f0], r14
cmp byte [rbx + 0x17], 0
jns 0x14005547f
mov rcx, qword [rsp + 0x30]
call fcn.140089540
cmp byte [rsp + 0x6f], 0
jns 0x1400553a9
mov rcx, qword [rsp + 0x58]
call fcn.140089540
jmp 0x1400553a9
mov rcx, qword [0x140139820]
test rcx, rcx
jne 0x1400554b3
mov rcx, qword [0x140139800]
test rcx, rcx
je 0x1400554d7
jmp 0x1400554f9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140139820], 0
mov rcx, qword [0x140139800]
test rcx, rcx
jne 0x1400554f9
and byte [0x140134028], 0xfe
mov ecx, 0x18
call fcn.140089504
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x140139800], rax
mov rdx, qword [rsi + 8]
call fcn.140051370
cmp dword [rsi + 0x14], 0
jne 0x14005551e
mov rcx, qword [0x140139800]
cmp byte [rcx + 0x17], 0
jns 0x140055518
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.1400dca40
mov ebx, eax
jmp 0x1400553bb
int3
Function at 0x1400578c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140134060]
cmp ecx, 0xffffffff
je 0x1400578e5
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 0x1400578e0

Function at 0x1400578f0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x140134060]
cmp ecx, 0xffffffff
je 0x1400579ce
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400579ce
mov eax, dword [0x14013b0c8]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400579d8
mov rbx, qword [0x14013b0c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140057a1e
mov rax, qword [0x1401398b0]
inc rax
xor ecx, ecx
lea rdx, [0x1401398c0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x140057a2b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1401398b0], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140057a40
cmp eax, 0x100
jge 0x140057a43
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140057a50
jmp 0x14005791e
lea rcx, [0x14013b0c8]
call fcn.140089660
cmp dword [0x14013b0c8], 0xffffffff
jne 0x140057943
mov ecx, 8
call fcn.140089504
mov rbx, rax
mov rcx, rax
call fcn.140078900
mov qword [0x14013b0c0], rbx
lea rcx, [0x14013b0c8]
call fcn.1400896f8
jmp 0x140057943
mov rcx, rbx
call fcn.140078910
jmp 0x14005795b
inc rcx
cmp rcx, 0x100
jne 0x14005796e
jmp 0x1400579a2
int3
int3
Function at 0x140057a50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.14008a890
sub rsp, rax
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x140134060]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x140057b04
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140057b42
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.14008ca10
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14008957c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.14008c360
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.14008a8f0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.140060130
test al, al
je 0x140057b45
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x140057b48
mov eax, 0xffffffff
lock cmpxchg dword [0x140134060], ecx
je 0x140057a88
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140134060]
mov dword [rsp + 0x2c], ecx
jmp 0x140057a88
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.140060130
test al, al
je 0x140057b6d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140057b6d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x140057b1b
int3

Function at 0x140057f80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1401161a0]
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, 0x1af
call fcn.1400747c0
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140077b30
cmp byte [rdi + 0x17], 0
jns 0x140058004
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.140077b90
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14008a8f0
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140058040
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov r14, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14008ca10
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
add edi, 0xfffffefc
cmp edi, 0xfffffefd
jb 0x1400580e3
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1400ad380
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.140073860
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.140054d50
mov rcx, r14
mov rdx, rsi
call fcn.1400739b0
mov rcx, rsi
call fcn.140073940
mov rcx, rbx
call fcn.140073940
cmp edi, 0xfffffefd
setae bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14008a8f0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140058110
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008ca10
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 0x1400581a5
cmp word [rsp + 0x70], 0
je 0x1400581a5
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400ad380
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.140073860
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.14008a8f0
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 [0x1401161a0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.140073820
mov rcx, rdi
call fcn.140058040
test al, al
je 0x1400581e5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140073840
jmp 0x140058204
lea rax, [0x1401194a2]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.140073860
lea rcx, [rsp + 0x40]
call fcn.140073940
jmp 0x140058187
Function at 0x140059200
Capabilities:
Create thread

Disassembly:
jmp 0x140059200
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov ebp, r9d
mov rdi, r8
mov rsi, rdx
mov r13, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffe00000000
shl ebx, 0x10
mov ecx, 0x10
call fcn.140089504
mov r15, rax
mov rax, rsi
and rax, r12
cmp rax, qword [0x14012ce48]
jne 0x140059264
mov rcx, rsi
call fcn.140075880
mov qword [r15], rsi
test rdi, rdi
setne byte [r15 + 8]
mov dword [r15 + 0xc], ebp
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x1400595e0]
xor ecx, ecx
mov rdx, r13
mov r9, r15
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x1400592cb
test rdi, rdi
je 0x14005930f
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008a8f0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400592e4
mov edi, eax
cmp eax, 0x5af
je 0x1400592e4
cmp edi, 0xe
jne 0x14005931a
mov rcx, r13
call fcn.1400de150
test r15, r15
je 0x1400592a5
mov rcx, qword [r15]
and r12, rcx
cmp r12, qword [0x14012ce48]
jne 0x140059305
call fcn.1400759c0
mov rcx, r15
call fcn.140089540
jmp 0x1400592a5
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400592a5
mov eax, dword [0x14013b100]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005938d
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, edi
call fcn.140056b40
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x14013b0f8]
call fcn.14007f300
cmp byte [rsi + 0x17], 0
jns 0x1400592ec
mov rcx, qword [rsp + 0x38]
call fcn.140089540
jmp 0x1400592ec
lea rcx, [0x14013b100]
call fcn.140089660
cmp dword [0x14013b100], 0xffffffff
jne 0x14005933b
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140061fe0
mov qword [0x14013b0f8], rax
lea rcx, [0x14013b100]
call fcn.1400896f8
jmp 0x14005933b

Function at 0x140059960
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x14012c028]
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]
mov edi, eax
test eax, eax
jne 0x1400599d3
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x1400599d3
cmp dword [rsp + 0x38], 4
jne 0x1400599d3
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14008a8f0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x1400599f0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.14008a890
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14008ca10
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 0x140059aa3
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x140059aa7
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.140051370
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14008a8f0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x140059a84
cmp eax, 2
jne 0x140059aef
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14008ca10
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x140059af6
lea rdx, [rsp + 0x40]
jmp 0x140059a7a
mov edi, 0x3f4
jmp 0x140059a84
mov edi, 0xea
jmp 0x140059a84

Function at 0x140059b00
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x14012c028]
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.14008a8f0
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x140059b00
Function at 0x14005b8c0
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, [0x140116100]
mov qword [rcx], rax
add rcx, 8
call fcn.140078900
lea rcx, [rsi + 0x10]
call fcn.140078900
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.140078900
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
movups xmmword [rsi + 0xd0], xmm6
mov qword [rsi + 0xe0], rbx
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 [0x14011b56c]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.1400629a0
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.140057c60
lea rcx, [rsi + 0x318]
xor edx, edx
call fcn.140057c60
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.140057c60
movups xmmword [rsi + 0x328], xmm6
movups xmmword [rsi + 0x338], xmm6
mov dword [rsi + 0x348], ebp
movups xmmword [rsi + 0x350], xmm6
movups xmmword [rsi + 0x360], xmm6
movups xmmword [rsi + 0x370], xmm6
mov byte [rsi + 0x380], bl
mov dword [rsi + 0x384], edi
mov byte [rsi + 0x388], bl
movups xmmword [rsi + 0x390], xmm6
movups xmmword [rsi + 0x3a0], xmm6
call fcn.140039ae0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.14005baf0
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14005badb
call fcn.140062240
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.1400622f0
mov qword [0x14013d4c8], 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 [0x140147008]
jmp 0x14005baa9
Function at 0x14005e170
Capabilities:
Query environment variable

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x230
mov rsi, rcx
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14008ca10
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 0x14005e1fc
mov ebx, eax
sub rbx, 1
jb 0x14005e1fc
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14005e1cc
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005e1e6
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a1448
test eax, eax
je 0x14005e2cf
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 0x14005e256
mov ebx, eax
sub rbx, 1
jb 0x14005e256
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14005e226
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005e240
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a1448
test eax, eax
je 0x14005e301
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 0x14005e2b0
mov ebx, eax
sub rbx, 1
jb 0x14005e2b0
cmp word [rsp + rbx*2 + 0x20], 0x5c
je 0x14005e280
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x14005e29a
mov rcx, qword [rsi]
lea r8, [rbx + 1]
lea rdx, [rsp + 0x20]
call fcn.1400a1448
test eax, eax
je 0x14005e336
xor edi, edi
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.14008a8f0
mov eax, edi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
ret
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14005e2de
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14005e2b2
mov rcx, rsi
test al, al
jns 0x14005e2f3
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14005e1fc
jmp 0x14005e2b2
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14005e310
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14005e2b2
mov rcx, rsi
test al, al
jns 0x14005e325
mov rcx, qword [rsi]
cmp word [rcx + rbx*2 + 2], 0x5c
jne 0x14005e256
jmp 0x14005e2b2
movzx eax, byte [rsi + 0x17]
mov rcx, rax
test al, al
jns 0x14005e345
mov rcx, qword [rsi + 8]
dec rcx
mov dil, 1
cmp rcx, rbx
je 0x14005e2b2
test al, al
jns 0x14005e35b
mov rsi, qword [rsi]
cmp word [rsi + rbx*2 + 2], 0x5c
jne 0x14005e2b0
jmp 0x14005e2b2

Function at 0x14005fc90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14013d550]
cmp rdi, 1
jbe 0x14005fcb9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400780a0
lea rcx, [0x14013d550]
call fcn.1400746e0
test al, al
je 0x14005fcff
mov qword [0x14013d558], 0
lea rbx, [0x14013d550]
lea rdi, [0x14013d558]
mov rcx, rdi
xor edx, edx
call fcn.140057c60
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.140055330
jmp 0x14005fca7
mov rdi, qword [0x14013d550]
jmp 0x14005fca7
Function at 0x140060130
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x140060145
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x140060810
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14012c028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14013d5b0]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140060870
lea rsi, [0x14013d5a8]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14008a8f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14013d5b0]
call fcn.140089660
cmp dword [0x14013d5b0], 0xffffffff
jne 0x14006084c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14008ca10
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
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.140089504
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14013d5f8]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140060930
lea r8, [0x14013d5c8]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.140060a50
mov qword [0x14013d5a8], rsi
lea rcx, [0x14013d5b0]
call fcn.1400896f8
jmp 0x14006084c
lea rcx, [0x14013d5f8]
call fcn.140089660
cmp dword [0x14013d5f8], 0xffffffff
jne 0x140060901
xorps xmm0, xmm0
movups xmmword [0x14013d5e8], xmm0
movups xmmword [0x14013d5d8], xmm0
movups xmmword [0x14013d5c8], xmm0
lea rcx, [0x14013d5c8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013d5f8]
call fcn.1400896f8
jmp 0x140060901

Function at 0x1400609a0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14013d5f8]
mov ecx, dword [0x140135458]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400609dc
movzx ecx, word [0x14013d5c8]
cmp cx, 9
jne 0x140060a24
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14013d5f8]
call fcn.140089660
cmp dword [0x14013d5f8], 0xffffffff
jne 0x1400609c5
xorps xmm0, xmm0
movups xmmword [0x14013d5e8], xmm0
movups xmmword [0x14013d5d8], xmm0
movups xmmword [0x14013d5c8], xmm0
lea rcx, [0x14013d5c8]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14013d5f8]
call fcn.1400896f8
jmp 0x1400609c5
xor eax, eax
test cx, cx
je 0x1400609d7
cmp cx, 6
jne 0x140060a38
mov eax, 2
jmp 0x1400609d7
cmp cx, 0xc
jne 0x140060a45
mov eax, 3
jmp 0x1400609d7
mov eax, 4
jmp 0x1400609d7
Function at 0x140061160
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
jne 0x14006124c
cmp qword [rsi], 0
jne 0x14006124c
cmp dword [rsi + 0x14], 0
jne 0x14006124c
cmp qword [rsi + 8], 0
jne 0x14006124c
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x1400611cf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14006121e
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400611c7
mov qword [rsi], rbx
call fcn.1400747e0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x140061209
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140061234
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140061201
mov qword [rsi + 8], rbp
call fcn.1400747e0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
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
call fcn.1400747e0
mov rcx, qword [rsi]
call fcn.1400789c0
mov qword [rsi], 0
jmp 0x1400611b5
call fcn.1400747e0
mov rcx, qword [rsi + 8]
call fcn.1400789c0
mov qword [rsi + 8], 0
jmp 0x1400611ee
mov rcx, rsi
call fcn.1400e4b20
mov rax, qword [rsi]
jmp 0x140061199