joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14008b3b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14008b43a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14008b430
cmp r11, r10
ja 0x14008b4b6
cmp r10, rdx
ja 0x14008b4c8
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x14008b432
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14008b410
jmp 0x14008b497
ja 0x14008b43a
mov r11, r10
cmp rax, r8
jne 0x14008b3d7
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x14008b49b
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14008b470
mov r8, r10
sub ecx, r9d
jns 0x14008b48e
jmp 0x14008b49d
cmp r10, rdx
je 0x14008b4aa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14008b49d
xor al, 1
cmp r8, rdx
jne 0x14008b450
jmp 0x14008b49d
xor eax, eax
jmp 0x14008b49d
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, [0x1400b5f20]
call fcn.140082280
lea r8, [0x1400b5f38]
mov rcx, r11
mov rdx, r10
call fcn.1400888a0
lea r8, [0x1400b5f38]
mov rcx, r10
call fcn.140088830
int3

Function at 0x140098e50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140099ce0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140099ce0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140098ec0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400d41d4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140099050
mov rax, qword [0x1400d41d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140098f0c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140098f95
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140098ef0
mov rcx, rdi
call fcn.140099a20
test rax, rax
mov r12, rax
je 0x1400990a2
mov rax, qword [0x1400d41d8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140099b60
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400d41d8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140099085
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140098f8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140099000
add dword [0x1400d41d4], 1
cmp ebx, 8
jae 0x140098fc1
test bl, 4
jne 0x140099060
test ebx, ebx
je 0x140098fb6
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140099074
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140098fb6
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x140098fda
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1400d41d8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140098f8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140098e50
xor esi, esi
jmp 0x140098f17
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140098fb6
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140098fb6
mov rax, qword [0x1400d41d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140098e50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140098e50
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140099670
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400d4240]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400d4220]
test rbx, rbx
je 0x1400996c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400996bb
test rsi, rsi
je 0x1400996bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400996a0
lea rcx, [0x1400d4240]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140099a20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1400c1040]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140099a8f
mov rcx, r9
call fcn.1400998f0
test eax, eax
je 0x140099a8f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140099a8d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140099a84
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140099a8f
add rdx, 0x28
cmp rdx, r9
jne 0x140099a70
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001480
Capabilities:
Execute command

Disassembly:
sub rsp, 0x48
lea rcx, str.clear
call qword [sym.imp.ucrtbased.dll_system]
lea rcx, [0x1400042dc]
call fcn.140002080
mov dword [rsp + 0x28], 0
jmp 0x1400014b1
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xa
jge 0x1400014ca
mov edx, dword [rsp + 0x28]
lea rcx, [0x1400043ec]
call fcn.140002080
jmp 0x1400014a7
lea rcx, [0x1400043d4]
call fcn.140002080
mov dword [rsp + 0x20], 0
jmp 0x1400014ea
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xa
jge 0x14000165f
mov edx, dword [rsp + 0x20]
lea rcx, str._2d
call fcn.140002080
mov dword [rsp + 0x24], 0
jmp 0x140001519
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xa
jge 0x14000164e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
lea rcx, [0x14006a1d0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x24]
cmp dword [rax + rcx*4], 0
je 0x14000163d
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x28
lea rcx, [0x14006a040]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x24]
cmp dword [rax + rcx*4], 0xffffffff
jne 0x14000157b
lea rcx, [0x1400043fc]
call fcn.140002080
jmp 0x14000163b
mov dword [rsp + 0x3c], 0
mov dword [rsp + 0x2c], 0xffffffff
jmp 0x140001597
mov eax, dword [rsp + 0x2c]
inc eax
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 1
jg 0x14000162b
mov dword [rsp + 0x30], 0xffffffff
jmp 0x1400015b6
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 1
jg 0x140001626
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x24]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x34], 0
jl 0x140001624
cmp dword [rsp + 0x34], 0xa
jge 0x140001624
cmp dword [rsp + 0x38], 0
jl 0x140001624
cmp dword [rsp + 0x38], 0xa
jge 0x140001624
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x28
lea rcx, [0x14006a040]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x38]
cmp dword [rax + rcx*4], 0xffffffff
jne 0x140001624
mov eax, dword [rsp + 0x3c]
inc eax
mov dword [rsp + 0x3c], eax
jmp 0x1400015ac
jmp 0x14000158d
mov edx, dword [rsp + 0x3c]
lea rcx, str._d
call fcn.140002080
jmp 0x140001649
lea rcx, [0x140004408]
call fcn.140002080
jmp 0x14000150f
lea rcx, [0x14000440c]
call fcn.140002080
jmp 0x1400014e0
add rsp, 0x48
ret
Function at 0x180002e70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x1040
call fcn.180051560
sub rsp, rax
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov rbx, rcx
mov rdi, rdx
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0xfff
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x30], 0
call fcn.18003e200
lea rdx, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextA]
or rcx, 0xffffffffffffffff
xor eax, eax
mov qword [rbx + 0x20], 0xf
mov qword [rbx + 0x18], 0
mov byte [rbx + 8], 0
lea rdi, [rsp + 0x30]
lea rdx, [rsp + 0x30]
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180006c70
mov rax, rbx
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.18003c6c0
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1040
pop rdi
ret
Function at 0x18000d4d0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbx, rcx
lea rcx, [rsp + 0x30]
xor edi, edi
xor edx, edx
mov r8d, 0x11c
mov dword [rsp + 0x20], edi
call fcn.18003e200
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18000d52b
lea rcx, [rsp + 0x30]
call fcn.180031ea8
mov eax, dword [rsp + 0x34]
mov qword [rbx + 0x20], 7
mov qword [rbx + 0x18], rdi
mov word [rbx + 8], di
cmp eax, 5
jne 0x18000d554
lea rdi, [0x18005c2e8]
lea rdx, [0x18005c2e8]
jmp 0x18000d56c
lea rcx, str.poprotect664_win7.sys
lea rdx, str.poprotect664.sys
cmp eax, 6
cmove rdx, rcx
mov rdi, rdx
or rcx, 0xffffffffffffffff
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, rbx
call fcn.180006f50
mov rax, rbx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18003c6c0
mov rbx, qword [rsp + 0x178]
add rsp, 0x160
pop rdi
ret

Function at 0x18000d5b0
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x270
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rcx, [rsp + 0x28]
call fcn.18000d4d0
nop
cmp qword [rsp + 0x40], 0
jne 0x18000d60d
lea rcx, str.protect_unsupported_on_current_system
call fcn.1800362b8
nop
cmp qword [rsp + 0x48], 8
jb 0x18000d606
mov rcx, qword [rsp + 0x30]
call fcn.18003cec4
xor eax, eax
jmp 0x18000d6be
xor eax, eax
mov word [rsp + 0x50], ax
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0x52]
call fcn.18003e200
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
mov r9d, 0x104
lea r8, [rsp + 0x50]
mov rcx, qword [0x1800751d0]
call fcn.180031cf0
lea rdx, [rsp + 0x50]
lea rcx, str.sys_path:_ls
call fcn.180035bd8
lea rcx, [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x18000d684
cmp qword [rsp + 0x48], 8
jb 0x18000d680
mov rcx, qword [rsp + 0x30]
call fcn.18003cec4
xor eax, eax
jmp 0x18000d6be
lea rcx, str.test_install_poprotect
call fcn.180035bd8
xor r9d, r9d
lea r8d, [r9 + 3]
lea rdx, [0x18005ca30]
lea rcx, [rsp + 0x50]
call fcn.180033b64
mov ebx, eax
cmp qword [rsp + 0x48], 8
jb 0x18000d6bc
mov rcx, qword [rsp + 0x30]
call fcn.18003cec4
mov eax, ebx
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.18003c6c0
add rsp, 0x270
pop rbx
ret
Function at 0x18000d6e0
Capabilities:
Check if file exists
Check os version

Disassembly:
push rbx
sub rsp, 0x1b0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov dword [rsp + 0x80], 0x11c
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x84]
call fcn.18003e200
lea rcx, [0x18005ca30]
call fcn.180033de4
xor ebx, ebx
test eax, eax
je 0x18000d872
lea rcx, [0x18005ca30]
call fcn.180033f24
test eax, eax
jne 0x18000d872
xor edx, edx
mov r8d, 0x11c
lea rcx, [rsp + 0x80]
call fcn.18003e200
mov dword [rsp + 0x80], 0x11c
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18000d872
lea rcx, [rsp + 0x80]
call fcn.180031ea8
test eax, eax
je 0x18000d872
cmp dword [rsp + 0x84], 6
jne 0x18000d872
lea r8, [0x18005ca30]
lea rdx, str.SYSTEMCurrentControlSetServices_s
lea rcx, [rsp + 0x50]
call fcn.1800335ec
nop
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae r8, qword [rsp + 0x58]
lea r9, str.ImagePath
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x28]
call fcn.1800337bc
nop
cmp qword [rsp + 0x40], rbx
je 0x18000d83b
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rcx, qword [rsp + 0x30]
lea rdx, str.poprotect664_win7.sys
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
test rax, rax
jne 0x18000d83b
lea r8, str.poprotect664_win7.sys
lea rdx, str.poprotect664.sys
lea rcx, str.upgrade_service__s___s
call fcn.180036120
lea rcx, [0x18005ca30]
call fcn.180033e94
nop
cmp qword [rsp + 0x48], 8
jb 0x18000d84d
mov rcx, qword [rsp + 0x30]
call fcn.18003cec4
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], rbx
mov word [rsp + 0x30], bx
cmp qword [rsp + 0x70], 8
jb 0x18000d872
mov rcx, qword [rsp + 0x58]
call fcn.18003cec4
lea rcx, [0x18005ca30]
call fcn.180033de4
test eax, eax
je 0x18000d8b9
lea rcx, [0x18005ca30]
call fcn.180033c70
test eax, eax
je 0x18000d899
mov eax, 1
jmp 0x18000d8d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x18000d8ad
cmp eax, 3
je 0x18000d8ad
xor eax, eax
jmp 0x18000d8d9
lea rcx, [0x18005ca30]
call fcn.180033e94
call fcn.18000d5b0
test eax, eax
je 0x18000d8d7
lea rcx, [0x18005ca30]
call fcn.180033c70
test eax, eax
je 0x18000d8d7
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.18003c6c0
add rsp, 0x1b0
pop rbx
ret
Function at 0x1800127a0
Capabilities:
Hash data with crc32

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xb0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbx, rcx
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.180010d80
nop
mov rdx, rbx
lea rcx, [rsp + 0x80]
call fcn.180011240
nop
lea rax, vtable.MemoryHolder_char_.0
mov qword [rsp + 0x60], rax
xor esi, esi
mov qword [rsp + 0x68], rsi
mov rax, qword [rsp + 0x98]
lea rbx, [rax + rax + 0x1050]
mov qword [rsp + 0x70], rbx
mov rcx, rbx
call fcn.18003c69c
mov rdi, rax
mov qword [rsp + 0x68], rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.18003e200
mov r11, qword [rsp + 0x50]
sub r11, qword [rsp + 0x48]
sar r11, 2
mov dword [rdi + 4], r11d
test r11d, r11d
je 0x18001287d
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
sub rbx, rdx
sar rbx, 2
test rbx, rbx
jne 0x18001286c
call fcn.18003ce6c
mov rdx, qword [rsp + 0x48]
lea r8, [rbx*4]
lea rcx, [rdi + 8]
call fcn.18003c980
cmp qword [rsp + 0x98], 0
je 0x1800128c7
mov eax, dword [rsp + 0x98]
mov dword [rdi + 0x1008], eax
lea rdx, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae rdx, qword [rsp + 0x88]
mov r8d, dword [rsp + 0x98]
inc r8d
lea rcx, [rdi + 0x100c]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
lea r9, [rsp + 0x88]
cmp qword [rsp + 0xa0], 8
cmovae r9, qword [rsp + 0x88]
or eax, 0xffffffff
mov ecx, dword [rsp + 0x98]
lea r10d, [rcx + rcx]
test r10d, r10d
je 0x18001291f
lea r11, [0x180072c80]
nop dword [rax + rax]
movzx edx, byte [r9]
mov ecx, eax
xor rdx, rcx
movzx r8d, dl
shr ecx, 8
mov eax, dword [r11 + r8*4]
xor eax, ecx
inc r9
add r10d, 0xffffffff
jne 0x180012900
not eax
mov dword [rdi], eax
mov eax, dword [rdi + 0x1008]
lea r8d, [rax + rax + 0x100c]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov rdx, rdi
mov ecx, 0x13b1
call fcn.1800109a0
mov ebx, eax
mov rcx, rdi
call fcn.18003d2a0
nop
cmp qword [rsp + 0xa0], 8
jb 0x18001296d
mov rcx, qword [rsp + 0x88]
call fcn.18003cec4
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], rsi
mov word [rsp + 0x88], si
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180012998
call fcn.18003cec4
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x30]
call fcn.18003cec4
mov eax, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.18003c6c0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180017b20
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r15, r8
mov rbp, rdx
mov rbx, rcx
cmp qword [rdx + 0x20], 0x10
jb 0x180017b5e
lea rdi, [rdx + 8]
mov rdx, qword [rdi]
jmp 0x180017b65
lea rdi, [rdx + 8]
mov rdx, rdi
lea rcx, str.load_policy__msg:_hs
call fcn.180035bd8
mov r12, qword [rbp + 0x18]
mov r13, r12
cmp r12, r12
cmovb r12, r12
mov r14, qword [rbp + 0x20]
cmp r14, 0x10
jb 0x180017b8e
mov rcx, qword [rdi]
jmp 0x180017b91
mov rcx, rdi
mov r8d, 0xf
cmp r12, r8
cmovb r8, r12
lea rdx, str.clientSafeRules
call fcn.180046cc0
movsxd rcx, eax
xor esi, esi
test eax, eax
jne 0x180017bc8
cmp r12, 0xf
jb 0x180017d0b
mov eax, esi
cmp r12, 0xf
setne al
mov ecx, eax
test ecx, ecx
jne 0x180017d0b
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], sil
lea r8d, [rcx + 0x1d]
lea rdx, str.BanWriteRegistryCriticalItems
lea rcx, [rsp + 0x38]
call fcn.180006c70
nop
mov byte [rsp + 0x90], 0
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.18000de70
test al, al
je 0x180017c2b
cmp byte [rsp + 0x90], 0
je 0x180017c2b
mov eax, 1
jmp 0x180017c2d
mov eax, esi
movzx eax, al
mov dword [rbx + 8], eax
cmp qword [rsp + 0x58], 0x10
jb 0x180017c45
mov rcx, qword [rsp + 0x40]
call fcn.18003cec4
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], rsi
mov byte [rsp + 0x40], 0
mov r8d, 0x1f
lea rdx, str.AllowWriteRegistryCriticalItems
lea rcx, [rsp + 0x38]
call fcn.180006c70
nop
mov byte [rsp + 0x90], 0
lea r8, [rsp + 0x90]
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.18000de70
test al, al
je 0x180017ca2
cmp byte [rsp + 0x90], 0
je 0x180017ca2
mov eax, 1
jmp 0x180017ca4
mov eax, esi
movzx eax, al
mov dword [rbx + 0xc], eax
cmp qword [rsp + 0x58], 0x10
jb 0x180017cbc
mov rcx, qword [rsp + 0x40]
call fcn.18003cec4
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
lea rcx, str.m_bEnable:_d__m_bManualed:_d
call fcn.180035bd8
cmp dword [rbx + 8], 0
je 0x180017d62
mov rcx, rbx
call fcn.180014df0
cmp qword [rbx + 0x18], 0
jne 0x180017d62
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, rbx
lea r8, [0x180017a20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x18], rax
jmp 0x180017d62
mov rbp, r13
cmp r13, r13
cmovb rbp, r13
cmp r14, 0x10
jb 0x180017d1e
mov rdi, qword [rdi]
mov r8d, 0x11
cmp rbp, r8
cmovb r8, rbp
lea rdx, str.GLOBALCFG_CHANGED
mov rcx, rdi
call fcn.180046cc0
movsxd rcx, eax
test eax, eax
jne 0x180017d51
cmp rbp, 0x11
jb 0x180017d62
cmp rbp, 0x11
setne sil
mov ecx, esi
test ecx, ecx
jne 0x180017d62
cmp dword [rbx + 8], ecx
je 0x180017d62
mov rcx, rbx
call fcn.180014df0
mov rdx, qword [rbx]
mov rcx, rbx
call qword [rdx + 0x18]
mov eax, 1
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180031480
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor edi, edi
mov rbx, rcx
cmp rcx, rdi
je 0x18003158e
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x18003158e
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], di
call fcn.18003e200
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800321dc
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1800314ff
shr eax, 4
not eax
and eax, 1
jmp 0x180031590
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x250]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rcx, [rsp + 0x250]
call fcn.1800315b4
cmp eax, edi
je 0x18003158e
mov qword [rsp + 0x30], rdi
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, rdi
je 0x18003156c
mov ecx, 1
cmp rax, 0xffffffffffffffff
jne 0x18003156e
mov ecx, edi
cmp cl, dil
mov ebx, edi
setne bl
cmp rax, 0xffffffffffffffff
je 0x18003158a
cmp rax, rdi
je 0x18003158a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x180031590
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.18003c6c0
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
Function at 0x180031dac
Capabilities:
Check if file exists
Delete file
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
mov ebp, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, eax
test eax, eax
jne 0x180031de5
xor edx, edx
mov rcx, rdi
call fcn.180031480
test eax, eax
je 0x180031e91
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, rdi
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
test rax, rax
je 0x180031e70
cmp rax, 0xffffffffffffffff
je 0x180031e70
and dword [rsp + 0x78], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebp
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180031e53
cmp dword [rsp + 0x78], ebp
jne 0x180031e53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x180031e93
test esi, esi
jne 0x180031e7d
mov rcx, rbx
or rbx, 0xffffffffffffffff
cmp rcx, rbx
je 0x180031e74
test rcx, rcx
je 0x180031e74
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180031e74
test esi, esi
jne 0x180031e7d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp rbx, 0xffffffffffffffff
je 0x180031e91
test rbx, rbx
je 0x180031e91
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x1800320a4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x140
mov rax, qword [0x180071060]
xor rax, rsp
mov qword [rsp + 0x130], rax
lea rcx, [rsp + 0x21]
xor ebx, ebx
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x20], bl
call fcn.18003e200
lea rcx, [rsp + 0x20]
mov edx, 0x104
call fcn.180031f94
mov r11d, 0x179b06cc
movzx edx, byte [rsp + rbx + 0x20]
movzx eax, r11b
mov ecx, r11d
xor rdx, rax
shr ecx, 8
lea rax, [0x1800739a0]
mov r11d, dword [rax + rdx*4]
inc rbx
xor r11d, ecx
cmp rbx, 0x24
jl 0x1800320ec
not r11d
mov eax, r11d
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.18003c6c0
add rsp, 0x140
pop rbx
ret