joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000e170
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push rbx
sub rsp, 0x450
mov rax, qword [0x18008f100]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rcx, [rsp + 0x232]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x230], bx
call fcn.180015150
lea rcx, [rsp + 0x230]
mov edx, 0x103
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea rcx, [rsp + 0x22]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x20], bx
call fcn.180015150
call fcn.180013850
test eax, eax
je 0x18000e306
lea r9, [0x18007d7e0]
lea r8, [rsp + 0x230]
lea rdx, str._s_s
lea rcx, [rsp + 0x20]
call fcn.180013f6c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x18000e219
lea eax, [rbx + 1]
jmp 0x18000e308
xor edx, edx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x460], rdi
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x18000e25a
lea rdx, str.HAFInitShareSeg
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000e251
call rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.18000e3e0
lea r9, reloc.WS2_32.dll_connect
mov rdi, rbx
mov r8, rbx
mov eax, ebx
mov rcx, r9
cmp dword [rcx], 4
je 0x18000e283
inc eax
add rcx, 0x38
cmp eax, 1
jb 0x18000e271
jmp 0x18000e2a4
movsxd rcx, eax
imul rcx, rcx, 0x38
mov rdx, qword [rcx + r9 + 8]
test rdx, rdx
je 0x18000e2a4
mov rax, qword [rcx + r9 + 0x10]
test rax, rax
je 0x18000e2a4
mov rdi, rdx
mov r8, rax
mov rdx, r8
mov rcx, rdi
call fcn.18000d6e0
cmp dword [0x1800a4fe8], ebx
je 0x18000e2f9
mov ecx, dword [0x1800a5028]
test ecx, ecx
jle 0x18000e2ef
mov rdx, qword [0x1800a5020]
lea rax, [rdx + 8]
nop dword [rax]
cmp qword [rax], rdi
je 0x18000e2e1
inc ebx
add rax, 0x18
cmp ebx, ecx
jl 0x18000e2d0
jmp 0x18000e2ef
movsxd rax, ebx
lea rcx, [rax + rax*2]
mov dword [rdx + rcx*8], 1
mov dword [0x1800a5018], 1
mov rdi, qword [rsp + 0x460]
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180013880
add rsp, 0x450
pop rbx
ret

Function at 0x1800100a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, edx
shr edx, 4
mov rsi, r9
inc dx
movzx r9d, r8w
mov rdi, rcx
movzx r8d, dx
mov edx, 6
and ebx, 0xf
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
test rax, rax
je 0x18001010b
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdx, rax
test rax, rax
je 0x18001010b
xor ebp, ebp
mov eax, ebp
movzx ecx, word [rdx]
add rdx, 2
cmp ebx, eax
je 0x180010122
inc eax
lea rdx, [rdx + rcx*2]
cmp eax, 0x10
jl 0x1800100f5
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edi, dword [rsp + 0x50]
dec edi
cmp ecx, edi
cmovle edi, ecx
movsxd rcx, edi
lea rbx, [rcx + rcx]
mov rcx, rsi
mov r8, rbx
call fcn.180014a50
mov word [rbx + rsi], bp
mov eax, edi
jmp 0x18001010d
Function at 0x180011d80
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x180011dae
or r9d, 0x20019
mov r8d, r9d
call fcn.180011ce0
mov rbx, rax
jmp 0x180011db1
mov rbx, rcx
test rbx, rbx
je 0x180011e45
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x58]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180011e38
cmp dword [rsp + 0x58], 4
jne 0x180011e38
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180011e38
cmp rbx, rdi
je 0x180011e23
mov rcx, rbx
call fcn.180011d60
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp rbx, rdi
je 0x180011e45
mov rcx, rbx
call fcn.180011d60
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x180011e60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x40
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x180011e8e
or r9d, 0x20019
mov r8d, r9d
call fcn.180011ce0
mov rbx, rax
jmp 0x180011e91
mov rbx, rcx
mov qword [rsp + 0x50], rdi
test rbx, rbx
je 0x180011f43
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180011f36
cmp dword [rsp + 0x30], 3
jne 0x180011f36
mov ecx, dword [rsp + 0x58]
call fcn.180013c3c
mov rdi, rax
test rax, rax
je 0x180011f36
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180011f2e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov qword [rax], rdi
mov eax, dword [rsp + 0x58]
mov dword [rcx], eax
cmp rbx, rsi
je 0x180011f27
mov rcx, rbx
call fcn.180011d60
mov eax, 1
jmp 0x180011f45
mov rcx, rdi
call fcn.180013b68
cmp rbx, rsi
je 0x180011f43
mov rcx, rbx
call fcn.180011d60
xor eax, eax
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rsi
ret
Function at 0x180011f60
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x40
mov rbp, r8
mov rdi, rcx
test rdx, rdx
je 0x180011f8e
or r9d, 0x20019
mov r8d, r9d
call fcn.180011ce0
mov rbx, rax
jmp 0x180011f91
mov rbx, rcx
mov qword [rsp + 0x50], rsi
test rbx, rbx
je 0x180012080
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180012073
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x180011fea
cmp eax, 2
je 0x180011fea
cmp eax, 6
je 0x180011fea
cmp eax, 7
jne 0x180012073
mov ecx, dword [rsp + 0x58]
add ecx, 2
call fcn.180013c3c
mov r8d, dword [rsp + 0x58]
xor edx, edx
add r8d, 2
mov rcx, rax
mov rsi, rax
call fcn.180015150
lea r11, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x28], r11
xor r8d, r8d
mov rdx, rbp
mov rcx, rbx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18001205a
mov rcx, qword [rsp + 0x70]
mov rdx, rsi
call fcn.18000f8c0
cmp rbx, rdi
je 0x18001204b
mov rcx, rbx
call fcn.180011d60
mov rcx, rsi
call fcn.180013b68
mov eax, 1
jmp 0x180012082
mov rcx, rsi
call fcn.180013b68
mov rcx, qword [rsp + 0x70]
lea rdx, [0x180077158]
call fcn.18000f8c0
cmp rbx, rdi
je 0x180012080
mov rcx, rbx
call fcn.180011d60
xor eax, eax
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x1800120a0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, r8
mov rdi, rcx
test rdx, rdx
je 0x1800120ce
or r9d, 0x20006
mov r8d, r9d
call fcn.180011d10
mov rbx, rax
jmp 0x1800120d1
mov rbx, rcx
test rbx, rbx
je 0x180012130
lea rax, [rsp + 0x60]
mov r9d, 4
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x180012123
cmp rbx, rdi
je 0x18001210e
mov rcx, rbx
call fcn.180011d60
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp rbx, rdi
je 0x180012130
mov rcx, rbx
call fcn.180011d60
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x180012150
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x30
mov rbp, r8
mov rsi, rcx
test rdx, rdx
je 0x18001217e
or r9d, 0x20006
mov r8d, r9d
call fcn.180011d10
mov rbx, rax
jmp 0x180012181
mov rbx, rcx
test rbx, rbx
je 0x1800121f8
mov rdx, qword [rsp + 0x60]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rsp + 0x40], rdi
mov rdi, rdx
mov r9d, 1
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
lea eax, [rcx + rcx]
mov rcx, rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdx
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rdi, qword [rsp + 0x40]
test eax, eax
jne 0x1800121eb
cmp rbx, rsi
je 0x1800121d6
mov rcx, rbx
call fcn.180011d60
mov eax, 1
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rsi
ret
cmp rbx, rsi
je 0x1800121f8
mov rcx, rbx
call fcn.180011d60
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rsi
ret

