joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180018830
Capabilities:
Query or enumerate registry key

Disassembly:
jmp 0x180018830
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov rbx, rdx
mov r15, rcx
mov rcx, rdx
call fcn.180001406
lea rcx, [rsp + 0x48]
call fcn.180001c44
nop
xor r12d, r12d
mov r14d, r12d
or r13, 0xffffffffffffffff
mov dword [rsp + 0xa0], 0x105
cmp dword [rsp + 0x54], 0x105
jae 0x180018898
mov edx, 0x105
lea rcx, [rsp + 0x48]
call fcn.180004331
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa0]
mov r8, qword [rsp + 0x48]
mov edx, r14d
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
mov rdx, qword [rsp + 0x48]
mov word [rdx + 0x20a], r12w
mov eax, r12d
cmp word [rdx], ax
je 0x1800188ed
inc eax
cmp word [rdx + rax*2], 0
jne 0x1800188e4
mov dword [rsp + 0x50], eax
cmp edi, 0x103
je 0x180018996
test edi, edi
jne 0x180018999
lea ecx, [rdi + 0x10]
call fcn.180001c85
mov qword [rsp + 0xb8], rax
test rax, rax
je 0x18001892c
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.180003e18
mov rdi, rax
jmp 0x18001892f
mov rdi, r12
mov ecx, dword [rbx + 0xc]
cmp dword [rbx + 8], ecx
jne 0x180018981
mov eax, ecx
shr eax, 2
lea ebp, [rcx + 1]
add ebp, eax
mov ecx, ebp
mov eax, 8
mul rcx
cmovo rax, r13
mov rcx, rax
call fcn.180002da6
mov rsi, rax
mov eax, dword [rbx + 8]
test eax, eax
je 0x180018973
mov r8d, eax
shl r8, 3
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.180003143
mov rcx, qword [rbx]
call fcn.180001316
mov qword [rbx], rsi
mov dword [rbx + 0xc], ebp
mov ecx, dword [rbx + 8]
mov rax, qword [rbx]
mov qword [rax + rcx*8], rdi
inc dword [rbx + 8]
inc r14d
jmp 0x180018874
mov edi, r12d
mov rcx, qword [rsp + 0x48]
call fcn.180001316
mov eax, edi
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180018a20
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x180018a20
push rbx
sub rsp, 0x40
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x68], 0
mov rbx, r8
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x50], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180018a68
mov ecx, dword [rsp + 0x30]
mov dword [rbx], ecx
add rsp, 0x40
pop rbx
ret

Function at 0x180018a90
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x180018a90
push rbx
sub rsp, 0x40
movzx eax, byte [rsp + 0x50]
lea r9, [rsp + 0x30]
mov rcx, qword [rcx]
mov rbx, r8
mov dword [rsp + 0x50], eax
xor r8d, r8d
lea rax, [rsp + 0x68]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x68], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180018ae4
cmp dword [rsp + 0x50], eax
setne cl
mov byte [rbx], cl
add rsp, 0x40
pop rbx
ret
Function at 0x180018b00
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x180018b00
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov qword [rax - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rsi, r8
mov rdi, rdx
mov r15, rcx
mov rcx, r8
call fcn.180001406
xor r12d, r12d
mov r14d, r12d
mov qword [rsp + 0x40], r12
mov ebp, r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0xa8], r12d
mov dword [rsp + 0x90], r12d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x180018b89
cmp eax, 0xea
jne 0x180018bdd
mov ebx, dword [rsp + 0x90]
test rbx, rbx
je 0x180018bb0
mov qword [rsp + 0x48], r12
mov ecx, ebx
call fcn.180002da6
mov r14, rax
mov qword [rsp + 0x40], rax
mov ebp, ebx
mov qword [rsp + 0x48], rbx
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x180018c93
mov eax, dword [rsp + 0x90]
mov edi, eax
cmp rax, rbp
ja 0x180018bf7
test al, 1
je 0x180018c01
mov ebx, 0x80004005
jmp 0x180018c93
lea rcx, [rsp + 0x50]
call fcn.180001c44
nop
shr rdi, 1
je 0x180018c85
mov rax, r12
mov ebx, 2
nop dword [rax]
cmp word [r14 + rbx - 2], 0
jne 0x180018c7b
lea rdx, [rax + r14]
lea rcx, [rsp + 0x50]
call fcn.1800034b8
mov ecx, 0x10
call fcn.180001c85
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x180018c60
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.180003e18
mov rbp, rax
jmp 0x180018c63
mov rbp, r12
mov rcx, rsi
call fcn.1800021ad
mov ecx, dword [rsi + 8]
mov rax, qword [rsi]
mov qword [rax + rcx*8], rbp
inc dword [rsi + 8]
mov rax, rbx
add rbx, 2
sub rdi, 1
jne 0x180018c20
mov ebx, r12d
mov rcx, qword [rsp + 0x50]
call fcn.180001316
nop
mov rcx, r14
call fcn.180001316
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x180018da0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x180018da0
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x20], r8
xor r8d, r8d
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add rsp, 0x38
ret
Function at 0x180018ee0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x180018ee0
mov qword [rsp + 0x10], rbx
push rsi
push rdi
push r14
sub rsp, 0x40
mov rax, qword [r8]
lea r9, [rsp + 0x78]
xor ebx, ebx
mov rdi, r8
mov dword [r8 + 8], ebx
mov r14, rcx
xor r8d, r8d
mov rsi, rdx
mov word [rax], bx
lea rax, [rsp + 0x60]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x78], ebx
mov dword [rsp + 0x60], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x180018f35
cmp eax, 0xea
jne 0x180018fad
mov edx, dword [rsp + 0x60]
mov dword [rsp + 0x70], edx
cmp edx, dword [rdi + 0xc]
jbe 0x180018f4a
mov rcx, rdi
call fcn.180004331
mov rax, qword [rdi]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x30]
mov rcx, qword [r14]
xor r8d, r8d
mov rdx, rsi
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [rsp + 0x60]
cmp edx, dword [rsp + 0x70]
mov r8, qword [rdi]
cmova edx, dword [rsp + 0x70]
mov dword [rsp + 0x60], edx
mov ecx, edx
shr rcx, 1
mov word [r8 + rcx*2], bx
cmp word [r8], bx
je 0x180018faa
nop dword [rax + rax]
inc ebx
cmp word [r8 + rbx*2], 0
jne 0x180018fa0
mov dword [rdi + 8], ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180019000
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x180019000
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
lea r9, [rsp + 0x58]
xor eax, eax
mov dword [rsp + 0x58], 0
cmp byte [r8], al
mov rbx, r8
mov dword [rsp + 0x50], 4
setne al
xor r8d, r8d
mov dword [rsp + 0x40], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [rsp + 0x40], 0
setne cl
mov byte [rbx], cl
add rsp, 0x30
pop rbx
ret
Function at 0x1800190f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x1800190f0
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1800b75c0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
lea rax, [rsp + 0x50]
mov rcx, qword [rcx]
xor ebp, ebp
mov r9d, 0x2001f
mov qword [rsp + 0x48], rbp
xor r8d, r8d
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], rax
mov rsi, rdx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180019224
mov rcx, qword [rsp + 0x48]
mov ebx, ebp
test rcx, rcx
je 0x18001915d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x48], rcx
test ebx, ebx
jne 0x180019224
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], 0x105
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x180019201
nop word [rax + rax]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call fcn.180004877
mov ebx, eax
test eax, eax
jne 0x180019224
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x105
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1800191b0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180019216
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x180019234
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.18000411a
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800193b0
Capabilities:
Set registry value

Disassembly:
jmp 0x1800193b0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
mov rbx, r8
mov rcx, r8
mov rdi, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [rsi]
mov r9d, 1
xor r8d, r8d
mov rdx, rdi
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x180019420
Capabilities:
Set registry value

Disassembly:
jmp 0x180019420
mov dword [rsp + 0x18], r8d
sub rsp, 0x38
mov rcx, qword [rcx]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x28], 4
mov r9d, 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x180019490
Capabilities:
Set registry value

Disassembly:
jmp 0x180019490
sub rsp, 0x38
mov rcx, qword [rcx]
xor eax, eax
test r8b, r8b
mov dword [rsp + 0x28], 4
mov r9d, 4
setne al
xor r8d, r8d
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret
Function at 0x1800195c0
Capabilities:
Set registry value

Disassembly:
jmp 0x1800195c0
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, 0x30
mov eax, dword [r8 + 8]
xor ebp, ebp
mov r15, r8
mov r12, rdx
mov r13, rcx
mov esi, ebp
test eax, eax
je 0x180019615
mov r9, qword [r8]
mov r10d, eax
nop word [rax + rax]
mov rax, qword [r9]
lea r9, [r9 + 8]
mov eax, dword [rax + 8]
inc eax
add rsi, rax
sub r10, 1
jne 0x180019600
mov rbx, rbp
test rsi, rsi
je 0x18001963b
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rsi
cmovo rax, rcx
mov rcx, rax
call fcn.180002da6
mov rbx, rax
mov r14d, ebp
cmp dword [r15 + 8], ebp
jbe 0x18001967d
nop dword [rax]
nop dword [rax + rax]
mov rcx, qword [r15]
mov edx, r14d
mov rdx, qword [rcx + rdx*8]
mov ecx, dword [rdx + 8]
mov rdx, qword [rdx]
inc ecx
mov edi, ecx
lea r8, [rcx + rcx]
lea rcx, [rbx + rbp*2]
call fcn.180003143
add rbp, rdi
inc r14d
cmp r14d, dword [r15 + 8]
jb 0x180019650
mov rcx, qword [r13]
lea eax, [rsi + rsi]
mov dword [rsp + 0x28], eax
mov r9d, 3
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
mov edi, eax
call fcn.180001316
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001dfb0
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x70
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp bx, ax
jne 0x18001e13f
movzx ecx, ax
mov edx, 0x3ff
and cx, dx
shr ax, 0xa
movzx r15d, ax
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
movzx ecx, cx
lea rdx, [rsp + 0x58]
call fcn.18001d880
lea rcx, [rsp + 0x28]
call fcn.18000117c
nop
mov esi, r12d
mov ebx, dword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
mov eax, r15d
test esi, esi
cmovne eax, r12d
cmp eax, ebx
jae 0x18001e0a3
mov rbp, qword [r14 + rax*8]
cmp dword [rbp + 8], 0
je 0x18001e0a3
mov r8, rbp
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.1800042aa
nop
lea r8, str..txt
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1800010c3
nop
lea r8, str.7_Zip
mov rdx, qword [rax]
lea rcx, [0x1800b8ac8]
call fcn.1800048e0
movzx edi, al
mov rcx, qword [rsp + 0x38]
call fcn.180001316
nop
mov rcx, qword [rsp + 0x48]
call fcn.180001316
test dil, dil
jne 0x18001e0ac
inc esi
cmp esi, 2
jae 0x18001e0f9
jmp 0x18001e031
mov rdx, rbp
lea rcx, [0x1800b8af0]
call fcn.1800045a2
nop
mov rcx, qword [rsp + 0x28]
call fcn.180001316
nop
test ebx, ebx
je 0x18001e137
lea rsi, [r14 + rbx*8]
nop
dec ebx
lea rsi, [rsi - 8]
mov rdi, qword [rsi]
test rdi, rdi
je 0x18001e0f3
mov rcx, qword [rdi]
call fcn.180001316
mov edx, 0x10
mov rcx, rdi
call fcn.180003a03
test ebx, ebx
jne 0x18001e0d0
jmp 0x18001e137
mov rcx, qword [rsp + 0x28]
call fcn.180001316
nop
test ebx, ebx
je 0x18001e137
lea rsi, [r14 + rbx*8]
nop dword [rax]
dec ebx
lea rsi, [rsi - 8]
mov rdi, qword [rsi]
test rdi, rdi
je 0x18001e133
mov rcx, qword [rdi]
call fcn.180001316
mov edx, 0x10
mov rcx, rdi
call fcn.180003a03
test ebx, ebx
jne 0x18001e110
mov rcx, r14
call fcn.180001316
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret

Function at 0x18001eff0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x18001eff0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r10, edx
lea r8, [rcx + 0x20]
xor edx, edx
mov rbx, r10
mov rdi, r10
shl rbx, 4
mov rsi, r10
shl rdi, 4
shl rsi, 4
mov r9, rcx
shl r10, 4
lea r11d, [rdx + 4]
nop dword [rax + rax]
mov rcx, qword [r8]
lea rdx, [rdx + 1]
mov rax, qword [r9 + 0x18]
lea r8, [r8 + 8]
add rax, rbx
movzx eax, byte [rax + rdx - 1]
xor byte [rcx], al
mov rcx, qword [r8 - 8]
mov rax, qword [r9 + 0x18]
add rax, rdi
movzx eax, byte [rax + rdx + 3]
xor byte [rcx + 1], al
mov rcx, qword [r8 - 8]
mov rax, qword [r9 + 0x18]
add rax, rsi
movzx eax, byte [rax + rdx + 7]
xor byte [rcx + 2], al
mov rax, qword [r9 + 0x18]
mov rcx, qword [r8 - 8]
add rax, r10
movzx eax, byte [rax + rdx + 0xb]
xor byte [rcx + 3], al
sub r11, 1
jne 0x18001f030
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
Function at 0x180020a90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x180020a90
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov ecx, 4
mov rdi, rdx
call fcn.180002da6
movzx ecx, byte [rdi]
lea rdx, str.cw
mov rbx, rax
mov r8d, ecx
and ecx, 0xf
and r8, 0xfffffffffffffff0
add r8, rcx
movzx ecx, byte [r8 + rdx]
mov byte [rax], cl
movzx ecx, byte [rdi + 1]
mov eax, ecx
and ecx, 0xf
and rax, 0xfffffffffffffff0
add rax, rcx
movzx eax, byte [rax + rdx]
mov byte [rbx + 1], al
movzx eax, byte [rdi + 2]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + rdx]
mov byte [rbx + 2], al
movzx eax, byte [rdi + 3]
mov ecx, eax
and eax, 0xf
and rcx, 0xfffffffffffffff0
add rcx, rax
movzx eax, byte [rcx + rdx]
mov rcx, rdi
mov byte [rbx + 3], al
call fcn.180001316
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180020df0
Capabilities:
Encode data using base64

