joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002b7b0
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov r14b, 1
cmp qword [0x140105ad0], 0
jne 0x14002ba3f
mov rdi, qword [0x140105ab0]
test rdi, rdi
je 0x14002b8af
test byte [0x140102338], 1
je 0x14002ba3f
cmp byte [rdi + 0x17], 0
jns 0x14002b808
mov rdi, qword [rdi]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov rcx, rdi
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140105ad0], rax
add rax, 1
cmp rax, 1
ja 0x14002ba3f
mov word [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x14002ba3c
cmp eax, 0x104
ja 0x14002ba3c
mov rcx, qword [0x140105ab0]
lea rdx, [rsp + 0x40]
call fcn.1400236ea
mov rcx, qword [0x140105ab0]
movzx eax, byte [rcx + 0x17]
test al, al
js 0x14002b9b5
mov rdx, rcx
cmp word [rdx + rax*2 - 2], 0x5c
jne 0x14002b9c4
jmp 0x14002b9d7
movabs rbp, 0x7fffffffffffffef
mov ecx, 0x18
call fcn.1400aab00
mov rdi, rax
lea rsi, [rsp + 0x40]
xor ecx, ecx
mov rdx, rsi
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov rcx, rsi
call fcn.1400c2d98
cmp rax, rbp
ja 0x14002ba62
mov rbx, rax
cmp rax, 0xb
jae 0x14002b911
mov byte [rdi + 0x17], bl
mov r15, rdi
test rbx, rbx
jne 0x14002b93d
jmp 0x14002b950
lea rsi, [rbx + 8]
and rsi, 0xfffffffffffffff8
js 0x14002ba6a
lea rcx, [rsi + rsi]
call fcn.1400aab00
mov r15, rax
mov qword [rdi], rax
add rbp, 0x11
or rbp, rsi
mov qword [rdi + 0x10], rbp
mov qword [rdi + 8], rbx
mov r8, rbx
add r8, rbx
lea rdx, [rsp + 0x40]
mov rcx, r15
call fcn.1400ad770
mov word [r15 + rbx*2], 0
movzx r8d, byte [rdi + 0x17]
test r8b, r8b
jns 0x14002b965
mov r8, qword [rdi + 8]
mov rcx, rdi
mov dx, 0x5c
call fcn.140023922
cmp rax, 0xffffffffffffffff
je 0x14002b98d
add rax, 1
mov rcx, rdi
mov rdx, rax
mov r8, 0xffffffffffffffff
call fcn.14002384a
lea rdx, [0x1400d8b0c]
mov rcx, rdi
call fcn.140023520
mov qword [0x140105ab0], rdi
test byte [0x140102338], 1
jne 0x14002b7ff
jmp 0x14002ba3f
mov rdx, qword [rcx]
mov rax, qword [rcx + 8]
cmp word [rdx + rax*2 - 2], 0x5c
je 0x14002b9d7
lea rdx, [0x1400d8b08]
call fcn.140023520
mov rcx, qword [0x140105ab0]
lea rdx, [0x1400d8b0c]
call fcn.140023520
mov rcx, qword [0x140105ab0]
cmp byte [rcx + 0x17], 0
jns 0x14002b9f3
mov rcx, qword [rcx]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
mov edx, 4
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140105ad0], rax
add rax, 1
cmp rax, 1
ja 0x14002ba3f
mov qword [0x140105ad0], 0
xor r14d, r14d
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400aaed0
mov eax, r14d
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rdi
call fcn.1400222ec
call fcn.1400bba84
int3
Function at 0x14002e640
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov ebx, r8d
mov esi, edx
mov rdi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [rcx + 8], 0
je 0x14002e66f
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002e672
mov rcx, qword [rdi]
mov edx, esi
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x14002e693
test bl, bl
je 0x14002e6e2
cmp byte [rdi + 8], 0
je 0x14002e6d4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002e6d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [rdi + 8], 0
je 0x14002e6aa
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002e6ad
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14002e6c3
xor edi, edi
jmp 0x14002e75e
cmp byte [rdi + 8], 0
je 0x14002e716
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002e719
mov rcx, qword [rdi]
mov edx, 0xea60
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rdi + 8], 0
je 0x14002e6f3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002e6f6
mov rcx, qword [rdi]
call fcn.140036770
mov rcx, qword [0x140105d00]
mov dil, 1
test rcx, rcx
je 0x14002e75e
mov edx, eax
mov r8d, esi
call fcn.14003a3a0
jmp 0x14002e75e
mov rcx, qword [rdi]
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x14002e72c
mov esi, dword [rsp + 0x24]
cmp byte [rdi + 8], 0
je 0x14002e73d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x14002e740
mov rcx, qword [rdi]
call fcn.140036770
mov rcx, qword [0x140105d00]
test rcx, rcx
je 0x14002e75b
mov edx, eax
mov r8d, esi
call fcn.14003a3a0
mov dil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400aaed0
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
Function at 0x140033106
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x230
mov r14, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x228], rax
lea rdi, [rsp + 0x20]
mov word [rdi], 0
xor ebx, ebx
lea r15, str.PROGRAMFILES
mov rsi, qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx + r15]
mov word [rsp + 0x20], 0
mov rdx, rdi
mov r8d, 0x104
call rsi
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140033175
mov edx, eax
mov rcx, rdi
mov r8, r14
call fcn.140033093
test al, al
jne 0x140033183
add rbx, 8
cmp rbx, 0x18
jne 0x140033143
xor esi, esi
jmp 0x140033186
mov sil, 1
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x230
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140037900
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
movaps xmmword [rsp + 0x30], xmm6
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x28], rax
movsd xmm6, qword [0x140105c98]
xorpd xmm0, xmm0
ucomisd xmm6, xmm0
jne 0x140037a6f
jp 0x140037a6f
mov rdi, qword [sym.imp.KERNEL32.dll_GetCurrentThread]
call rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov ebp, eax
call rdi
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x140105ca8]
mov ecx, dword [0x140105b70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037a8e
mov eax, dword [0x140105cb8]
mov ecx, dword [0x140105b70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140037ac8
rdtsc
mov rdi, rax
mov rbx, rdx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rsi, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub rsi, qword [0x140105cb0]
movq xmm1, rsi
punpckldq xmm1, xmmword [0x1400db2e0]
subpd xmm1, xmmword [0x1400db2f0]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
xorps xmm1, xmm1
cvtsi2sd xmm1, qword [rsp + 0x20]
divsd xmm0, xmm1
xorpd xmm6, xmm6
movsd xmm1, qword [0x1400db308]
ucomisd xmm1, xmm0
ja 0x140037a6f
shl rbx, 0x20
or rdi, rbx
sub rdi, qword [0x140105ca0]
movq xmm1, rdi
punpckldq xmm1, xmmword [0x1400db2e0]
subpd xmm1, xmmword [0x1400db2f0]
movapd xmm6, xmm1
unpckhpd xmm6, xmm1
addsd xmm6, xmm1
divsd xmm6, xmm0
movsd qword [0x140105c98], xmm6
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400aaed0
movapd xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x30]
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x140105ca8]
call fcn.1400aac80
cmp dword [0x140105ca8], 0xffffffff
jne 0x140037981
rdtsc
shl rdx, 0x20
or rdx, rax
mov qword [0x140105ca0], rdx
lea rcx, [0x140105ca8]
call fcn.1400aad18
jmp 0x140037981
lea rcx, [0x140105cb8]
call fcn.1400aac80
cmp dword [0x140105cb8], 0xffffffff
jne 0x1400379a6
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
mov qword [0x140105cb0], rax
lea rcx, [0x140105cb8]
call fcn.1400aad18
jmp 0x1400379a6
Function at 0x14003ba80
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov rsi, rcx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea rax, [0x1400dc4e0]
mov qword [rcx], rax
add rcx, 8
call fcn.140033e30
lea rcx, [rsi + 0x10]
call fcn.140033e30
mov byte [rsi + 0x18], 0
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], 0
call fcn.140033e30
mov byte [rsi + 0x48], 0
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], 0
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
movups xmmword [rsi + 0xc0], xmm6
mov dword [rsi + 0xd0], 0x3f800000
mov dword [rsi + 0xd8], 0
movups xmmword [rsi + 0xe0], xmm6
movups xmmword [rsi + 0xf0], xmm6
mov dword [rsi + 0x100], 0x3f800000
movups xmmword [rsi + 0x108], xmm6
movups xmmword [rsi + 0x118], xmm6
mov dword [rsi + 0x128], 0x3f800000
movups xmmword [rsi + 0x140], xmm6
movups xmmword [rsi + 0x130], xmm6
mov qword [rsi + 0x150], 0
mov dword [rsi + 0x158], 0x3f800000
movups xmmword [rsi + 0x160], xmm6
movups xmmword [rsi + 0x170], xmm6
mov dword [rsi + 0x180], 0x3f800000
mov qword [rsi + 0x1a0], 0
movups xmmword [rsi + 0x188], xmm6
mov dword [rsi + 0x198], 0
mov eax, dword [0x1400df9e8]
mov qword [rsi + 0x1a8], rax
lea rcx, [rsi + 0x1b0]
call fcn.140051b90
movups xmmword [rsi + 0x2e0], xmm6
mov qword [rsi + 0x2f0], 0
lea rcx, [rsi + 0x2f8]
xor edx, edx
call fcn.140049c90
lea rcx, [rsi + 0x300]
xor edx, edx
call fcn.140049c90
lea rcx, [rsi + 0x308]
xor edx, edx
call fcn.140049c90
movups xmmword [rsi + 0x310], xmm6
movups xmmword [rsi + 0x320], xmm6
mov dword [rsi + 0x330], 0x3f800000
movups xmmword [rsi + 0x338], xmm6
movups xmmword [rsi + 0x348], xmm6
movups xmmword [rsi + 0x358], xmm6
movups xmmword [rsi + 0x361], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
call fcn.140003fe0
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x198], eax
cdqe
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x190], rax
lea rdi, [rsp + 0x30]
mov rcx, rdi
call fcn.14002e4e0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14002e5a0
mov rax, qword [rsp + 0x40]
mov qword [rsi + 0x130], rax
mov rcx, rdi
call fcn.14002e400
mov rcx, rsi
call fcn.14003bd20
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
je 0x14003bcca
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
call fcn.14004fab0
mov qword [rsp + 0x28], 0
lea r8, str.TraceLog
lea r9, [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call fcn.14004fc20
mov qword [0x1401060b0], rsi
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400aaed0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rdi
pop rsi
ret
Function at 0x140042220
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov eax, dword [0x1401060e0]
mov ecx, dword [0x140105b70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042280
lea rsi, [0x1401060d8]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400aaed0
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x1401060e0]
call fcn.1400aac80
cmp dword [0x1401060e0], 0xffffffff
jne 0x14004225c
lea rcx, [rsp + 0x64]
mov r8d, 0x118
xor edx, edx
call fcn.1400adb80
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400aab00
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x140106118]
mov ecx, dword [0x140105b70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042341
lea r8, [0x1401060e8]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r9d, edi
call fcn.1400424f0
mov qword [0x1401060d8], rsi
lea rcx, [0x1401060e0]
call fcn.1400aad18
jmp 0x14004225c
lea rcx, [0x140106118]
call fcn.1400aac80
cmp dword [0x140106118], 0xffffffff
jne 0x140042312
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movups xmmword [0x140106108], xmm2
movups xmmword [0x1401060f8], xmm1
movups xmmword [0x1401060e8], xmm0
lea rcx, [0x140106118]
call fcn.1400aad18
jmp 0x140042312

Function at 0x1400423d0
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x60
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov eax, dword [0x140106118]
mov ecx, dword [0x140105b70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140042453
movzx eax, word [0x1401060e8]
cmp rax, 0xc
ja case.0x140042422.1
xor esi, esi
lea rcx, [0x1400424bc]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
mov esi, 2
jmp case.0x140042422.0
mov esi, 4
jmp case.0x140042422.0
mov esi, 1
jmp case.0x140042422.0
mov esi, 3
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400aaed0
mov eax, esi
add rsp, 0x60
pop rsi
ret
lea rcx, [0x140106118]
call fcn.1400aac80
cmp dword [0x140106118], 0xffffffff
jne 0x140042405
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movaps xmm2, xmmword [rsp + 0x40]
movups xmmword [0x140106108], xmm2
movups xmmword [0x1401060f8], xmm1
movups xmmword [0x1401060e8], xmm0
lea rcx, [0x140106118]
call fcn.1400aad18
jmp 0x140042405
Function at 0x140048889
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov r12, r8
mov ebx, edx
mov edi, ecx
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x70], rax
movzx eax, byte [r8 + 0x17]
test al, al
jns 0x1400488bd
mov rax, qword [r12 + 8]
test rax, rax
je 0x1400488ec
bt ebx, 8
jae 0x1400488d1
mov eax, ebx
and eax, 0x200
jne 0x1400488ec
cmp edi, 2
lea rax, [0x140106430]
lea rcx, [0x140106630]
cmove rcx, rax
cmp word [rcx], 0
je 0x14004890b
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1400aaed0
nop
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xorps xmm0, xmm0
lea rsi, [rsp + 0x40]
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
cmp word [rsi], 0
je 0x1400488ec
cmp byte [0x140106420], 0
setne al
bt ebx, 8
jb 0x1400488ec
shr ebx, 9
and ebx, 1
or bl, al
je 0x1400488ec
cmp edi, 2
lea rax, str.SOFTWAREClasses
lea rsi, str.SOFTWARE
cmove rsi, rax
movzx ebp, byte [r12 + 0x17]
test bpl, bpl
js 0x14004896c
mov rdi, r12
jmp 0x140048975
mov rdi, qword [r12]
mov rbp, qword [r12 + 8]
mov r14d, 1
xor r15d, r15d
xor eax, eax
mov qword [rsp + 0x38], rax
xor eax, eax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x2c], 0
mov rbx, qword [rsi + 8]
mov r13, rbp
sub r13, rbx
jb 0x1400489b2
mov rdx, qword [rsi]
mov rcx, rdi
mov r8, rbx
call fcn.1400bde84
test eax, eax
je 0x1400489c0
add rsi, 0x28
inc r15
cmp r15, r14
jb 0x140048994
jmp 0x140048a32
movzx edx, word [rdi + rbx*2]
cmp dx, 0x5c
je 0x1400489cf
test dx, dx
jne 0x1400489b2
lea rax, [rdi + rbx*2]
mov ebp, dword [rsi + 0x10]
lea rcx, str.WOW6432Node_
cmp ebp, 1
je 0x1400489fd
cmp ebp, 2
jne 0x1400489f3
mov rdi, rax
lea rcx, str.WOW6432Node
jmp 0x1400489fd
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
cmp dx, 0x5c
mov dword [rsp + 0x2c], ebp
jne 0x140048a15
dec r13
cmp word [rax + 2], 0x5c
lea rax, [rax + 2]
je 0x140048a07
mov r14, qword [rsi + 0x20]
mov rsi, qword [rsi + 0x18]
mov rbp, r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rcx
xor r15d, r15d
mov rdi, rax
jmp 0x1400489b9
cmp dword [rsp + 0x2c], 0
je 0x1400488ec
cmp byte [r12 + 0x17], 0
js 0x140048a4a
mov rax, r12
jmp 0x140048a4e
mov rax, qword [r12]
mov rdx, qword [rsp + 0x30]
sub rdx, rax
sar rdx, 1
mov rcx, r12
mov r8, qword [rsp + 0x38]
call fcn.14002381a
jmp 0x1400488ec
Function at 0x140049490
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x14004950b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x14004950b
cmp dword [rsp + 0x38], 4
jne 0x14004950b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400aaed0
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140049530
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push rsi
push rdi
mov eax, 0x1048
call fcn.1400aae60
sub rsp, rax
mov rsi, r8
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x840]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1400495ea
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x1400495af
mov edi, 0x3f4
cmp eax, 1
jne 0x1400495ea
lea rdx, [rsp + 0x840]
jmp 0x1400495e0
lea rcx, [rsp + 0x840]
lea rdx, [rsp + 0x40]
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x1400495ea
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1400236ea
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400aaed0
mov eax, edi
add rsp, 0x1048
pop rdi
pop rsi
ret