Function at 0x180012380
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x40
mov rbp, qword [rsp + 0x90]
mov r14, r8
mov rbx, rdx
mov r13, rcx
or r8d, 0xffffffff
xor edx, edx
mov rcx, rbp
mov edi, r9d
call fcn.180010a70
test rbx, rbx
je 0x1800123d0
or edi, 0x20019
mov rdx, rbx
mov rcx, r13
mov r8d, edi
call fcn.180011ce0
mov rsi, rax
jmp 0x1800123d3
mov rsi, r13
mov qword [rsp + 0x70], r12
test rsi, rsi
je 0x1800124da
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800124cd
mov eax, dword [rsp + 0x30]
cmp eax, 1
je 0x18001242c
cmp eax, 2
je 0x18001242c
cmp eax, 6
je 0x18001242c
cmp eax, 7
jne 0x1800124cd
mov ecx, dword [rsp + 0x78]
add ecx, 2
call fcn.180013c3c
mov r8d, dword [rsp + 0x78]
xor edx, edx
add r8d, 2
mov rcx, rax
mov r12, rax
call fcn.180015150
lea rdx, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rdx
xor r8d, r8d
mov rcx, rsi
mov rdx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1800124c5
mov rbx, r12
cmp word [r12], ax
je 0x1800124a9
nop dword [rax]
mov edx, dword [rbp + 8]
mov r8, rbx
mov rcx, rbp
call fcn.180010be0
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
cmp word [rbx + rcx*2], ax
lea rbx, [rbx + rcx*2]
jne 0x180012480
cmp rsi, r13
je 0x1800124b6
mov rcx, rsi
call fcn.180011d60
mov rcx, r12
call fcn.180013b68
mov eax, 1
jmp 0x1800124dc
mov rcx, r12
call fcn.180013b68
cmp rsi, r13
je 0x1800124da
mov rcx, rsi
call fcn.180011d60
xor eax, eax
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x180012500
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push r14
sub rsp, 0x58
mov r14, rcx
test rdx, rdx
je 0x180012528
or r9d, 0x20006
mov r8d, r9d
call fcn.180011d10
mov rbx, rax
jmp 0x18001252b
mov rbx, rcx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x30], r15
test rbx, rbx
je 0x18001268b
mov rsi, qword [rsp + 0x90]
xor r12d, r12d
mov r15d, 2
mov edi, r12d
cmp dword [rsi + 8], r12d
jle 0x18001259c
nop word [rax + rax]
lea rdx, [rsp + 0x78]
mov r8d, edi
mov rcx, rsi
call fcn.180012360
mov rcx, qword [rax]
mov eax, dword [rcx - 8]
lea rcx, [rsp + 0x78]
lea r15d, [r15 + rax*2 + 2]
call fcn.18000f740
inc edi
cmp edi, dword [rsi + 8]
jl 0x180012570
mov ecx, r15d
mov edi, r15d
call fcn.180013c3c
mov rbp, rax
test rax, rax
je 0x18001268b
mov r8d, edi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x38], r13
call fcn.180015150
mov r13, rbp
cmp dword [rsi + 8], r12d
jle 0x18001262d
nop
lea rdx, [rsp + 0x78]
mov r8d, r12d
mov rcx, rsi
call fcn.180012360
mov rdx, r13
mov rcx, qword [rax]
nop word [rax + rax]
movzx eax, word [rcx]
add rdx, 2
add rcx, 2
mov word [rdx - 2], ax
test ax, ax
jne 0x1800125f0
lea rcx, [rsp + 0x78]
call fcn.18000f740
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
inc r12d
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
lea r13, [r13 + rcx*2]
cmp r12d, dword [rsi + 8]
jl 0x1800125d0
mov rdx, qword [rsp + 0x80]
mov r9d, 7
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov r13, qword [rsp + 0x38]
test eax, eax
jne 0x180012676
cmp rbx, r14
je 0x180012667
mov rcx, rbx
call fcn.180011d60
mov rcx, rbp
call fcn.180013b68
mov eax, 1
jmp 0x18001268d
mov rcx, rbp
call fcn.180013b68
cmp rbx, r14
je 0x18001268b
mov rcx, rbx
call fcn.180011d60
xor eax, eax
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x70]
add rsp, 0x58
pop r14
pop rbx
ret
Function at 0x1800126b0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x1800126d9
or r8d, 0x20019
call fcn.180011ce0
mov rdi, rax
jmp 0x1800126dc
mov rdi, rcx
or rbp, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov r8d, ebp
mov qword [rsp + 0x90], rbx
call fcn.180010a70
test rdi, rdi
je 0x180012814
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180012807
cmp dword [rsp + 0x60], ebx
jbe 0x180012807
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.180013c3c
mov rbp, rax
test rax, rax
je 0x180012807
cmp dword [rsp + 0x60], ebx
jbe 0x1800127eb
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
add r8, r8
call fcn.180015150
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1800127e3
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.180010be0
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1800127a0
mov rcx, rbp
call fcn.180013b68
cmp rdi, r12
je 0x180012800
mov rcx, rdi
call fcn.180011d60
mov eax, 1
jmp 0x180012816
cmp rdi, r12
je 0x180012814
mov rcx, rdi
call fcn.180011d60
xor eax, eax
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x1800126b0
mov r8, rdx
xor edx, edx
jmp 0x1800129c0
Function at 0x1800129d0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x70
mov rsi, r9
mov r12, rcx
test rdx, rdx
je 0x1800126d9
or r8d, 0x20019
call fcn.180011ce0
mov rdi, rax
jmp 0x1800126dc
mov rdi, rcx
or rbp, 0xffffffffffffffff
xor edx, edx
mov rcx, rsi
mov r8d, ebp
mov qword [rsp + 0x90], rbx
call fcn.180010a70
test rdi, rdi
je 0x180012814
xor ebx, ebx
lea rax, [rsp + 0x98]
xor r9d, r9d
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov dword [rsp + 0x60], ebx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x98], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x180012807
cmp dword [rsp + 0x60], ebx
jbe 0x180012807
mov eax, dword [rsp + 0x98]
mov ecx, 0x104
cmp eax, ecx
cmovb eax, ecx
mov dword [rsp + 0x98], eax
lea ecx, [rax + 1]
mov eax, 2
mul rcx
cmovo rax, rbp
mov rcx, rax
call fcn.180013c3c
mov rbp, rax
test rax, rax
je 0x180012807
cmp dword [rsp + 0x60], ebx
jbe 0x1800127eb
mov r8d, dword [rsp + 0x98]
xor edx, edx
mov rcx, rbp
inc r8d
add r8, r8
call fcn.180015150
mov r9d, dword [rsp + 0x98]
mov r8, rbp
mov edx, ebx
mov rcx, rdi
inc r9d
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1800127e3
mov edx, dword [rsi + 8]
mov r8, rbp
mov rcx, rsi
call fcn.180010be0
inc ebx
cmp ebx, dword [rsp + 0x60]
jb 0x1800127a0
mov rcx, rbp
call fcn.180013b68
cmp rdi, r12
je 0x180012800
mov rcx, rdi
call fcn.180011d60
mov eax, 1
jmp 0x180012816
cmp rdi, r12
je 0x180012814
mov rcx, rdi
call fcn.180011d60
xor eax, eax
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xa0]
add rsp, 0x70
pop r12
pop rdi
pop rsi
ret
mov r9, r8
mov r8d, dword [rcx + 8]
mov rcx, qword [rcx]
jmp 0x1800126b0
mov r8, rdx
xor edx, edx
jmp 0x1800129c0

Function at 0x180012d40
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x10], 0
mov rbx, rcx
jne 0x180012dda
mov qword [rsp + 0x40], rsi
mov esi, dword [rcx + 0x38]
mov qword [rsp + 0x48], rdi
mov edi, 4
test esi, esi
je 0x180012d79
call fcn.180013460
mov ecx, 0x10004
test eax, eax
cmovne edi, ecx
lea rax, [rbx + 8]
lea r8, [0x180012c60]
mov rdx, rsi
mov qword [rsp + 0x28], rax
mov r9, rbx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x180012dda
mov edx, dword [rbx + 0x3c]
mov dword [rbx + 0x18], 1
test edx, edx
je 0x180012dc5
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x180013250
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rdi
sub rsp, 0x20
cmp dword [0x1800a13ec], 0
jne 0x18001335c
lea rcx, [0x1800a1170]
mov edi, 1
mov dword [0x1800a1170], 0x114
mov dword [0x1800a13ec], edi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r11d, r11d
cmp dword [0x1800a1180], 2
sete r11b
mov dword [reloc.WS2_32.dll_accept], r11d
test r11d, r11d
je 0x18001334f
lea rcx, [0x1800a1290]
mov qword [rsp + 0x30], rbx
mov dword [0x1800a1290], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [0x180075d60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.GetProductInfo
mov rcx, rbx
mov qword [0x1800a1168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x30]
mov qword [0x1800a13e0], rax
mov rax, qword [0x1800a1168]
lea rcx, [0x1800a13b0]
test rax, rax
je 0x180013319
call rax
jmp 0x18001331f
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1800a1294]
cmp eax, 6
jae 0x180013338
cmp eax, 5
jne 0x18001334f
cmp dword [0x1800a1298], 2
jb 0x18001334f
mov ecx, dword [0x1800a1160]
cmp word [0x1800a13b0], 9
cmove ecx, edi
mov dword [0x1800a1160], ecx
call fcn.180013000
mov eax, edi
add rsp, 0x20
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180013760
Capabilities:
Check os version
Get system information on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [0x1800a1674], 0
jne 0x180013841
lea rcx, [0x1800a1400]
mov ebx, 1
mov dword [0x1800a1400], 0x114
mov dword [0x1800a1674], ebx
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
xor r11d, r11d
cmp dword [0x1800a1410], 2
sete r11b
mov dword [reloc.WS2_32.dll_accept], r11d
test r11d, r11d
je 0x180013834
lea rcx, [0x1800a1520]
mov dword [0x1800a1520], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rcx, [0x180075d60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1800a1640]
mov qword [0x1800a13f8], rax
test rax, rax
je 0x1800137fe
call rax
jmp 0x180013804
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1800a1524]
cmp eax, 6
jae 0x18001381d
cmp eax, 5
jne 0x180013834
cmp dword [0x1800a1528], 2
jb 0x180013834
mov ecx, dword [0x1800a13f0]
cmp word [0x1800a1640], 9
cmove ecx, ebx
mov dword [0x1800a13f0], ecx
call fcn.180013560
mov eax, ebx
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18001692f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x18008f100]
jne 0x18001389a
rol rcx, 0x10
test cx, 0xffff
jne 0x180013896
repz ret
ror rcx, 0x10
jmp 0x180016888
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800a1760]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800a1858]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18001690d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800a1760]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18001692f
mov rax, qword [rsp + 0x88]
mov qword [0x1800a1858], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800a17f8], rax
mov rax, qword [0x1800a1858]
mov qword [0x1800a16d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800a17e0], rax
mov dword [0x1800a16c0], 0xc0000409
mov dword [0x1800a16c4], 1
mov rax, qword [0x18008f100]
mov qword [rsp + 0x68], rax
mov rax, qword [0x18008f108]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800a1758], eax
mov ecx, 1
call fcn.18001fc0c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x180061d58]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800a1758], 0
jne 0x1800169b6
mov ecx, 1
call fcn.18001fc0c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret