joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003826c
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xa8]
sub rsp, 0x1a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rsi, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x70]
call fcn.1400fecb0
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea r8d, [rbx + 7]
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
lea rdx, str.Unknown
lea rcx, [rsp + 0x28]
call fcn.14000fde0
nop
mov r9d, 0x80
lea r8, [rbp - 0x70]
lea edx, [rbx + 3]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x140038330
cmp word [rbp - 0x70], bx
je 0x14003831f
lea rcx, [rbp - 0x70]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140038313
mov rbx, rax
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x28]
call fcn.14000fde0
lea r8, [rsp + 0x28]
lea rdx, str.15_0___
lea rcx, [rsp + 0x68]
call fcn.140010318
nop
lea r8, [0x14049f22c]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140010408
nop
lea rbx, [rsi + 0xd8]
mov rdi, qword [rbx]
mov r9, rax
mov r8, qword [rdi + 8]
mov rdx, rdi
mov rcx, rbx
call fcn.140023b24
mov rdx, rax
mov rax, qword [rbx + 8]
movabs rcx, 0x555555555555554
sub rcx, rax
cmp rcx, 1
jae 0x14003839f
lea rcx, str.list_T__too_long
call fcn.1400df1fc
int3
inc rax
mov qword [rbx + 8], rax
mov qword [rdi + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.14000f964
lea rcx, [rsi + 0x168]
lea rax, [rsp + 0x28]
cmp rcx, rax
je 0x1400383f3
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x28]
call fcn.14000ff84
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.14000f964
xor eax, eax
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14003e614
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14003e791
cmp byte [rcx + 0x72], 0
je 0x14003e791
mov rax, qword [rcx]
mov edi, 0xffff
mov edx, edi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
cmp di, ax
jne 0x14003e672
xor al, al
jmp 0x14003e793
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
and qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x30]
call fcn.14003477c
nop
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
lea rdx, [rbp - 0x30]
cmp r9, 0x10
cmovae rdx, r10
lea r8, [rbp - 0x30]
cmovae r8, r10
mov rcx, qword [rbx + 0x68]
mov r10, qword [rcx]
mov r9, qword [rbp - 0x20]
add r9, rdx
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [rbx + 0x74]
call qword [r10 + 0x40]
test eax, eax
je 0x14003e6e4
sub eax, 1
jne 0x14003e755
jmp 0x14003e6e8
mov byte [rbx + 0x72], 0
lea rax, [rbp - 0x30]
mov r10, qword [rbp - 0x30]
mov r9, qword [rbp - 0x18]
cmp r9, 0x10
cmovae rax, r10
mov rdi, qword [rbp - 0x40]
sub rdi, rax
je 0x14003e732
lea rcx, [rbp - 0x30]
cmp r9, 0x10
cmovae rcx, r10
mov r9, qword [rbx + 0x80]
mov r8, rdi
mov edx, 1
call fcn.140114644
cmp rdi, rax
jne 0x14003e75a
mov r9, qword [rbp - 0x18]
mov r10, qword [rbp - 0x30]
cmp byte [rbx + 0x72], 0
je 0x14003e75e
test rdi, rdi
jne 0x14003e6a6
xor r8d, r8d
lea edx, [rdi + 8]
lea rcx, [rbp - 0x30]
call fcn.140015cd4
jmp 0x14003e69e
sub eax, 2
je 0x14003e75e
xor bl, bl
jmp 0x14003e760
mov bl, 1
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x14003e77c
inc rdx
mov r8d, 1
mov rcx, qword [rbp - 0x30]
call fcn.140011374
mov qword [rbp - 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
and qword [rbp - 0x20], 0
mov byte [rbp - 0x30], 0
mov al, bl
jmp 0x14003e793
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400400bc
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x58]
sub rsp, 0x140
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov r14, r8
mov rsi, rdx
xor ebx, ebx
mov dword [rbp + 0x20], ebx
xor eax, eax
mov qword [rbp + 0x24], rax
mov qword [rbp + 0x2c], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbx
lea edi, [rbx + 7]
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov word [rsp + 0x28], bx
xor r8d, r8d
lea rdx, [0x140494870]
lea rcx, [rsp + 0x28]
call fcn.14000fde0
nop
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x48], bx
lea r8d, [rbx + 1]
lea rdx, [0x1404990d8]
lea rcx, [rsp + 0x48]
call fcn.14000fde0
nop
mov dword [rsi], ebx
xor edx, edx
mov r8d, 0xac
lea rcx, [rsp + 0x70]
call fcn.1400fecb0
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
or rdi, 0xffffffffffffffff
cmp eax, 0xffffffff
jne 0x14004018c
mov dword [rsi], edi
cmp dword [rsi], edi
je 0x1400401dc
mov edx, dword [rsp + 0x70]
mov dword [rsi], edx
mov eax, ebx
lea r8, [0x1405b9270]
mov rcx, r8
cmp edx, dword [rcx]
je 0x1400401b3
inc eax
add rcx, 0x28
cmp eax, 0x22
jb 0x1400401a2
jmp 0x1400401dc
lea rdx, [rax*4 + 1]
add rdx, rax
lea rdx, [r8 + rdx*8]
lea rax, [rsp + 0x28]
cmp rax, rdx
je 0x1400401dc
mov r9, rdi
xor r8d, r8d
lea rcx, [rsp + 0x28]
call fcn.14000ff84
mov r9d, 0xa
lea r8, [rbp + 0x20]
lea edx, [r9 + 0x50]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x14004020d
xor r8d, r8d
lea rdx, [0x1402208bc]
mov rcx, r14
call fcn.14000fde0
jmp 0x140040256
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], 8
cmovae rcx, qword [rsp + 0x28]
lea rdx, [rbp + 0x20]
call fcn.1400ff6b8
test rax, rax
setne sil
cmp word [rbp + 0x20], bx
je 0x140040244
lea rax, [rbp + 0x20]
inc rdi
cmp word [rax + rdi*2], bx
jne 0x140040238
mov rbx, rdi
mov r8, rbx
lea rdx, [rbp + 0x20]
mov rcx, r14
call fcn.14000fde0
mov bl, sil
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.14000f964
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x28]
call fcn.14000f964
mov al, bl
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140047dbc
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 0x140047eb2
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 0x140047eb2
mov ecx, esi
call fcn.1400fdb44
mov qword [rbx + 0x18], rax
jmp 0x140047e48
mov r9, qword [rbx + 0x18]
test r9, r9
je 0x140047eb2
mov r8d, esi
mov edx, dword [rsp + 0x60]
mov rcx, r14
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140047eb2
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 0x140047e97
mov eax, dword [rsp + 0x58]
shr eax, 2
mov dword [rbx + 0x10], eax
lea r8, [rbx + 8]
lea r9, [rsp + 0x68]
lea rdx, [0x140494e34]
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 0x1400499cc
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rbx, rcx
xor esi, esi
mov byte [rsp + 0x30], sil
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x3b
lea r9, str.NGUtils::CConnectionUtils::IsConnectionLive
lea r8, [0x1405c7778]
mov rdx, qword [0x1405c6398]
lea rcx, [rsp + 0x70]
call fcn.1400169f8
nop
mov dword [rbx], esi
xor edx, edx
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x140049a74
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
lea r9, str.IsConnectionLive___Internet_does_NOT_look_connected__ConnectionState__0x_x__last_error___d
mov edx, 0x80
lea r8d, [rsi + 0x46]
lea rcx, [rsp + 0x70]
call fcn.140016e24
mov dil, sil
jmp 0x140049a97
mov eax, dword [rbx]
mov dword [rsp + 0x20], eax
lea r9, str.IsConnectionLive___Internet_looks_connected__ConnectionState__0x_x
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx + 0x3b]
lea rcx, [rsp + 0x70]
call fcn.140016e24
mov dil, 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
mov esi, 0x1f
test byte [rbx], 0x40
je 0x140049ad2
mov r8d, esi
lea rdx, str.INTERNET_CONNECTION_CONFIGURED
lea rcx, [rsp + 0x48]
call fcn.14000fae0
test byte [rbx], 2
je 0x140049aee
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rdx, str.INTERNET_CONNECTION_LAN
lea rcx, [rsp + 0x48]
call fcn.14000fae0
test byte [rbx], 1
je 0x140049b0a
mov r8d, DispGetParam
lea rdx, str.INTERNET_CONNECTION_MODEM
lea rcx, [rsp + 0x48]
call fcn.14000fae0
test byte [rbx], 8
je 0x140049b23
mov r8, rsi
lea rdx, str.INTERNET_CONNECTION_MODEM_BUSY
lea rcx, [rsp + 0x48]
call fcn.14000fae0
test byte [rbx], 0x10
je 0x140049b3f
mov r8d, reloc.OLEAUT32.dll_SafeArrayUnaccessData
lea rdx, str.INTERNET_RAS_INSTALLED
lea rcx, [rsp + 0x48]
call fcn.14000fae0
test byte [rbx], 0x20
je 0x140049b5b
mov r8d, 0x1c
lea rdx, str.INTERNET_CONNECTION_OFFLINE
lea rcx, [rsp + 0x48]
call fcn.14000fae0
test byte [rbx], 4
je 0x140049b77
mov r8d, DispGetParam
lea rdx, str.INTERNET_CONNECTION_PROXY
lea rcx, [rsp + 0x48]
call fcn.14000fae0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rcx
lea r9, str.IsConnectionLive___ConnectionState_is:__s
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8d, [rdx + 0x5d]
lea rcx, [rsp + 0x70]
call fcn.140016e24
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.14000f964
nop
lea rcx, [rsp + 0x70]
call fcn.140016b40
mov al, dil
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14004fff0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbx, rdx
mov rsi, rcx
mov ecx, 0x38
call fcn.1400fd2a4
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rax, vtable.NGDeviceManager::IDeviceDiscoveryCallback.0
mov qword [rdi], rax
lea rax, vtable.NGDeviceManager::CSearchDevice.0
mov qword [rdi], rax
mov qword [rdi + 8], rbx
or r8, 0xffffffffffffffff
mov qword [rdi + 0x10], r8
lea rax, vtable.NGDeviceManager::CSearchDeviceByMAC.0
mov qword [rdi], rax
lea rcx, [rdi + 0x18]
call fcn.14000f860
nop
xor ebx, ebx
cmp word [rsi], bx
jne 0x140050076
mov r8d, ebx
jmp 0x140050080
inc r8
cmp word [rsi + r8*2], bx
jne 0x140050076
mov rdx, rsi
call fcn.14000fde0
nop
mov byte [rsp + 0x30], bl
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 0x286
lea r9, str.NGDeviceManager::CSearchDevice::FindDevice
lea r8, [0x1405c7b78]
mov rdx, qword [0x1405c77d8]
lea rcx, [rsp + 0x50]
call fcn.1400169f8
nop
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x10], rax
test rax, rax
jne 0x1400500e9
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateEvent_failed__err_d
mov r8d, 0x28b
jmp 0x140050122
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x14004fd00]
xor edx, edx
xor ecx, ecx
call fcn.14010a8c4
test rax, rax
jne 0x140050137
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str._beginthreadex_Failed__err_d
mov r8d, 0x292
mov edx, 0x80
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x50]
call fcn.140016e24
jmp 0x140050167
or ebx, 0xffffffff
mov edx, ebx
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
jne 0x140050167
lea r9, str.WaitForSingleObject_failed_
mov edx, 0x80
mov r8d, 0x299
lea rcx, [rsp + 0x50]
call fcn.140016e24
nop
lea rcx, [rsp + 0x50]
call fcn.140016b40
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.1400fcfd0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400783a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
movsxd rbp, edx
mov rsi, r8
mov rbx, rcx
lea eax, [rbp - 1]
cmp eax, 7
jbe 0x1400783d8
lea rax, str.bad_pack_level
mov qword [rcx + 0x6aff0], rax
xor edi, edi
mov dword [rcx + 0x6afc0], edi
cmp dword [rcx + 0x6afb8], edi
jne 0x1400783fc
mov dword [rcx + 0x6afc0], 1
mov dword [rcx + 0x6afb8], 0x10000
mov dword [rcx + 0x6afb4], edi
xor edx, edx
add rcx, 0x4afb8
mov r8d, 0x1fffc
call fcn.1400fecb0
lea rdx, [0x140221e60]
mov r14d, 2
movzx eax, word [rdx + rbp*8 + 2]
mov dword [rbx + 0x6afe0], eax
movzx eax, word [rdx + rbp*8]
mov dword [rbx + 0x6afe4], eax
movzx eax, word [rdx + rbp*8 + 4]
mov dword [rbx + 0x6afe8], eax
movzx eax, word [rdx + rbp*8 + 6]
mov dword [rbx + 0x6afdc], eax
cmp ebp, r14d
jg 0x140078459
or word [rsi], 4
jmp 0x140078462
cmp ebp, 8
jl 0x140078462
or word [rsi], r14w
lea rsi, [rbx + 0x1afb8]
mov dword [rbx + 0x6afcc], edi
mov rdx, rsi
mov dword [rbx + 0x6afbc], edi
mov r8d, 0x10000
mov rcx, rbx
call qword [rbx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov dword [rbx + 0x6afd8], eax
lea ecx, [rax - 1]
cmp ecx, 0xfffffffd
ja 0x1400784cc
mov dword [rbx + 0x6afd4], edi
cmp eax, 0x106
jae 0x1400784a7
mov rcx, rbx
call fcn.1400786fc
mov dword [rbx + 0x6afc4], edi
movzx eax, byte [rsi]
inc rsi
shl edi, 5
xor edi, eax
and edi, 0x7fff
mov dword [rbx + 0x6afc4], edi
sub r14, 1
jne 0x1400784ad
jmp 0x1400784d7
mov qword [rbx + 0x6afd4], 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x1400796dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r11, rdx
mov r9d, ecx
test rdx, rdx
jne 0x1400796f5
xor eax, eax
jmp 0x140079769
lea rdi, [0x1402219d0]
not r9d
cmp r8, 8
jb 0x14007973e
mov r10, r8
shr r10, 3
imul rax, r10, 0xfffffffffffffff8
add r8, rax
mov ebx, 8
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub rbx, 1
jne 0x140079718
sub r10, 1
jne 0x140079713
test r8, r8
je 0x140079763
movzx ecx, byte [r11]
mov eax, r9d
xor rcx, rax
inc r11
shr eax, 8
movzx edx, cl
mov r9d, dword [rdi + rdx*4]
xor r9d, eax
sub r8, 1
jne 0x140079743
not r9d
mov eax, r9d
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x140079850
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0x88
mov rax, qword [0x1405b7098]
xor rax, rsp
mov qword [rbp + 7], rax
mov r12, qword [rbp + 0x7f]
mov rsi, r9
mov r15, r8
mov r13, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x14007989c
mov eax, 0x1000000
jmp 0x140079a5e
lea rdx, [rbp - 0x31]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1400798b7
mov eax, 0x200
jmp 0x140079a5e
mov r8d, dword [rbp - 0x31]
mov eax, r8d
mov r9d, r8d
and r9d, 1
mov ecx, r9d
or ecx, 2
and al, 2
mov eax, r8d
cmove ecx, r9d
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, r8d
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, eax
or edx, 0x20
and r8b, 0x20
cmove edx, eax
test ecx, ecx
je 0x140079902
bts edx, 0x1e
jmp 0x140079906
bts edx, 0x1f
bts edx, 0x18
mov rcx, rdi
mov ebx, edx
bts ebx, 0x17
test r9d, r9d
cmovne ebx, edx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov ecx, ebx
cmp eax, 0x28
jbe 0x1400799f8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, 2
lea rdx, [rbp - 0x41]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, 4
lea rdx, [rbp - 0x3d]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
mov ecx, ebx
cmp word [rbp - 0x41], ax
jne 0x1400799f8
mov edx, dword [rbp - 0x3d]
lea eax, [rdx + 0x34]
cmp r14d, eax
jbe 0x1400799f8
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rbp - 0x39]
mov r8d, 4
lea rdx, [rbp - 0x35]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 0x35]
cmp eax, 0x5a4d
je 0x1400799f2
cmp eax, 0x454e
je 0x1400799f2
cmp eax, 0x454c
je 0x1400799f2
mov ecx, ebx
cmp eax, 0x4550
jne 0x1400799f8
mov ecx, ebx
bts ecx, 0x16
test r13, r13
je 0x140079a01
mov dword [r13], ecx
test r15, r15
je 0x140079a09
mov dword [r15], r14d
test rsi, rsi
je 0x140079a34
mov rcx, qword [rbp - 0x25]
call fcn.140079774
mov rcx, qword [rbp - 0x1d]
mov qword [rsi], rax
call fcn.140079774
mov rcx, qword [rbp - 0x2d]
mov qword [rsi + 8], rax
call fcn.140079774
mov qword [rsi + 0x10], rax
test r12, r12
je 0x140079a5c
lea r8, [rbp - 0x3d]
lea rdx, [rbp - 0x41]
lea rcx, [rbp - 0x1d]
call qword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [rbp - 0x41]
movzx eax, word [rbp - 0x3d]
shl ecx, 0x10
or ecx, eax
mov dword [r12], ecx
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400fcfd0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140079bb8
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
xor eax, eax
test r8d, r8d
je 0x140079bf0
mov r10, qword [rcx + 8]
test r10, r10
je 0x140079be9
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [rsp + 0x50]
jmp 0x140079bf0
mov dword [rcx + 0x1c], 0x1000000
add rsp, 0x38
ret

Function at 0x140079bf8
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 8]
test rax, rax
je 0x140079c23
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, dword [rsp + 0x40]
jmp 0x140079c2c
mov dword [rcx + 0x1c], 0x1000000
xor eax, eax
add rsp, 0x38
ret

Function at 0x140079cac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbp, rdx
mov rcx, qword [rcx + 0x90]
test rcx, rcx
je 0x140079d18
mov eax, dword [rdi + 0x9c]
mov esi, dword [rdi + 0x98]
cmp eax, esi
jae 0x140079d5c
sub esi, eax
lea rdx, [rcx + rax]
cmp esi, r8d
mov rcx, rbp
cmova esi, r8d
mov r8d, esi
call fcn.1400fe860
mov ecx, dword [rdi + 0x78]
mov rdx, rbp
add dword [rdi + 0x9c], esi
add dword [rdi + 0x74], esi
mov r8d, esi
call fcn.1400796dc
mov dword [rdi + 0x78], eax
mov eax, esi
jmp 0x140079d5e
mov rcx, qword [rdi + 0x80]
test rcx, rcx
je 0x140079d55
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140079d5c
mov ebx, dword [rsp + 0x40]
mov rdx, rbp
add dword [rdi + 0x74], ebx
mov r8d, ebx
mov ecx, dword [rdi + 0x78]
call fcn.1400796dc
mov dword [rdi + 0x78], eax
mov eax, ebx
jmp 0x140079d5e
mov dword [rdi + 0x1c], 0x1000000
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14007c524
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 [0x1405b7098]
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, [0x1405c89b8]
mov rdx, qword [0x1405c6398]
lea rcx, [rsp + 0x70]
call fcn.1400169f8
nop
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x14007c5c4
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.140016e24
jmp 0x14007c6a3
mov r8d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x14007c609
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.140016e24
jmp 0x14007c699
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 0x14007c674
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.140016e24
jmp 0x14007c690
lea r9, str.Service_enabled_successfully._n
mov edx, reloc.OLEAUT32.dll_SafeArrayGetDim
mov r8d, 0x118
lea rcx, [rsp + 0x70]
call fcn.140016e24
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.140016b40
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.1400fcfd0
mov rbx, qword [rsp + 0x138]
add rsp, 0x120
pop rdi
ret