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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r15
sub rsp, 0x30
or rbx, 0xffffffffffffffff
xor esi, esi
cmp qword [rdx + 0x18], 8
mov r12, r8
mov rdi, rdx
mov r15, rcx
jb 0x14013c265
mov rdx, qword [rdx]
mov rcx, qword [rcx]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14013c481
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x78], r14
call fcn.140164ca0
mov r14, rax
test rax, rax
je 0x14013c46e
cmp qword [rdi + 0x18], 8
jb 0x14013c2b1
mov rdi, qword [rdi]
mov rcx, qword [r15]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14013c46e
cmp dword [rsp + 0x68], 1
mov ecx, dword [rsp + 0x60]
mov qword [rsp + 0x70], rbp
jne 0x14013c31d
test ecx, ecx
je 0x14013c31d
lea eax, [rcx + 4]
mov ecx, eax
mov ebp, eax
call fcn.140164ca0
mov rdi, rax
test rax, rax
je 0x14013c315
mov r8d, ebp
xor edx, edx
mov rcx, rax
call fcn.1401a7d70
mov ecx, dword [rsp + 0x60]
jmp 0x14013c322
mov ecx, dword [rsp + 0x60]
xor edi, edi
jmp 0x14013c322
mov rdi, qword [rsp + 0x60]
mov eax, dword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
sub eax, 1
je 0x14013c3ff
sub eax, 1
je 0x14013c392
cmp eax, 2
je 0x14013c348
mov ebx, 0xffffffe1
jmp 0x14013c459
mov ecx, reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.140164ca0
mov rsi, rax
test rax, rax
je 0x14013c459
mov ecx, dword [r14]
mov r8d, 0xa
mov rdx, rax
call fcn.1401b6d8c
cmp word [rax], 0
jne 0x14013c380
xor ebx, ebx
mov rdx, rax
jmp 0x14013c44c
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14013c380
mov rdx, rax
jmp 0x14013c44c
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test eax, eax
je 0x14013c459
mov eax, 2
mul rdi
cmovo rax, rbx
mov rcx, rax
call fcn.140164ca0
mov rsi, rax
test rax, rax
je 0x14013c459
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x14013c459
cmp word [rsi], 0
jne 0x14013c3f0
xor ebx, ebx
mov rdx, rsi
jmp 0x14013c44c
inc rbx
cmp word [rsi + rbx*2], 0
jne 0x14013c3f0
mov rdx, rsi
jmp 0x14013c44c
test ecx, ecx
jne 0x14013c417
xor r8d, r8d
lea rdx, [0x140227194]
mov rcx, r12
call fcn.1400be520
jmp 0x14013c459
mov r8d, ecx
mov rdx, r14
mov rcx, rdi
call fcn.1401a60f0
mov rcx, r14
call fcn.140164c98
mov r14, rdi
cmp word [rdi], si
jne 0x14013c440
xor ebx, ebx
jmp 0x14013c449
inc rbx
cmp word [rdi + rbx*2], si
jne 0x14013c440
mov rdx, rdi
mov r8, rbx
mov rcx, r12
call fcn.1400be520
xor ebx, ebx
mov rcx, r14
call fcn.140164c98
test rsi, rsi
je 0x14013c46e
mov rcx, rsi
call fcn.140164c98
mov eax, ebx
mov r14, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14013d930
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, qword [r8 + 0x18]
mov rdi, r8
mov r13, qword [r8 + 0x10]
mov r12, rdx
mov rsi, rcx
cmp rbp, 8
jb 0x14013d966
mov r8, qword [r8]
lea r9, [r13*2]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
test r9, r9
je 0x14013d9a4
movabs r10, 0x100000001b3
nop dword [rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r9
jb 0x14013d990
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x30]
mov rsi, qword [rsi + 8]
and rax, rdx
mov rbx, rax
add rbx, rbx
add rax, rax
mov rbx, qword [rcx + rbx*8]
mov r14, qword [rcx + rax*8]
lea r15, [rcx + rax*8]
cmp r14, rsi
jne 0x14013d9d2
mov rax, rsi
jmp 0x14013d9d9
mov rax, qword [r15 + 8]
mov rax, qword [rax]
cmp rbx, rax
je 0x14013da47
lea rcx, [rbx + 0x10]
cmp rbp, 8
jb 0x14013d9ed
mov r8, qword [rdi]
jmp 0x14013d9f0
mov r8, rdi
cmp qword [rcx + 0x18], 8
lea rdx, [rcx + 0x10]
jb 0x14013d9fe
mov rcx, qword [rcx]
mov rdx, qword [rdx]
mov r9, r13
call fcn.1400c4840
test eax, eax
je 0x14013da12
mov rbx, qword [rbx]
jmp 0x14013d9c8
cmp qword [rbx + 0x28], 8
lea r8, [rbx + 0x10]
lea r9, [r8 + 0x10]
jb 0x14013da24
mov r8, qword [r8]
cmp rbp, 8
jb 0x14013da2d
mov rdi, qword [rdi]
mov r9, qword [r9]
mov rdx, r13
mov rcx, rdi
call fcn.1400c4840
test eax, eax
cmovne rbx, rsi
mov qword [r12], rbx
jmp 0x14013da4b
mov qword [r12], rsi
mov rbx, qword [rsp + 0x50]
mov rax, r12
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14013df70
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x78], rsi
mov rdi, r9
mov r14, r8
mov r12, rdx
mov r15, rcx
mov r11, qword [r8 + 0x10]
mov r10, qword [r8 + 0x18]
cmp r10, 8
jb 0x14013dfb2
mov r8, qword [r8]
movabs rdx, 0xcbf29ce484222325
xor ecx, ecx
lea r9, [r11 + r11]
test r9, r9
je 0x14013dfe5
movabs rbx, 0x100000001b3
movzx eax, byte [r8 + rcx]
xor rdx, rax
imul rdx, rbx
inc rcx
cmp rcx, r9
jb 0x14013dfd1
mov r13, qword [r15 + 0x30]
and r13, rdx
shl r13, 4
mov rax, qword [r15 + 0x18]
mov rsi, qword [rax + r13]
cmp rsi, qword [r15 + 8]
jne 0x14013e004
mov rbx, qword [r15 + 8]
jmp 0x14013e00c
mov rbx, qword [rax + r13 + 8]
mov rbx, qword [rbx]
cmp rbx, rsi
je 0x14013e08f
mov rbx, qword [rbx + 8]
lea r8, [rbx + 0x10]
lea r9, [r8 + 0x10]
cmp qword [r8 + 0x18], 8
jb 0x14013e027
mov r8, qword [r8]
cmp r10, 8
jb 0x14013e032
mov rcx, qword [r14]
jmp 0x14013e035
mov rcx, r14
mov r9, qword [r9]
mov rdx, r11
call fcn.1400c4840
test eax, eax
je 0x14013e053
cmp rbx, rsi
mov r10, qword [r14 + 0x18]
mov r11, qword [r14 + 0x10]
jne 0x14013e011
jmp 0x14013e08f
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [r15 + 0x10]
lea rcx, [rdi + 0x10]
call fcn.14013dee0
mov rcx, rdi
call fcn.140005910
mov qword [r12], rbx
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x14013e129
mov qword [rsp + 0x70], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14013e0c9
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r15 + 0x18]
add rdx, r13
mov rax, qword [rdx]
cmp rax, qword [r15 + 8]
jne 0x14013e0e7
mov qword [rdx], rdi
mov rax, qword [r15 + 0x18]
mov qword [rax + r13 + 8], rdi
jmp 0x14013e113
cmp rax, rbx
jne 0x14013e0f1
mov qword [rdx], rdi
jmp 0x14013e113
mov rax, qword [rdx + 8]
mov rcx, qword [rax]
mov qword [rdx + 8], rcx
cmp rcx, rdi
je 0x14013e113
mov rdx, qword [r15 + 0x18]
mov rax, qword [rdx + r13 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r13 + 8], rcx
mov rcx, r15
call fcn.14013e150
nop
mov qword [r12], rdi
mov byte [r12 + 8], 1
mov rax, r12
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14013e210
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x20
mov r9, qword [r8 + 0x20]
mov rdi, r8
add r8, 0x10
mov rsi, rdx
mov r10, rcx
cmp qword [r8 + 0x18], 8
jb 0x14013e23f
mov r8, qword [r8]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
add r9, r9
je 0x14013e274
movabs r11, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r9
jb 0x14013e260
mov r8, qword [r10 + 0x30]
mov rcx, qword [r10 + 0x18]
and r8, rdx
shl r8, 4
add rcx, r8
cmp qword [rcx + 8], rdi
jne 0x14013e2b1
cmp qword [rcx], rdi
jne 0x14013e2a7
mov rax, qword [r10 + 8]
mov qword [rcx], rax
mov rcx, qword [r10 + 0x18]
mov rax, qword [r10 + 8]
mov qword [r8 + rcx + 8], rax
jmp 0x14013e2bc
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
jmp 0x14013e2bc
cmp qword [rcx], rdi
jne 0x14013e2c1
mov rax, qword [rdi]
mov qword [rcx], rax
mov rdi, qword [rsp + 0x40]
mov rax, qword [rdi + 8]
lea rcx, [rdi + 0x10]
mov rbx, qword [rdi]
mov qword [rax], rbx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
dec qword [r10 + 0x10]
call fcn.14013dee0
mov rcx, rdi
call fcn.140005910
mov qword [rsi], rbx
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140140260
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x208
call fcn.1401a7d70
mov edx, 0x208
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1401402aa
or rax, 0xffffffffffffffff
jmp 0x140140314
cmp word [rsp + 0x20], 0
jne 0x1401402b7
xor r8d, r8d
jmp 0x1401402cb
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x1401402c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400be520
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140140312
cmp qword [rbx + 0x18], 8
jb 0x1401402ed
mov rax, qword [rbx]
jmp 0x1401402f0
mov rax, rbx
movzx ecx, word [rax + rcx*2 - 2]
cmp cx, 0x5c
je 0x140140312
cmp cx, 0x2f
je 0x140140312
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x5b]
call fcn.1400be670
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401646e0
add rsp, 0x240
pop rbx
ret
Function at 0x1401403b0
Capabilities:
Compare security identifiers