Disassembly:
jmp 0x180020df0
push rsi
mov esi, edx
mov r11, rcx
test rcx, rcx
je 0x180020f48
test edx, edx
js 0x180020f48
test r8, r8
je 0x180020f32
mov qword [rsp + 0x10], rbx
mov ebx, edx
test edx, edx
jle 0x180020f27
mov qword [rsp + 0x18], rbp
mov ebp, 0x3d
mov qword [rsp + 0x20], rdi
mov rdi, qword [str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
cmp ebx, 3
jl 0x180020ea9
movzx ecx, byte [r11 + 1]
movzx r9d, byte [r11]
mov edx, ecx
movzx r10d, byte [r11 + 2]
mov eax, r9d
shr rax, 2
add r11, 3
shl r9, 4
movsx eax, byte [rax + rdi]
mov word [r8], ax
mov eax, ecx
shr rax, 4
mov ecx, r10d
or rax, r9
shr rcx, 6
and eax, 0x3f
movsx eax, byte [rax + rdi]
mov word [r8 + 2], ax
lea rax, [rdx*4]
or rcx, rax
and ecx, 0x3f
movsx eax, byte [rcx + rdi]
mov word [r8 + 4], ax
add r8, 6
mov eax, r10d
and eax, 0x3f
movsx eax, byte [rax + rdi]
mov word [r8], ax
jmp 0x180020f0e
movzx r9d, byte [r11]
inc r11
cmp ebx, 2
jne 0x180020ebe
movzx edx, byte [r11]
inc r11
jmp 0x180020ec0
xor dl, dl
movzx eax, r9b
shr rax, 2
movzx ecx, dl
shr rcx, 4
movsx eax, byte [rax + rdi]
mov word [r8], ax
movzx eax, r9b
shl rax, 4
or rcx, rax
and ecx, 0x3f
movsx eax, byte [rcx + rdi]
mov word [r8 + 2], ax
cmp ebx, 1
jne 0x180020ef7
mov eax, ebp
jmp 0x180020f01
movzx eax, dl
and eax, 0xf
movsx eax, byte [rdi + rax*4]
mov word [r8 + 4], ax
add r8, 6
mov word [r8], bp
sub ebx, 3
add r8, 2
test ebx, ebx
jg 0x180020e36
mov rdi, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
xor eax, eax
mov word [r8], ax
lea ecx, [rsi + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
pop rsi
ret
or eax, 0xffffffff
pop rsi
ret
Function at 0x180022550
Capabilities:
Read .ini file

Disassembly:
jmp 0x180022550
mov rax, rsp
push rbp
lea rbp, [rax - 0x1d8]
sub rsp, 0x2d0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1800b75c0]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1800029d7
nop
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x50]
call fcn.180002d29
lea rax, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rax, qword [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
lea r9, [rbp - 0x50]
lea r8, [0x180094208]
lea rdx, str.laststartdata
lea rcx, str.info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov qword [rsp + 0x50], 7
xor edi, edi
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
cmp word [rbp - 0x50], di
jne 0x1800225fe
mov r8d, edi
jmp 0x180022610
lea rax, [rbp - 0x50]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], di
jne 0x180022606
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x38]
call fcn.180003850
nop
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x58]
add eax, 0xfffff894
mov dword [rbp - 0x64], eax
lea eax, [rcx - 1]
mov dword [rbp - 0x68], eax
mov dword [rbp - 0x6c], edx
mov qword [rbp - 0x74], rdi
mov dword [rbp - 0x78], edi
lea rcx, [rbp - 0x78]
call fcn.180002dd3
mov rbx, rax
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rcx, qword [rsp + 0x38]
call fcn.180003c33
cmp eax, ebx
je 0x180022738
mov r8d, ebx
lea rdx, [0x18009603c]
lea rcx, [rbp - 0x78]
call fcn.180003a21
mov rbx, rax
lea rax, [rsp + 0x38]
cmp rax, rbx
je 0x1800226e5
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x1800226c4
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180004a93
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.1800041d3
nop
mov r8, qword [rbp - 0x60]
cmp r8, 8
jb 0x1800226ff
inc r8
mov rdx, qword [rbp - 0x78]
lea rcx, [rbp - 0x78]
call fcn.180004a93
lea r9, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae r9, qword [rsp + 0x68]
lea r8, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae r8, qword [rsp + 0x38]
lea rdx, str.laststartdata
lea rcx, str.info
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov bl, 1
jmp 0x18002273a
xor bl, bl
mov r8, qword [rsp + 0x50]
cmp r8, 8
jb 0x180022757
inc r8
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.180004a93
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
mov r8, qword [rbp - 0x80]
cmp r8, 8
jb 0x180022786
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.180004a93
movzx eax, bl
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.18000411a
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1800231f0
Capabilities:
Query service status
Start service

Disassembly:
jmp 0x1800231f0
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x50
mov rax, qword [0x1800b75c0]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0x20000000
xor bpl, bpl
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x180023311
mov r8d, 0x34
mov qword [rsp + 0x68], rdi
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x18002326a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x18002327a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x18002330c
cmp dword [rsp + 0x24], 1
jne 0x1800232f3
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov rcx, rdi
test eax, eax
je 0x180023264
lea rdx, [rsp + 0x20]
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x1800232f6
nop word [rax + rax]
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [rsp + 0x24], 4
je 0x1800232e1
inc ebx
cmp ebx, 0xa
je 0x1800232dc
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x1800232b0
jmp 0x1800232f6
xor bpl, bpl
jmp 0x1800232f6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bpl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movzx eax, bpl
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000411a
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop rsi
ret