Function at 0x1400498a0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140103710]
cmp ecx, 0xffffffff
je 0x1400498c3
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
jmp 0x1400498c5
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400498d0
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 [0x140103710]
cmp ecx, 0xffffffff
je 0x1400498f6
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400498fb
call fcn.140049a10
mov eax, dword [0x1401087f8]
mov ecx, dword [0x140105b70]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400499c3
mov rbx, qword [0x1401087f0]
mov rcx, rbx
call fcn.140033e40
mov rcx, qword [0x140106fe0]
add rcx, 1
mov edx, 0x100
lea rax, [0x140106ff0]
nop word cs:[rax + rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14004997a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x14004997a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140049950
jmp 0x14004999f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x140106fe0], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x140049a09
cmp eax, 0x100
jge 0x140049a0c
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rcx, [0x1401087f8]
call fcn.1400aac80
cmp dword [0x1401087f8], 0xffffffff
jne 0x140049920
mov ecx, 8
call fcn.1400aab00
mov rbx, rax
mov rcx, rax
call fcn.140033e30
mov qword [0x1401087f0], rbx
lea rcx, [0x1401087f8]
call fcn.1400aad18
jmp 0x140049920
int3
int3

Function at 0x140049a10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400aae60
sub rsp, rax
mov rax, qword [0x140102388]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x140103710]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x140049aa8
lea rcx, [rsp + 0x2c]
call fcn.140075ad0
test al, al
je 0x140049b23
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x140049a86
lea rcx, [rsp + 0x2c]
call fcn.140075ad0
test al, al
je 0x140049b26
cmp dword [rsp + 0x2c], 0xffffffff
je 0x140049b26
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x140103710], ecx
mov ecx, dword [rsp + 0x2c]
je 0x140049aa8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140103710]
mov dword [rsp + 0x2c], ecx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140049b20
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400adb80
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400aab9c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400ad770
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.1400aaed0
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
int3
int3
int3
Function at 0x140049c00
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x140103710]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140049c30
movsxd rcx, dword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 4]
jne 0x140049c30
mov rax, qword [rax + rcx]
jmp 0x140049c32
xor eax, eax
add rsp, 0x20
pop rsi
ret

Function at 0x140049c40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x140103710]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
jne 0x140049c68
test rdi, rdi
je 0x140049c81
call fcn.140049a10
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret

Function at 0x14004d010
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x14004d052
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
nop word [rax + rax]
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14004d05c
add rdi, rbx
sub rsi, rbx
jne 0x14004d030
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3