Disassembly:
push rdi
mov eax, 0x1090
call fcn.140165470
sub rsp, rax
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x1080], rax
mov dword [rsp + 0x74], 0
mov word [rsp + 0x78], 0x500
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x60]
mov edx, 0x20008
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x140140407
mov eax, 1
jmp 0x1401404e3
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x70]
mov r9d, 0x1000
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x80]
mov qword [rsp + 0x10a0], rbx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rsp + 0x60]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140140487
xor edi, edi
lea rax, [rsp + 0x68]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x74]
mov dword [rsp + 0x48], edi
mov r9d, 0x220
mov dword [rsp + 0x40], edi
mov dl, 2
mov dword [rsp + 0x38], edi
lea r8d, [rdi + 0x20]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x14014048e
mov eax, 1
jmp 0x1401404db
mov ebx, edi
cmp dword [rsp + 0x80], edi
jbe 0x1401404ce
nop dword [rax]
mov rcx, qword [rsp + 0x68]
mov edx, ebx
add rdx, rdx
mov rdx, qword [rsp + rdx*8 + 0x88]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x1401404c9
inc ebx
cmp ebx, dword [rsp + 0x80]
jb 0x1401404a0
jmp 0x1401404ce
mov edi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, edi
mov rbx, qword [rsp + 0x10a0]
mov rcx, qword [rsp + 0x1080]
xor rcx, rsp
call fcn.1401646e0
add rsp, 0x1090
pop rdi
ret
Function at 0x140140500
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x78], 0x220
or edi, 0xffffffff
mov dword [rsp + 0x7c], 0x223
xor esi, esi
mov dword [rcx], esi
mov rbx, rcx
mov dword [r11 - 0x18], 0x222
mov dword [r11 - 0x14], 0x221
mov dword [rsp + 0x70], 0
mov word [rsp + 0x74], 0x500
nop
movsxd rax, dword [rbx]
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x50], rcx
mov r8d, 0x20
mov dword [rsp + 0x48], esi
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x40], esi
mov dl, 2
mov r9d, dword [rsp + rax*4 + 0x78]
mov dword [rsp + 0x38], esi
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x60], eax
test eax, eax
je 0x1401405d7
mov rdx, qword [rsp + 0x68]
lea r8, [rsp + 0x60]
xor ecx, ecx
mov edi, esi
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x60]
test eax, eax
cmove ecx, esi
mov dword [rsp + 0x60], ecx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x60], esi
jne 0x1401405de
inc dword [rbx]
cmp dword [rbx], 4
jl 0x140140560
cmp dword [rbx], esi
je 0x1401405f1
call fcn.1401403b0
test eax, eax
je 0x1401405f1
mov dword [rbx], esi
mov eax, esi
jmp 0x1401405f3
mov eax, edi
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401646e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140140620
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov r9d, 1
lea rdx, [0x140235ccc]
xor r8d, r8d
mov rbx, rcx
call fcn.1400be3d0
cmp rax, 0xffffffffffffffff
je 0x1401406ab
cmp qword [rbx + 0x18], 8
jb 0x140140665
mov rcx, qword [rbx]
jmp 0x140140668
mov rcx, rbx
mov r8d, 0x104
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1401406ab
cmp word [rsp + 0x20], 0
jne 0x14014068a
xor r8d, r8d
jmp 0x14014069e
lea rax, [rsp + 0x20]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x140140693
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400be520
xor eax, eax
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401646e0
add rsp, 0x240
pop rbx
ret
Function at 0x1401406d0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x180
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor eax, eax
mov rdi, rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x20], rax
xor edx, edx
mov qword [rsp + 0x28], rax
mov r8d, 0x11c
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
call fcn.1401a7d70
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x14014073c
or eax, 0xffffffff
jmp 0x1401407a9
lea rcx, str.kernel32.dll
mov qword [rsp + 0x198], rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x140219e38]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x14014077b
mov rcx, rax
call qword [fcn.1400059b0]
lea rcx, [rsp + 0x20]
call rbx
jmp 0x140140786
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x198]
cmp ax, 9
je 0x1401407a4
cmp ax, 6
je 0x1401407a4
mov byte [rdi], 0
jmp 0x1401407a7
mov byte [rdi], 1
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1401646e0
add rsp, 0x180
pop rdi
ret

Function at 0x1401407d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0x11c
lea rcx, [rsp + 0x20]
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x1401408fa
movzx eax, word [rsp + 0x134]
mov dword [rdi], eax
mov eax, dword [rsp + 0x24]
cmp eax, 4
jne 0x140140848
cmp dword [rsp + 0x28], 0
jne 0x14014083f
cmp dword [rsp + 0x30], 2
jne 0x14014083f
mov dword [rbx], 1
xor eax, eax
jmp 0x1401408ff
xor eax, eax
mov dword [rbx], eax
jmp 0x1401408ff
cmp eax, 5
jne 0x14014088d
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x140140860
mov dword [rbx], 2
jmp 0x1401408ff
cmp eax, 1
jne 0x140140872
mov dword [rbx], 3
xor eax, eax
jmp 0x1401408ff
cmp eax, 2
jne 0x1401408f6
xor eax, eax
cmp byte [rsp + 0x13a], 1
setne al
add eax, 3
mov dword [rbx], eax
xor eax, eax
jmp 0x1401408ff
cmp eax, 6
jne 0x1401408f0
cmp byte [rsp + 0x13a], 1
jne 0x1401408c8
mov ecx, dword [rsp + 0x28]
lea eax, [rcx - 2]
cmp eax, 1
jbe 0x1401408be
cmp ecx, 1
mov eax, 5
mov edx, 7
cmove eax, edx
mov dword [rbx], eax
xor eax, eax
jmp 0x1401408ff
mov dword [rbx], 9
xor eax, eax
jmp 0x1401408ff
mov eax, dword [rsp + 0x28]
cmp eax, 1
jne 0x1401408e1
mov dword [rbx], 8
mov dword [rbx], 6
xor eax, eax
jmp 0x1401408ff
cmp eax, 2
jne 0x1401408d7
mov dword [rbx], 0xa
xor eax, eax
jmp 0x1401408ff
mov dword [rbx], 0xffffffff
xor eax, eax
jmp 0x1401408ff
mov eax, 0xffffffe5
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401646e0
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x140145570
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x14027e238]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x250]
mov r8d, 0x208
call fcn.1401a7d70
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.1401a7d70
xor edi, edi
mov dword [rsp + 0x38], 0x104
mov dword [rsp + 0x3c], edi
test rbx, rbx
je 0x1401456e7
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSCANNER.EXE
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401456e7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.Path
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401456e7
lea r8, [rsp + 0x40]
mov edx, 0x104
lea rax, [rsp + 0x250]
mov r9d, edi
sub r8, rax
lea rcx, [rsp + 0x250]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140145678
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140145678
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140145653
jmp 0x14014567d
test rdx, rdx
jne 0x140145687
sub rcx, 2
mov r9d, 0x8007007a
mov word [rcx], di
test r9d, r9d
js 0x1401456dc
lea r8, str.SCANAPI.DLL
lea rcx, [rsp + 0x40]
call fcn.140142b90
test eax, eax
js 0x1401456dc
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.1401c07d8
test eax, eax
jne 0x1401456dc
lea r8, [rsp + 0x250]
mov edx, 0x104
mov rcx, rbx
call fcn.140142af0
mov rcx, qword [rsp + 0x30]
test eax, eax
js 0x1401456e1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x1401456e9
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.1401646e0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x14015e830
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, rcx
xor eax, eax
lock cmpxchg qword [0x140287620], rdi
jne 0x14015e86f
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rcx, rax
xor eax, eax
lock cmpxchg qword [0x140287620], rcx
je 0x14015e86f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140287620]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbx - 0x10]
lea rax, [rbx - 0x10]
sub qword [0x140287638], rcx
mov r9, rax
sub r9, qword [rax + 8]
cmp qword [r9], rdi
jne 0x14015e8ae
add qword [r9 + 0x20], rcx
lea r8, [r9 + 0x20]
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
jmp 0x14015e8d9
lea r8, [rax + 0x20]
mov r9, rax
mov qword [r8], rcx
mov rcx, qword [0x140287630]
mov qword [rax], rdi
mov qword [rbx], rcx
mov qword [rax + 0x18], rdi
test rcx, rcx
je 0x14015e8d2
mov qword [rcx + 0x18], rax
mov qword [0x140287630], rax
mov rcx, qword [r8]
cmp qword [rcx + r9], rdi
lea rdx, [rcx + r9]
jne 0x14015e924
add rcx, qword [rdx + 0x20]
mov qword [r8], rcx
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14015e902
mov rax, qword [rdx + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdx + 0x10]
mov rax, qword [rdx + 0x18]
test rax, rax
je 0x14015e911
mov qword [rax + 0x10], rcx
jmp 0x14015e918
mov qword [0x140287630], rcx
mov rax, qword [r8]
mov qword [rax + r9 + 8], rax
lea rdx, [rax + r9]
cmp qword [r9 + 8], rdi
jne 0x14015e990
cmp qword [rdx], 1
jne 0x14015e990
mov rax, qword [0x140287638]
mov rdx, qword [0x140287640]
sub rdx, qword [r8]
lea rcx, [rax + rax*2]
shr rcx, 1
cmp rdx, rcx
jbe 0x14015e990
mov rcx, qword [r9 + 0x10]
mov qword [0x140287640], rdx
test rcx, rcx
je 0x14015e969
mov rax, qword [r9 + 0x18]
mov qword [rcx + 0x18], rax
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9 + 0x18]
test rax, rax
je 0x14015e978
mov qword [rax + 0x10], rcx
jmp 0x14015e97f
mov qword [0x140287630], rcx
xor edx, edx
mov r8d, 0x8000
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, qword [0x140287620]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_ReleaseMutex]
Function at 0x14018b2ac
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14018b2bf
add rsp, 0x48
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edx, ax
lea rcx, [rsp + 0x20]
or edx, 0x80070000
test eax, eax
cmovle edx, eax
call fcn.14018b4a8
lea rdx, [0x14027b090]
lea rcx, [rsp + 0x20]
call fcn.1401a8c40
int3

Function at 0x140195b4c
Capabilities:
Set thread local storage value

Disassembly:
mov ecx, dword [0x140288800]
xor edx, edx
jmp fcn.14018b2ac

Function at 0x140196564
Capabilities:
Set thread local storage value

Disassembly:
mov rdx, rcx
mov ecx, dword [0x140288800]
jmp fcn.14018b2ac

Function at 0x1401c5ac4
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
jne 0x1401c57ea
call fcn.1401af970
mov dword [rax], reloc.OLEAUT32.dll_SafeArrayAccessData
call fcn.1401aa8ec
jmp 0x1401c5935
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401c5935
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1401c5935
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1401c5819
lock or dword [rcx + 0x14], 0x10
jmp 0x1401c5935
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1401c582d
call fcn.1401c5748
mov esi, dword [rbx + 0x10]
cmp esi, 1
jne 0x1401c583d
mov rax, qword [rbx]
mov bpl, byte [rax]
jmp 0x1401c5840
xor bpl, bpl
mov rdi, qword [rbx + 8]
mov rcx, rbx
mov qword [rbx], rdi
call fcn.1401c3418
mov r8d, dword [rbx + 0x20]
mov ecx, eax
mov rdx, rdi
call fcn.1401cf214
mov dword [rbx + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 2
jbe 0x1401c5923
mov eax, dword [rbx + 0x14]
test al, 6
jne 0x1401c58d1
mov rcx, rbx
call fcn.1401c3418
cmp eax, 0xffffffff
je 0x1401c58bc
mov rcx, rbx
call fcn.1401c3418
cmp eax, 0xfffffffe
je 0x1401c58bc
mov rcx, rbx
call fcn.1401c3418
movsxd rdi, eax
lea r14, [0x1402892e0]
mov rcx, rbx
sar rdi, 6
call fcn.1401c3418
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rdi*8]
lea rdx, [rax + rcx*8]
jmp 0x1401c58c3
lea rdx, [0x14027e980]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401c58d1
lock or dword [rbx + 0x14], 0x20
cmp dword [rbx + 0x20], 0x200
jne 0x1401c58f5
mov eax, dword [rbx + 0x14]
shr eax, 6
test al, 1
je 0x1401c58f5
mov eax, dword [rbx + 0x14]
shr eax, 8
test al, 1
jne 0x1401c58f5
mov dword [rbx + 0x20], 0x1000
mov rax, qword [rbx]
cmp esi, 1
jne 0x1401c5913
movzx ecx, byte [rax]
dec dword [rbx + 0x10]
shl cx, 8
movzx eax, bpl
or cx, ax
inc qword [rbx]
jmp 0x1401c591e
movzx ecx, word [rax]
add dword [rbx + 0x10], 0xfffffffe
add qword [rbx], 2
movzx eax, cx
jmp 0x1401c593a
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rbx + 0x14], eax
and dword [rbx + 0x10], 0
mov eax, 0xffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
jmp 0x1401c57b4