joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e030
Capabilities:
Delete file

Disassembly:
push rbx
push rsi
push r12
push r15
sub rsp, 0x168
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r12d, r12d
mov rsi, r8
mov rbx, rdx
mov r15, rcx
test rcx, rcx
je 0x14000e1ca
test rdx, rdx
je 0x14000e1ca
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x150], r13
mov dword [rsp + 0x20], 1
call fcn.14000db70
mov r13, rax
test rax, rax
je 0x14000e1bd
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], r12b
call fcn.14010da60
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140009b50
test eax, eax
je 0x14000e1ae
lea r8, [rsp + 0x30]
lea rdx, [0x1401eaf30]
lea ecx, [r12 + 4]
mov qword [rsp + 0x160], rbp
call fcn.1400729c0
mov rbp, rax
test rax, rax
je 0x14000e194
mov rax, qword [rax]
lea edx, [r12 + 0x40]
mov rcx, rbp
mov qword [rsp + 0x158], rdi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rdx, qword [rbp + 0xb0]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rdx + 0x6738]
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x158]
not rcx
dec rcx
cmp rcx, 0x10
jne 0x14000e186
lea rcx, [rdx + 0x684d]
movzx eax, byte [rcx]
inc rbx
inc rcx
mov byte [rbx - 1], al
test al, al
jne 0x14000e131
mov rcx, qword [rbp + 0xb0]
add rcx, 0x6749
nop
movzx eax, byte [rcx]
inc rsi
inc rcx
mov byte [rsi - 1], al
test al, al
jne 0x14000e150
mov rdx, qword [rbp + 0xb0]
mov r8d, 0x10
mov rcx, r15
add rdx, 0x6738
call fcn.14010d5f0
mov byte [r15 + 0x10], r12b
mov r12d, 1
mov rax, qword [rbp]
mov edx, 1
mov rcx, rbp
call qword [rax]
cmp dword [rsp + 0x20], 0
mov rbp, qword [rsp + 0x160]
je 0x14000e1bd
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [rsp + 0x20], 0
je 0x14000e1bd
mov rcx, r13
call fcn.140085540
mov r13, qword [rsp + 0x150]
mov eax, r12d
jmp 0x14000e1cc
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14010d170
add rsp, 0x168
pop r15
pop r12
pop rsi
pop rbx
ret
Function at 0x14000e1f0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edi, edi
mov rbx, rcx
test rcx, rcx
jne 0x14000e220
xor eax, eax
jmp 0x14000e313
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x168], rbp
mov dword [rsp + 0x20], 1
call fcn.14000db70
mov rbp, rax
test rax, rax
je 0x14000e309
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], dil
call fcn.14010da60
lea rdx, [rsp + 0x30]
mov rcx, rbp
call fcn.140009b50
test eax, eax
je 0x14000e2fa
lea r8, [rsp + 0x30]
lea rdx, [0x1401eaf30]
mov ecx, 4
mov qword [rsp + 0x170], rsi
call fcn.1400729c0
mov rsi, rax
test rax, rax
je 0x14000e2e0
mov rax, qword [rax]
mov edx, 1
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov r11, qword [rsi + 0xb0]
add r11, 0x14a8
nop word [rax + rax]
movzx eax, byte [r11]
inc rbx
inc r11
mov byte [rbx - 1], al
test al, al
jne 0x14000e2c0
mov rax, qword [rsi]
mov edi, 1
mov rcx, rsi
mov edx, edi
call qword [rax]
cmp dword [rsp + 0x20], 0
mov rsi, qword [rsp + 0x170]
je 0x14000e309
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [rsp + 0x20], 0
je 0x14000e309
mov rcx, rbp
call fcn.140085540
mov rbp, qword [rsp + 0x168]
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x178]
add rsp, 0x150
pop rdi
ret
Function at 0x14000e340
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x20]
xor edi, edi
mov dword [rsp + 0x20], 1
call fcn.14000db70
mov rsi, rax
test rax, rax
je 0x14000e589
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], dil
call fcn.14010da60
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.140009b50
test eax, eax
je 0x14000e57a
lea r8, [rsp + 0x30]
lea rdx, [0x1401eaf30]
lea ecx, [rdi + 4]
mov qword [rsp + 0x160], rbx
call fcn.1400729c0
mov rbx, rax
test rax, rax
je 0x14000e560
mov rax, qword [rax]
mov edx, 0x401
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp dword [0x1402c0968], edi
jne 0x14000e3fc
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69b8]
mov dword [0x1402c0968], ecx
cmp dword [0x1402c0744], edi
jne 0x14000e417
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69e4]
mov dword [0x1402c0744], ecx
cmp dword [0x1402c0854], edi
jne 0x14000e432
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69e8]
mov dword [0x1402c0854], ecx
mov rax, qword [rbx + 0xb0]
lea rdx, [0x1402c1ca0]
mov ecx, dword [rax + 0x69c0]
mov dword [0x1402b9110], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69c4]
mov dword [0x1402b9114], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69c8]
mov dword [0x1402b9118], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69cc]
mov dword [0x1402b911c], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69d4]
mov dword [0x1402c0414], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69d8]
mov dword [0x1402b9128], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69dc]
mov dword [0x1402b912c], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x69e0]
mov dword [0x1402c0634], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x6a00]
mov dword [0x1402c0b84], ecx
mov rcx, qword [rbx + 0xb0]
add rcx, 0x6a04
movzx eax, byte [rcx]
inc rdx
inc rcx
mov byte [rdx - 1], al
test al, al
jne 0x14000e4f2
mov rax, qword [rbx + 0xb0]
mov edx, 1
mov ecx, dword [rax + 0x69b4]
mov dword [0x1402c0a78], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x9cac]
mov dword [0x1402b9108], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x9cb0]
mov dword [0x1402b910c], ecx
mov rax, qword [rbx + 0xb0]
mov ecx, dword [rax + 0x9ca8]
mov dword [0x1402b9124], ecx
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov edi, 1
cmp dword [rsp + 0x20], 0
mov rbx, qword [rsp + 0x160]
je 0x14000e589
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [rsp + 0x20], 0
je 0x14000e589
mov rcx, rsi
call fcn.140085540
mov eax, edi
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14010d170
mov rsi, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret
Function at 0x1400142b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rbp + 0x80], rax
lea rax, [rsp + 0x58]
xor esi, esi
mov rbx, rcx
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x60]
lea rdx, str.SOFTWARENetscapeNetscape_NavigatorUsers
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x140014459
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, str.CurrentUser
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14001444e
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
xor r9d, r9d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], esi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x14001444e
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
lea rdx, str.DirRoot
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x50], 0x104
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x70], sil
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140014443
mov qword [rsp + 0x1a8], rdi
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
mov rdi, qword [rsp + 0x1a8]
not rcx
dec rcx
je 0x140014443
lea rax, [rsp + 0x70]
lea rcx, [rsp + 0x70]
sub rbx, rax
nop dword [rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rbx + rcx - 1], al
test al, al
jne 0x140014430
mov esi, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140014540
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x2b0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x2e0], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov byte [rcx], bl
mov byte [rdx], bl
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov r12d, 1
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftInternet_Account_Manager
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400146fc
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0x104
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Default_Mail_Account
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400146f0
lea r8, [rsp + 0x80]
lea rdx, str.Accounts_s
lea rcx, [rsp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x40], r11
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x190]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1400146f0
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0x104
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.SMTP_Server
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1400146e5
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x54], 0x104
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.SMTP_Email_Address
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmove ebx, r12d
mov dword [rsp + 0x58], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, ebx
jmp 0x140014704
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x2b0
pop r12
pop rdi
pop rsi
ret
Function at 0x140014e20
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x180
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov qword [rsp + 0x48], rdx
mov r15, rcx
xor ebx, ebx
lea rcx, [rsp + 0x60]
call fcn.140014730
test eax, eax
jne 0x140014e80
lea rcx, [rsp + 0x60]
call fcn.1400142b0
test eax, eax
je 0x140014fbe
lea rcx, [rsp + 0x60]
call fcn.1400c9bc0
lea rdi, [rsp + 0x60]
xor eax, eax
or rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov rax, qword [str.prefs.js]
mov qword [rdi - 1], rax
movzx eax, byte [0x1401ecae0]
mov byte [rdi + 7], al
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x140014fbe
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, eax
cmp eax, 0xffffffff
je 0x140014fbe
lea ecx, [r12 + 1]
mov edi, ecx
call fcn.1400854f0
mov rsi, rax
lea r14, [rax + r12]
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.14010da60
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
mov r8d, r12d
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014fac
cmp dword [rsp + 0x44], r12d
jne 0x140014fac
mov rcx, rsi
call fcn.140115670
lea rdx, str.network.hosts.smtp_server
mov rcx, rsi
call fcn.14010d30c
test rax, rax
je 0x140014fac
mov r9d, 0x104
mov r8, r15
mov rdx, r14
lea rcx, [rax + 0x1a]
call fcn.140014480
test rax, rax
je 0x140014fac
lea rdx, str.mail.identity.useremail
mov rcx, rsi
call fcn.14010d30c
test rax, rax
je 0x140014fac
mov r9d, 0x104
mov r8, qword [rsp + 0x48]
mov rdx, r14
lea rcx, [rax + 0x18]
call fcn.140014480
test rax, rax
mov eax, 1
cmovne ebx, eax
mov dword [rsp + 0x40], ebx
mov rcx, rsi
call fcn.140085540
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, ebx
jmp 0x140014fc6
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400170b0
Capabilities:
Enumerate services

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rsi, rcx
call fcn.140016f40
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x1400172de
xor edi, edi
mov dword [rsp + 0x44], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x48], edi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x30
lea r9, [rsp + 0x60]
lea edx, [rdi + 0x3b]
lea r8d, [rdi + 3]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
test eax, eax
jne 0x1400172d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x1400172d5
mov ebx, dword [rsp + 0x44]
add ebx, 0x30
mov ecx, ebx
mov eax, 0x30
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14010a204
mov r15, rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, r15
lea edx, [rdi + 0x3b]
lea r8d, [rdi + 3]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
mov r12d, edi
cmp dword [rsp + 0x40], edi
jbe 0x1400172cd
mov rbp, r15
nop dword [rax]
mov rdi, qword [rbp + 8]
mov rbx, qword [rbp]
mov ecx, 0x400
call fcn.1400854f0
mov r11, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140017246
mov rdx, rax
sub rdx, rdi
nop word [rax + rax]
movzx ecx, word [rdi]
mov word [rdx + rdi], cx
add rdi, 2
test cx, cx
jne 0x140017210
mov rcx, rax
sub rcx, rbx
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rcx + rbx + 0x200], ax
add rbx, 2
test ax, ax
jne 0x140017230
jmp 0x140017249
xor r11d, r11d
mov qword [rsp + 0x50], r11
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x50]
cmp rcx, rax
jae 0x140017291
mov rcx, qword [rsi]
lea rdx, [rsp + 0x50]
cmp rcx, rdx
ja 0x140017291
lea rbx, [rsp + 0x50]
sub rbx, rcx
sar rbx, 3
cmp rax, qword [rsi + 0x10]
jne 0x140017288
mov edx, 1
mov rcx, rsi
call fcn.140016ec0
mov rax, qword [rsi]
lea r8, [rax + rbx*8]
jmp 0x1400172a9
cmp rax, qword [rsi + 0x10]
jne 0x1400172a4
mov edx, 1
mov rcx, rsi
call fcn.140016ec0
lea r8, [rsp + 0x50]
mov rdx, qword [rsi + 8]
lea rcx, [rsi + 0x18]
call fcn.140016b80
add qword [rsi + 8], 8
inc r12d
add rbp, 0x30
cmp r12d, dword [rsp + 0x40]
jb 0x1400171e0
mov rcx, r15
call fcn.14010d304
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0xa0]
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 0x14001a2e0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov rsi, rdx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
test rdx, rdx
je 0x14001a3ab
test r8, r8
je 0x14001a3ab
mov qword [rsp + 0x28], rbx
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x14001a373
lea rcx, str.secur32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x14001a373
lea rdx, str.GetUserNameExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001a373
lea r8, [rsp + 0x60]
mov rdx, rsi
mov ecx, 2
call rax
movzx edi, al
mov dword [rsp + 0x20], edi
test al, al
jne 0x14001a387
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, eax
mov dword [rsp + 0x20], eax
jmp 0x14001a392
test rbx, rbx
je 0x14001a3a1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
jmp 0x14001a3a7
mov eax, edi
jmp 0x14001a3ad
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140029e70
Capabilities:
Get hostname

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x160
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r13, rdx
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
test rcx, rcx
jne 0x140029eba
xor eax, eax
jmp 0x14002a06f
mov rcx, qword [rdx + 0xb0]
add rcx, 0x9680
cmp byte [rcx], 0
je 0x140029eea
nop dword [rax]
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
test al, al
jne 0x140029ed0
mov r12d, 1
jmp 0x14002a05f
mov r12d, 1
mov dword [rsp + 0x34], 0x104
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov r11d, esi
mov dword [rsp + 0x30], esi
nop
mov r8d, r11d
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
dec rcx
cmp r8, rcx
jae 0x140029f55
movsx ecx, byte [rsp + r8 + 0x40]
add ecx, r11d
mov eax, 0x51eb851f
mul ecx
shr edx, 3
imul edx, edx, 0x19
sub ecx, edx
add ecx, 0x41
mov byte [rsp + r8 + 0x40], cl
inc r11d
mov dword [rsp + 0x30], r11d
jmp 0x140029f10
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
dec rcx
movzx eax, byte [rsp + 0x48]
cmp rcx, 8
cmova eax, esi
mov byte [rsp + 0x48], al
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x40]
repne scasb al, byte [rdi]
not rcx
dec rcx
je 0x14002a043
mov rax, qword [0x1402b9cc8]
mov qword [rsp + 0x28], rax
lea rdx, [0x140202938]
lea rcx, [rsp + 0x28]
call fcn.1400ca830
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x28]
call fcn.1400ca830
mov rdx, qword [rsp + 0x28]
mov r8, qword [rdx - 0x10]
cmp r8, 6
jle 0x140029fdd
add r8, 0xfffffffffffffffa
mov edx, 6
lea rcx, [rsp + 0x28]
call fcn.1400cb630
lea rdx, [0x140202934]
lea rcx, [rsp + 0x28]
call fcn.1400ca830
lea rcx, [rsp + 0x28]
call fcn.1400cacc0
mov rdx, qword [rsp + 0x28]
mov rcx, rdx
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
test al, al
jne 0x14002a000
mov rcx, qword [r13 + 0xb0]
add rcx, 0x9680
nop dword [rax]
movzx eax, byte [rdx]
mov byte [rcx], al
inc rdx
inc rcx
test al, al
jne 0x14002a020
mov esi, r12d
mov dword [rsp + 0x20], r12d
lea rcx, [rsp + 0x28]
call fcn.1400ca400
jmp 0x14002a067
test r12d, r12d
je 0x14002a067
lea rcx, str.xsrmod32
nop
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
test al, al
jne 0x14002a050
mov dword [rsp + 0x20], r12d
mov esi, r12d
jmp 0x14002a06d
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14010d170
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x14002b900
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x70
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x88], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov rcx, qword [rcx + 0x390]
test rcx, rcx
je 0x14002b9cd
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
lea r8d, [rbx + 0x1c]
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x390]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
mov dword [rsp + 0x30], eax
test eax, eax
je 0x14002b9cd
cmp dword [rsp + 0x34], 0x1c
jne 0x14002b9cd
cmp dword [rsp + 0x44], 0xff23ff24
jne 0x14002b9cd
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rdx, [rsp + 0x44]
or ecx, 0xffffffff
call fcn.140090280
cmp dword [rsp + 0x40], eax
jne 0x14002b9cd
cmp dword [rsp + 0x50], 0
je 0x14002b9cd
xor edx, edx
mov rcx, qword [rdi + 0x390]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [rsp + 0x54]
add rcx, 0x1c
mov eax, eax
xor ebx, ebx
cmp rax, rcx
setae bl
mov dword [rsp + 0x30], ebx
mov eax, ebx
jmp 0x14002b9d5
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14002bdc0
Capabilities:
Get hostname

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x390
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x3c0], rbx
mov rax, qword [0x1402ba4e0]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov r12, rdx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x34], 1
test rdx, rdx
je 0x14002be34
mov rcx, qword [rdx + 0xb0]
add rcx, 0x9784
cmp byte [rcx], 0
je 0x14002be34
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rbx], al
inc rcx
inc rbx
test al, al
jne 0x14002be20
jmp 0x14002bfaf
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x40], rax
xor edx, edx
mov r8d, 0x104
lea rcx, [rsp + 0x60]
call fcn.14010da60
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x170]
call fcn.14010da60
lea rsi, [0x140202e08]
mov rcx, rsi
lea rdx, [rsp + 0x60]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [rdx], al
inc rcx
inc rdx
test al, al
jne 0x14002be80
mov dword [rsp + 0x30], 0x104
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
dec rcx
jne 0x14002bed0
lea rdx, [rsp + 0x60]
movzx eax, byte [rsi]
mov byte [rdx], al
inc rsi
inc rdx
test al, al
jne 0x14002bec1
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
repne scasb al, byte [rdi]
not rcx
lea rdx, [rcx - 1]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x208
lea r8, [rsp + 0x170]
lea rcx, [rsp + 0x60]
call fcn.1400ae470
lea rdx, [0x140202e18]
lea rcx, [rsp + 0x170]
call fcn.14010d30c
mov qword [rsp + 0x38], rax
test rax, rax
je 0x14002bf27
mov byte [rax], 0
lea rdi, [rsp + 0x170]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x170]
call fcn.140115670
movzx eax, byte [rdi]
test al, al
je 0x14002bf65
cmp al, 0x61
jl 0x14002bf50
cmp al, 0x7a
jle 0x14002bf5b
cmp al, 0x30
jl 0x14002bf58
cmp al, 0x39
jle 0x14002bf5b
mov byte [rdi], 0x6d
inc rdi
mov qword [rsp + 0x38], rdi
jmp 0x14002bf41
mov byte [rsp + 0x174], 0
lea r8, [rsp + 0x170]
lea rdx, str.ms_swin
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfA]
mov byte [rbx + 0xc], 0
mov rdx, qword [r12 + 0xb0]
add rdx, 0x9784
nop dword [rax + rax]
movzx ecx, byte [rbx]
mov byte [rdx], cl
inc rbx
inc rdx
test cl, cl
jne 0x14002bfa0
mov eax, 1
jmp 0x14002bfba
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.14010d170
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x390
pop r12
pop rdi
pop rsi
ret