joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047820
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140098870
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.14009a9f0
lea r9, [rsp + 0x3c]
mov dword [r9], 1
lea rax, [rsp + 0x38]
mov dword [rax], 0x800
mov rcx, qword [rbx + 8]
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 0x1400478e4
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x1400478e8
lea rcx, [rsp + 0x840]
call fcn.1400bb730
lea rdx, [rsp + 0x840]
mov rcx, rsi
mov r8, rax
call fcn.140043d80
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400988d0
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
mov edi, eax
jmp 0x1400478c5
cmp eax, 2
jne 0x14004793d
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.14009a9f0
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 0x140047944
lea rcx, [rsp + 0x40]
call fcn.1400bb730
lea rdx, [rsp + 0x40]
jmp 0x1400478b8
mov edi, 0x3f4
jmp 0x1400478c5
mov edi, 0xea
jmp 0x1400478c5

Function at 0x140047950
Capabilities:
Set registry value

Disassembly:
push rsi
sub rsp, 0x40
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x34]
mov dword [rax], r8d
mov rcx, qword [rcx + 8]
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.1400988d0
mov eax, esi
add rsp, 0x40
pop rsi
ret
xor r8d, r8d
test edx, edx
cmovg r8d, edx
lea rdx, str.PWALauncherResult
jmp 0x140047950
Function at 0x140047dc0
Capabilities:
Create thread

Disassembly:
jmp 0x140047dc0
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 [0x140149038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140097314
mov rsi, rax
movabs r12, 0xfffffffc00000000
mov rax, r15
and rax, r12
cmp rax, qword [0x1401585c8]
je 0x140047e8e
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, [0x140048270]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140047ea3
test r14, r14
je 0x140047e98
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400988d0
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.140069390
jmp 0x140047e25
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140047e68
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140047ebc
mov ebp, eax
cmp eax, 0x5af
je 0x140047ebc
cmp ebp, 0xe
jne 0x140047ee7
mov rcx, rbx
call fcn.1400f3fa0
test rsi, rsi
je 0x140047e68
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x1401585c8]
jne 0x140047edd
call fcn.1400694e0
mov rcx, rsi
call fcn.140097350
jmp 0x140047e68
mov eax, dword [0x14015b788]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140047f5f
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.14004c130
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 [0x14015b780]
call fcn.1400569d0
cmp byte [rbx + 0x17], 0
jns 0x140047ec4
mov rcx, qword [rsp + 0x38]
call fcn.140097350
jmp 0x140047ec4
lea rcx, [0x14015b788]
call fcn.140097470
cmp dword [0x14015b788], 0xffffffff
jne 0x140047f08
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.1400569a0
mov qword [0x14015b780], rax
lea rcx, [0x14015b788]
call fcn.140097508
jmp 0x140047f08

Function at 0x1400488b0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x1400488f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140048911
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400488ef
mov qword [rsi], rdi
call fcn.14007afb0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140048927
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14007afb0
mov rcx, qword [rsi]
call fcn.140071710
mov qword [rsi], 0
jmp 0x1400488dd
int3
Function at 0x140049640
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], rax
movaps xmm0, xmmword [0x14012f7f0]
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, 0x209
call fcn.14007af90
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.140073ea0
cmp byte [rdi + 0x17], 0
jns 0x1400496c0
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov rcx, rsi
call fcn.1400740e0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1400988d0
mov eax, ebx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
ret

Function at 0x140049700
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x278
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x270], rax
lea rbx, [rsp + 0x60]
mov r8d, 0x20a
mov rcx, rbx
mov dl, 0xaa
call fcn.14009a9f0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
dec edi
cmp edi, 0x102
ja 0x14004979f
lea r14, [rsp + 0x20]
mov qword [r14], rbx
mov rcx, rbx
call fcn.1400bb730
mov qword [r14 + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, r14
call fcn.14007b200
lea r14, [rsp + 0x48]
mov rcx, rbx
mov rdx, r14
call fcn.140050470
mov rcx, rsi
mov rdx, r14
call fcn.14007b440
mov rcx, r14
call fcn.14007b3c0
mov rcx, rbx
call fcn.14007b3c0
cmp edi, 0x103
setb bl
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1400988d0
mov eax, ebx
add rsp, 0x278
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400497d0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009a9f0
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 0x14004987e
cmp word [rsp + 0x70], 0
je 0x14004987e
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400bb730
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14007b200
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.1400988d0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14007b1e0
lea rcx, [rsp + 0x40]
call fcn.14007b3c0
jmp 0x140049847
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x14012f7f0]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14007b1c0
mov rcx, rdi
call fcn.140049700
test al, al
jne 0x140049865
lea rax, [0x140134388]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14007b200
jmp 0x140049872
Function at 0x14004a720
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0xc8], rax
test rcx, rcx
je 0x14004a8e9
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
xor edx, edx
xor r8d, r8d
call fcn.1400b3e98
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r14, [rsp + 0x80]
mov qword [r14 + 0x40], rax
movaps xmm6, xmmword [0x14012f7f0]
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.14007af90
mov rcx, r14
mov rdx, r15
xor r8d, r8d
call fcn.140073ea0
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.1400aa454
mov ecx, eax
call fcn.1400aa4ac
lea rdx, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x14004a8de
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 [0x14016d008]
xor r12d, r12d
mov rcx, qword [rsp + 0x38]
add rcx, r12
mov edx, 1
mov r8, r14
mov r9, rbx
call fcn.1400b3c18
test rax, rax
je 0x14004a881
mov r15, rax
mov rax, rdi
sub rax, r12
cmp rax, r15
jb 0x14004a8ed
add r15, r12
mov rcx, rbx
call fcn.1400b3184
test eax, eax
je 0x14004a8f1
mov r12, r15
mov rcx, rbx
call fcn.1400b31b0
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 [0x14016d008]
lea rcx, [rsp + 0x80]
call fcn.1400740e0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.1400988d0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14d, 0xffff
jmp 0x14004a81f
xor ebx, ebx
jmp 0x14004a8b3
xor ebx, ebx
jmp 0x14004a891
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 [0x14016d008]
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x30], xmm0
mov r12, r15
jmp 0x14004a844
Function at 0x14004edd0
Capabilities:
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14004ee90
mov eax, dword [rsi]
mov dword [0x14014c530], eax
test al, 1
jne 0x14004edf1
mov al, 1
add rsp, 0x20
pop rsi
ret
mov rcx, qword [0x14015b8d0]
test rcx, rcx
jne 0x14004ee0b
mov rcx, qword [0x14015b8a8]
test rcx, rcx
je 0x14004ee2f
jmp 0x14004ee51
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x14015b8d0], 0
mov rcx, qword [0x14015b8a8]
test rcx, rcx
jne 0x14004ee51
and byte [0x14014c530], 0xfe
mov ecx, 0x18
call fcn.140097314
mov rcx, rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [0x14015b8a8], rax
mov rdx, qword [rsi + 8]
call fcn.14004fb40
cmp dword [rsi + 0x14], 0
jne 0x14004ee76
mov rcx, qword [0x14015b8a8]
cmp byte [rcx + 0x17], 0
jns 0x14004ee70
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
add rsp, 0x20
pop rsi
jmp fcn.1400eda40
Function at 0x140050a60
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x14015b988]
test rdi, rdi
jne 0x140050b13
mov ecx, 0x50
call fcn.140097314
mov rsi, rax
xorps xmm6, xmm6
movups xmmword [rax], xmm6
mov byte [rax + 0x10], 0
mov ecx, 0x18
call fcn.140097314
mov qword [rsi + 0x18], rax
lea rcx, [rax + 0x18]
mov qword [rsi + 0x28], rcx
test rax, rax
je 0x140050b38
movups xmmword [rax], xmm6
mov qword [rax + 0x10], 0
mov qword [rsi + 0x20], rcx
mov rax, rsi
add rax, 0x38
movups xmmword [rsi + 0x38], xmm6
mov qword [rsi + 0x30], rax
mov qword [rsi + 0x48], 1
mov qword [0x14015b988], rsi
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140050b35
mov rcx, rax
call fcn.1400bb730
lea rdx, [rsp + 0x28]
mov qword [rdx + 8], rax
mov rcx, rsi
call fcn.140050b70
test rdi, rdi
sete bl
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400988d0
mov eax, ebx
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
int3
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, 0x25
call fcn.1400d1060
int3
Function at 0x140050b70
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x80
movaps xmmword [rsp + 0x70], xmm6
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rdx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
lea rdi, [rsp + 0x30]
mov rcx, rdi
mov r8d, 3
call fcn.140048500
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
cmp qword [rbx + 8], 0
je 0x140050cdc
movups xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov dword [rsp + 0x4c], 0
lea rcx, str.api_ms_win_downlevel_shell32_l1_1_0.dll
xor edx, edx
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x140050d31
lea rdx, [0x140134bd8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140050d1f
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [0x14016d008]
mov r14, rax
movsxd r12, dword [rsp + 0x4c]
xorps xmm6, xmm6
movaps xmmword [rsp + 0x30], xmm6
mov qword [rsp + 0x40], 0
test r12, r12
je 0x140050d27
shl r12, 3
movabs rax, 0x5555555555555551
cmp r12, rax
jae 0x140050d70
lea r15, [r12 + r12*2]
mov rcx, r15
call fcn.140097314
mov rbx, rax
mov qword [rsp + 0x30], rax
add rax, r15
mov qword [rsp + 0x40], rax
xor r13d, r13d
mov r15, rbx
test r15, r15
je 0x140050d44
mov rdx, qword [r14 + r13]
mov rcx, r15
call fcn.1400d1860
add r15, 0x18
add r13, 8
cmp r12, r13
jne 0x140050c7c
mov qword [rsp + 0x38], r15
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140050870
movups xmmword [rsi], xmm6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rdi, rdi
je 0x140050cca
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x140050cdc
cmp r15, rbx
jne 0x140050d12
mov rcx, rbx
call fcn.140097350
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400988d0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [r15 - 0x18]
call fcn.140097350
mov r15, rsi
cmp rsi, rbx
je 0x140050cd4
lea rsi, [r15 - 0x18]
cmp byte [r15 - 1], 0
jns 0x140050d0a
jmp 0x140050d01
xor r14d, r14d
jmp 0x140050c24
xor r15d, r15d
xor ebx, ebx
jmp 0x140050ca3
mov rcx, qword [rbx]
lea rdx, [rsp + 0x4c]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
jmp 0x140050c21
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, 0x25
call fcn.1400d1060
lea rcx, [rsp + 0x30]
call fcn.1400d0fd0
int3
Function at 0x140053040
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0x20]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.14009a9f0
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 0x1400530d5
mov eax, eax
inc rax
cmp rax, 1
je 0x1400530d5
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x1400530a1
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400530c2
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400af9b8
test eax, eax
je 0x14005320e
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 0x140053136
mov eax, eax
inc rax
cmp rax, 1
je 0x140053136
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140053102
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140053123
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400af9b8
test eax, eax
je 0x1400531df
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 0x140053193
mov eax, eax
inc rax
cmp rax, 1
je 0x140053193
lea r14, [rax - 1]
cmp word [rsp + rax*2 + 0x1c], 0x5c
mov rax, r14
je 0x140053163
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140053184
mov rcx, qword [rsi]
mov rdx, rdi
mov r8, r14
call fcn.1400af9b8
test eax, eax
je 0x1400531b4
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400988d0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400531c1
and eax, 0x7f
jmp 0x1400531c5
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140053195
mov rcx, rsi
mov rdx, r14
call fcn.1400e1110
cmp word [rax], 0x5c
jne 0x140053193
jmp 0x140053195
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400531ec
and eax, 0x7f
jmp 0x1400531f0
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140053195
mov rcx, rsi
mov rdx, r14
call fcn.1400e1110
cmp word [rax], 0x5c
jne 0x140053136
jmp 0x140053195
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14005321b
and eax, 0x7f
jmp 0x14005321f
mov rax, qword [rsi + 8]
mov bl, 1
cmp rax, r14
je 0x140053195
mov rcx, rsi
mov rdx, r14
call fcn.1400e1110
cmp word [rax], 0x5c
jne 0x1400530d5
jmp 0x140053195
Function at 0x1400539d0
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 [0x140149038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x140053c1a
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x14014c560], rax
jne 0x140053c1d
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, [0x1401347a0]
mov cl, byte [rdx + rcx + 0x41]
mov r8, r14
shr r8, cl
and r8d, 7
lea rcx, [0x1401347f0]
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, [0x140134e70]
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 0x140053b9f
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x140053bac
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x140053b98
lea rdx, [rsi + 0x48]
bswap rcx
mov r14d, dword [rdx + r12*8 + 0x18]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x140053c20
mov edx, ecx
and edx, 0x1fc000
je 0x140053c20
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.14007e370
mov ecx, dword [0x14015b9b8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14015889c]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x148], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400988d0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ecx, ecx
jmp 0x140053af9
mov rcx, rbx
call fcn.14007ef60
jmp 0x140053aa9
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.140088f40
test rax, rax
je 0x140053c13
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 0x140053b13
xor edi, edi
jmp 0x140053b3d
int3
int3
movaps xmm0, xmmword [0x14012f7f0]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1400ed980
mov rcx, rsi
call fcn.140038260
mov rcx, r14
call fcn.1400f01b0
int3
Function at 0x1400554e0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140149038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x14015baa8]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055540
lea rsi, [0x14015baa0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400988d0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x14015baa8]
call fcn.140097470
cmp dword [0x14015baa8], 0xffffffff
jne 0x14005551c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14009a9f0
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.140097314
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x14015baf0]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140055600
lea r8, [0x14015bac0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.140055700
mov qword [0x14015baa0], rsi
lea rcx, [0x14015baa8]
call fcn.140097508
jmp 0x14005551c
lea rcx, [0x14015baf0]
call fcn.140097470
cmp dword [0x14015baf0], 0xffffffff
jne 0x1400555d1
xorps xmm0, xmm0
movups xmmword [0x14015bae0], xmm0
movups xmmword [0x14015bad0], xmm0
movups xmmword [0x14015bac0], xmm0
lea rcx, [0x14015bac0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015baf0]
call fcn.140097508
jmp 0x1400555d1

Function at 0x140055650
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14015baf0]
mov ecx, dword [0x14015889c]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14005568b
movzx eax, word [0x14015bac0]
cmp eax, 9
jne 0x1400556d3
mov eax, 1
add rsp, 0x28
ret
lea rcx, [0x14015baf0]
call fcn.140097470
cmp dword [0x14015baf0], 0xffffffff
jne 0x140055675
xorps xmm0, xmm0
movups xmmword [0x14015bae0], xmm0
movups xmmword [0x14015bad0], xmm0
movups xmmword [0x14015bac0], xmm0
lea rcx, [0x14015bac0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x14015baf0]
call fcn.140097508
jmp 0x140055675
test eax, eax
je 0x140055686
cmp eax, 6
jne 0x1400556e3
mov eax, 2
jmp 0x140055686
cmp eax, 0xc
jne 0x1400556ef
mov eax, 3
jmp 0x140055686
mov eax, 4
jmp 0x140055686