joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400428b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1400429d2
lea r15, [0x140115b80]
mov r14d, 4
lea ebx, [r14 - 1]
cmp r8d, 2
jle 0x14004293f
movzx eax, byte [rsi + 1]
mov rdx, r14
movzx ecx, byte [rsi]
shl ecx, 8
or ecx, eax
movzx eax, byte [rsi + 2]
shl ecx, 8
or ecx, eax
mov eax, ecx
dec rdx
and eax, 0x3f
shr ecx, 6
mov al, byte [rax + r15]
mov byte [rsp + rdx + 0x48], al
test rdx, rdx
jg 0x140042909
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.14004125c
test eax, eax
jne 0x1400429a9
sub edi, ebx
add rsi, rbx
cmp edi, 2
jg 0x1400428f1
test edi, edi
jle 0x1400429d2
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x14004296d
mov edx, edi
mov r8d, edi
lea r9d, [rdx + 1]
movzx eax, byte [rsi]
inc rsi
shl ecx, 8
or ecx, eax
sub r8, 1
jne 0x140042958
cmp edx, ebx
jge 0x140042984
mov eax, ebx
sub eax, edx
mov r8d, eax
lea r9d, [rax + rdx]
inc r9d
shl ecx, 8
sub r8, 1
jne 0x14004297b
movsxd rdx, r9d
test r9d, r9d
jle 0x1400429a4
mov eax, ecx
dec rdx
and eax, 0x3f
shr ecx, 6
mov al, byte [rax + r15]
mov byte [rsp + rdx + 0x48], al
test rdx, rdx
jg 0x14004298c
movsxd rax, edi
jmp 0x1400429b9
mov eax, dword [rbp + 0x191c4]
jmp 0x1400429d4
mov byte [rsp + rbx + 0x48], 0x3d
dec rbx
cmp rbx, rax
jg 0x1400429b1
mov r8, r14
lea rdx, [rsp + 0x48]
mov rcx, rbp
call fcn.14004125c
test eax, eax
jne 0x1400429a9
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14004385c
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1d8
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
cmp dword [0x140181e0c], 0
mov dword [rcx + 0x191c8], 1
jne 0x1400438ab
mov ecx, 0x101
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400438a1
or eax, 0xffffffff
jmp 0x1400438ad
mov dword [0x140181e0c], 1
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x1d8
ret
Function at 0x14004cae4
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov ebx, r9d
mov rdi, rdx
mov rsi, rcx
test r8, r8
jne 0x14004cb40
lea r8d, [r9 + 2]
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx*4 + 1]
movsxd rdx, eax
call fcn.1400453a0
mov r8, rax
test rax, rax
jne 0x14004cb40
mov dword [rsi + 0x191c4], 0x10
jmp 0x14004cc3c
mov byte [r8], 0
mov rsi, r8
test rdi, rdi
jne 0x14004cb54
mov rax, r8
jmp 0x14004cc3c
lea r14, [0x140115b80]
mov r9d, 3
cmp ebx, 2
jle 0x14004cbbb
lea ecx, [rbx - 3]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
inc edx
imul eax, edx, 0xfffffffd
mov r10d, edx
add ebx, eax
movzx eax, byte [rdi + 1]
mov edx, 4
movzx ecx, byte [rdi]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdi + 2]
shl ecx, 8
or ecx, eax
mov eax, ecx
dec rdx
and eax, 0x3f
shr ecx, 6
mov al, byte [rax + r14]
mov byte [rdx + r8], al
test rdx, rdx
jg 0x14004cb96
add r8, 4
add rdi, r9
sub r10, 1
jne 0x14004cb7c
mov byte [r8], 0
test ebx, ebx
jle 0x14004cc39
xor ecx, ecx
xor edx, edx
test ebx, ebx
jle 0x14004cbea
mov edx, ebx
mov r10d, ebx
lea r11d, [rdx + 1]
movzx eax, byte [rdi]
inc rdi
shl ecx, 8
or ecx, eax
sub r10, 1
jne 0x14004cbd4
cmp edx, r9d
jge 0x14004cc02
mov eax, r9d
sub eax, edx
mov r10d, eax
lea r11d, [rax + rdx]
inc r11d
shl ecx, 8
sub r10, 1
jne 0x14004cbf9
movsxd rdx, r11d
test r11d, r11d
jle 0x14004cc22
mov eax, ecx
dec rdx
and eax, 0x3f
shr ecx, 6
mov al, byte [rax + r14]
mov byte [rdx + r8], al
test rdx, rdx
jg 0x14004cc0a
movsxd rcx, ebx
jmp 0x14004cc2f
mov byte [r9 + r8], 0x3d
dec r9
cmp r9, rcx
jg 0x14004cc27
mov byte [r8 + 4], 0
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140063da4
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
and qword [rcx + 8], 0
lea rax, vtable.NGDiscovery::CHttpQuery.0
and qword [rcx + 0x10], 0
xor r9d, r9d
and dword [rsp + 0x20], 0
movzx edi, r8w
mov rsi, rdx
mov qword [rcx], rax
mov rbx, rcx
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [0x14011b864]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 0x10], rax
test rax, rax
je 0x140063e26
and qword [rsp + 0x38], 0
xor r9d, r9d
and dword [rsp + 0x30], 0
movzx r8d, di
mov dword [rsp + 0x28], 3
mov rdx, rsi
and qword [rsp + 0x20], 0
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetConnectW]
mov qword [rbx + 8], rax
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140064c70
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x140
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r12d, r8d
mov rsi, rdx
mov r14, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea r15d, [r12 + rax]
mov byte [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xb1
lea rbx, str.NGIOStack::CHTTPClient::OpenSession
mov r9, rbx
lea r8, [0x140183080]
mov rdx, qword [0x1401830d0]
lea rcx, [rsp + 0x70]
call fcn.140003374
nop
mov rcx, qword [r14 + 0x100]
test rcx, rcx
je 0x140064e48
mov rax, qword [rcx]
call qword [rax + 0x98]
test rax, rax
je 0x140064dbf
mov rcx, qword [r14 + 0x100]
mov rax, qword [rcx]
call qword [rax + 0x98]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140009b90
nop
lea rcx, [rsp + 0x48]
call fcn.14000fd78
test al, al
je 0x140064db5
lea rcx, [0x14012a9b8]
call fcn.1400c2d80
mov r9, rax
xor r8d, r8d
lea rdx, [0x14012a9b8]
lea rcx, [rsp + 0x48]
call fcn.1400100a4
cmp rax, 0xffffffffffffffff
je 0x140064db5
mov r9, qword [rsp + 0x58]
sub r9, rax
mov r8, rax
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x48]
call fcn.140010058
mov rdi, rax
lea rbx, [r14 + 0x98]
cmp rbx, rax
je 0x140064da5
xor r8d, r8d
mov dl, 1
mov rcx, rbx
call fcn.140003bb4
mov rdx, rdi
mov rcx, rbx
call fcn.14000c4dc
nop
lea rcx, [rbp + 0x10]
call fcn.140003b4c
lea rbx, str.NGIOStack::CHTTPClient::OpenSession
lea rcx, [rsp + 0x48]
call fcn.140003b4c
mov rcx, qword [r14 + 0x100]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_getservbyport]
mov edi, eax
test eax, eax
je 0x140064e42
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, str._s_m_pIDeviceConnection__Open_returned_0x_08X
mov edx, 0x80
lea r8d, [rdx + 0x4a]
lea rcx, [rsp + 0x70]
call fcn.1400037a4
cmp edi, 0x83e8f4fb
je 0x140064e3b
cmp edi, 0x83e8f4fc
jne 0x140064e70
mov dword [rsp + 0x78], 0x83e8f5f4
test r12d, r12d
je 0x140064e60
mov ecx, Ordinal_203
call qword [sym.imp.KERNEL32.dll_Sleep]
test rsi, rsi
je 0x140064e42
mov rax, qword [rsi]
xor edx, edx
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test al, al
jne 0x140064e42
mov ebx, 0x83e8fffe
jmp 0x140064e4d
mov ebx, 0x83e8f5f3
jmp 0x140064e4d
mov ebx, dword [rsp + 0x78]
jmp 0x140064e51
mov ebx, 0x83e8f5fe
mov dword [rsp + 0x78], ebx
cmp ebx, 0x83e8f5f4
jne 0x140064e98
lea rbx, str.NGIOStack::CHTTPClient::OpenSession
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r15d
jae 0x140064e94
jmp 0x140064ced
cmp edi, 0x83e8f4fd
je 0x140064e8d
mov ebx, 0x83e8fff4
mov eax, 0x83e8f5fc
cmp edi, ebx
cmovne ebx, eax
mov dword [rsp + 0x78], ebx
jmp 0x140064e98
mov ebx, 0x83e8fffe
jmp 0x140064e87
mov ebx, dword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400034bc
mov eax, ebx
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400777bc
Capabilities:
Get file version info

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push r14
sub rsp, 0x30
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov r14, rdx
mov rbx, rcx
lea rax, vtable.NGUtils::AFileVersionInfo.0
mov qword [rcx], rax
lea rax, vtable.NGUtils::CFileVersionInfo.0
mov qword [rcx], rax
and dword [rcx + 0x10], 0
and qword [rcx + 0x18], 0
and qword [rcx + 0x20], 0
and qword [rcx + 8], 0
test rdx, rdx
je 0x1400778b2
and dword [rsp + 0x60], 0
lea rdx, [r11 + 0x18]
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
mov dword [rsp + 0x68], esi
test eax, eax
je 0x1400778b2
mov ecx, esi
call fcn.1400b9fe0
mov qword [rbx + 0x18], rax
jmp 0x140077848
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x1400778b2
mov r8d, esi
mov edx, dword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x1400778b2
and dword [rsp + 0x58], 0
and dword [rsp + 0x68], 0
lea r8, [rbx + 0x20]
lea r9, [rsp + 0x58]
lea rdx, str.VarFileInfoTranslation
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140077897
mov eax, dword [rsp + 0x58]
shr eax, 2
mov dword [rbx + 0x10], eax
lea r8, [rbx + 8]
lea r9, [rsp + 0x68]
lea rdx, [0x140116084]
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.VERSION.dll_VerQueryValueW]
nop
mov rax, rbx
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140078cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
mov ecx, 0xfa00
call fcn.1400b9fe0
mov rdi, rax
xor r14d, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x40], 7
mov qword [rsp + 0x38], r14
mov word [rsp + 0x28], r14w
cmp word [str.__], r14w
jne 0x140078d48
mov eax, r14d
jmp 0x140078d54
lea rcx, str.__
call fcn.1400c2d80
mov r8, rax
lea rdx, str.__
lea rcx, [rsp + 0x28]
call fcn.140003a2c
nop
mov r9d, 2
cmp qword [rbx + 0x10], r9
jbe 0x140078dc3
xor r8d, r8d
lea rdx, [rsp + 0x48]
mov rcx, rbx
call fcn.140010058
nop
lea rdx, [0x140130b94]
mov rcx, rax
call fcn.14000d6c0
test eax, eax
sete sil
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140003bb4
test sil, sil
je 0x140078dc3
xor r8d, r8d
lea rdx, [0x140114e10]
lea rcx, [rsp + 0x28]
call fcn.140003a2c
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400041fc
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
xor r9d, r9d
mov r8, rdi
mov edx, 0x7d00
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
dec eax
cmp eax, 0x7cfe
ja 0x140078e07
mov rcx, rdi
jmp 0x140078e18
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
mov rcx, rdi
call fcn.1400b9b24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.140003bb4
cmp ebx, 0xffffffff
jne 0x140078e41
xor al, al
jmp 0x140078e50
test bl, 0x10
je 0x140078e4a
xor al, al
jmp 0x140078e50
mov al, 1
jmp 0x140078e50
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x1400791e8
Capabilities:
Create directory

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rbp + 0x10], rax
xor ebx, ebx
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x180
lea r9, str.NGUtils::CFileUtils::CreateDirectoryW
lea r8, [0x140183c00]
mov rdx, qword [0x140182210]
lea rcx, [rsp + 0x70]
call fcn.140003374
nop
mov sil, bl
mov r14d, ebx
lea rdi, [0x1401826e0]
test sil, sil
jne 0x1400793c7
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
cmp word [str.__], bx
jne 0x140079291
mov rax, rbx
jmp 0x14007929d
lea rcx, str.__
call fcn.1400c2d80
mov r8, rax
lea rdx, str.__
lea rcx, [rsp + 0x48]
call fcn.140003a2c
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.1400041fc
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 1
sete sil
call qword [sym.imp.KERNEL32.dll_GetLastError]
test sil, sil
jne 0x140079351
cmp eax, 0xb7
je 0x1400793ac
mov edx, 0x80
cmp eax, 5
jne 0x14007936e
mov rcx, rdi
cmp qword [0x1401826f8], 8
cmovae rcx, qword [0x1401826e0]
mov dword [rsp + 0x30], eax
mov rax, qword [0x1401826f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, str.::CreateDirectory__s__len_d___error_d._Sleeping_...
mov r8d, 0x199
lea rcx, [rsp + 0x70]
call fcn.1400037a4
mov ecx, 0xfa
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140003bb4
inc r14d
cmp r14d, 2
jae 0x1400793c7
jmp 0x14007925d
cmp qword [0x1401826f8], 8
cmovae rdi, qword [0x1401826e0]
mov dword [rsp + 0x30], eax
mov rax, qword [0x1401826f0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, str.::CreateDirectory__s__len_d___error_d
mov r8d, 0x19e
lea rcx, [rsp + 0x70]
call fcn.1400037a4
jmp 0x1400793b6
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140003bb4
jmp 0x1400793ca
mov bl, sil
lea rcx, [rsp + 0x70]
call fcn.1400034bc
mov al, bl
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140079400
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, rcx
mov byte [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1ac
lea r9, str.NGUtils::CFileUtils::DeleteFileW
lea r8, [0x140183c00]
mov rdx, qword [0x140182210]
lea rcx, [rsp + 0x50]
call fcn.140003374
nop
cmp qword [rbx + 0x18], 8
jb 0x14007946f
mov rcx, qword [rbx]
jmp 0x140079472
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
je 0x140079532
mov sil, 1
test sil, dil
je 0x1400794e4
and edi, 0xfffffffe
cmp qword [rbx + 0x18], 8
jb 0x14007949a
mov rcx, qword [rbx]
jmp 0x14007949d
mov rcx, rbx
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400794e4
cmp qword [rbx + 0x18], 8
jb 0x1400794b3
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
lea r9, str.::SetFileAttributes__s__0x_X___error_d
mov edx, 0x80
mov r8d, 0x1bb
lea rcx, [rsp + 0x50]
call fcn.1400037a4
jmp 0x140079532
cmp qword [rbx + 0x18], 8
jb 0x1400794f0
mov rcx, qword [rbx]
jmp 0x1400794f3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140079535
cmp qword [rbx + 0x18], 8
jb 0x140079507
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
lea r9, str.::DeleteFile__s___error_d
mov edx, 0x80
mov r8d, 0x1c2
lea rcx, [rsp + 0x50]
call fcn.1400037a4
xor sil, sil
lea rcx, [rsp + 0x50]
call fcn.1400034bc
mov al, sil
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400b9f80
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14007bc38
Capabilities:
Modify service

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x120
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov rbx, rcx
mov byte [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xec
lea r9, str.NGUtils::CServiceControl::DoEnableSvc
lea r8, [0x140183ca0]
mov rdx, qword [0x140182210]
lea rcx, [rsp + 0x70]
call fcn.140003374
nop
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14007bcd8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.OpenSCManager_failed___d__n
mov edx, 0x80
lea r8d, [rdx + 0x76]
lea rcx, [rsp + 0x70]
call fcn.1400037a4
jmp 0x14007bdb7
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14007bd1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.OpenService_failed___d__n
mov edx, 0x80
mov r8d, 0x102
lea rcx, [rsp + 0x70]
call fcn.1400037a4
jmp 0x14007bdad
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
or edx, 0xffffffff
mov r9d, edx
mov r8d, 3
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14007bd88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
lea r9, str.ChangeServiceConfig_failed___d__n
mov edx, 0x80
mov r8d, 0x116
lea rcx, [rsp + 0x70]
call fcn.1400037a4
jmp 0x14007bda4
lea r9, str.Service_enabled_successfully._n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x118
lea rcx, [rsp + 0x70]
call fcn.1400037a4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
lea rcx, [rsp + 0x70]
call fcn.1400034bc
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400b9f80
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret
Function at 0x1400863e4
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
cmp dword [rcx + 0x138], 0
mov r11, rcx
mov rax, qword [rsp + 0x70]
je 0x14008642c
mov rcx, qword [0x14017ad00]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
mov r9, rdx
mov rdx, qword [r11 + 0x140]
mov r10, qword [rcx]
mov dword [rsp + 0x20], r8d
mov r8b, byte [r11 + 0x149]
call qword [r10 + 0x60]
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x30]
mov qword [rsp + 0x70], rax
add rsp, 0x48
jmp qword [sym.imp.KERNEL32.dll_WriteFile]

Function at 0x140086440
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
cmp dword [rcx + 0x138], 0
mov r11, rcx
mov rax, qword [rsp + 0x70]
je 0x140086488
mov rcx, qword [0x14017ad00]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r9
mov r9, rdx
mov rdx, qword [r11 + 0x140]
mov r10, qword [rcx]
mov dword [rsp + 0x20], r8d
mov r8b, byte [r11 + 0x148]
call qword [r10 + 0x58]
add rsp, 0x48
ret
mov rcx, qword [rcx + 0x30]
mov qword [rsp + 0x70], rax
add rsp, 0x48
jmp qword [sym.imp.KERNEL32.dll_ReadFile]
Function at 0x140086fd0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1058
call fcn.1400b9f10
sub rsp, rax
mov rax, qword [0x14017a140]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov rdx, rcx
mov dword [rsp + 0x20], 0x100
lea rcx, [rsp + 0x30]
mov r9d, 0x20
xor r8d, r8d
call fcn.1400e9ab0
test eax, eax
je 0x14008702d
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x1058
ret
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov qword [rsp + 0x1068], rbx
lea ecx, [rdx - 0xf]
call fcn.1400bef44
mov rbx, rax
test rax, rax
je 0x140087072
mov ecx, 0x20
mov dword [rax + 0xc], 0x20
mov dword [rax + 8], 0
call fcn.1400bedb8
mov qword [rbx], rax
test rax, rax
jne 0x14008707b
mov rcx, rbx
call fcn.1400bedb0
or rax, 0xffffffffffffffff
jmp 0x140087151
mov ecx, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x1050], rdi
call fcn.1400dbbcc
mov edi, eax
test eax, eax
jle 0x140087128
mov qword [rsp + 0x1070], rsi
nop dword [rax]
mov esi, dword [rbx + 0xc]
mov ecx, esi
mov eax, dword [rbx + 8]
sub ecx, eax
cmp ecx, edi
jg 0x1400870e4
lea ecx, [rax + 8]
add esi, esi
add ecx, edi
cmp esi, ecx
jg 0x1400870ce
lea esi, [rax + 8]
add esi, edi
mov rcx, qword [rbx]
movsxd rdx, esi
call fcn.1400ee084
test rax, rax
je 0x140087106
mov dword [rbx + 0xc], esi
mov qword [rbx], rax
movsxd rcx, dword [rbx + 8]
lea rdx, [rsp + 0x40]
add rcx, qword [rbx]
movsxd r8, edi
call fcn.1400bb850
add dword [rbx + 8], edi
movsxd rcx, dword [rbx + 8]
mov rax, qword [rbx]
mov byte [rcx + rax], 0
mov ecx, dword [rsp + 0x30]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
call fcn.1400dbbcc
mov edi, eax
test eax, eax
jg 0x1400870b0
mov rsi, qword [rsp + 0x1070]
mov ecx, dword [rsp + 0x30]
call fcn.1400e2ac0
mov rcx, qword [rbx]
test edi, edi
jns 0x140087171
call fcn.1400bedb0
mov rcx, rbx
call fcn.1400bedb0
or rax, 0xffffffffffffffff
mov rdi, qword [rsp + 0x1050]
mov rbx, qword [rsp + 0x1068]
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400b9f80
add rsp, 0x1058
ret
call fcn.140087d20
mov rcx, qword [rbx]
mov rdi, rax
call fcn.1400bedb0
mov rcx, rbx
call fcn.1400bedb0
mov rax, rdi
jmp 0x140087149
Function at 0x14008af90
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14008afbe
mov r8, rdx
mov rdx, qword [rbx]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14008bf10
cmp byte [0x14017f948], 0
jne 0x14008b009
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008aff9
lea rdx, [0x1400fb590]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14017f940], rax
mov byte [0x14017f948], 1
jmp 0x14008b010
mov rax, qword [0x14017f940]
mov byte [0x14017f948], 1
jmp 0x14008b010
mov rax, qword [0x14017f940]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14008b02f
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14008bf84
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008bfa6
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14008bfa6
mov rcx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rcx + 8], 0
je 0x14008bfa6
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov eax, 1
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret