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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x451637
movzx edx, byte [rax]
test edx, edx
jne 0x4514f4
nop dword [rax]
test r8b, r8b
jne 0x4514f4
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x451507
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x4515f7
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x4515e5
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x4515d7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x45155d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x4515a0
mov eax, 1
cmp rax, rbx
ja 0x45158b
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call sym.runtime.panicSliceB
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x4515cf
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x451593
mov rcx, r11
mov eax, r12d
jmp 0x451562
mov rcx, rbx
call sym.runtime.panicIndex
xor eax, eax
mov rcx, rax
nop dword [rax]
call sym.runtime.panicIndex
mov eax, r8d
mov rcx, rbx
call sym.runtime.panicSliceB
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x45162d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x4515f0
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x45150d
mov eax, edx
mov rcx, rbx
call sym.runtime.panicIndex
xor eax, eax
mov rcx, rax
nop dword [rax]
call sym.runtime.panicIndex
nop
int3
Function at 0x458e80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x458f2f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [sym.runtime.callers.func1]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call sym.runtime.systemstack.abi0
xorps xmm15, xmm15
mov r14, qword [0x005daf78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp sym.runtime.callers

Function at 0x4639a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005dad4b], 0
je 0x4639ae
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x4639c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005dad4b], 0
je 0x4639d5
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x4639e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005dad4b], 0
je 0x463a15
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x005db2e0]
aesenc xmm0, xmmword [0x005db2f0]
aesenc xmm0, xmmword [0x005db300]
movq rax, xmm0
ret
jmp sym.runtime.memhash32Fallback

Function at 0x463a20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x005dad4b], 0
je 0x463a56
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x005db2e0]
aesenc xmm0, xmmword [0x005db2f0]
aesenc xmm0, xmmword [0x005db300]
movq rax, xmm0
ret
jmp sym.runtime.memhash64Fallback

Function at 0x465340
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov rdx, 2
jmp sym.sigtramp

Function at 0x465740
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x465774
mov rcx, 0x28
jmp 0x46577f
shl rcx, 3
add rcx, 0x1480
mov qword [0x005daf78], rcx
pop rbp
ret
Function at 0x481b40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x481c0a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x005daf78]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x481bef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004b7ca0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x481bde
mov edi, 1
lea rsi, [0x004b7ca0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x004f8428]
lea rsi, [0x004f7c60]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x4a5b80
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4a5b97
inc rax
cmp rax, 4
jge 0x4a5baf
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4a5b94
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4a5bc0
inc rax
cmp rax, 4
jge 0x4a5bce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4a5bf7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4a5bdb
jmp 0x4a5bbd
Function at 0x140004eb8
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rbp + 0x40], rax
and qword [rsp + 0x38], 0
lea rax, [0x14004a8c8]
xorps xmm0, xmm0
mov qword [rsp + 0x20], rax
movdqu xmmword [rsp + 0x28], xmm0
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 8
lea rcx, [rsp + 0x20]
mov r8, rax
call fcn.140004040
test al, al
jne 0x140004f23
int3
lea rcx, [rsp + 0x40]
call fcn.140001ecc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140003ee4
test al, al
jne 0x140004f49
int3
mov r9d, 0x12
lea rdx, [0x14004a6c0]
lea rcx, [rbp - 0x40]
lea r8d, [r9 - 0x11]
call fcn.140001fa0
cmp byte [rbp - 0x74], 0
je 0x140004fa2
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004fa2
cmp byte [rbp + 0xc], 0
je 0x140004fa2
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004fa2
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x140004fa4
xor al, al
lea rcx, [rbp - 0x40]
mov byte [rbx], al
call fcn.140002160
xor edi, edi
lea rcx, [rsp + 0x40]
call fcn.140002160
mov rdx, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x28]
test rdx, rdx
je 0x140004fd8
test rbx, rbx
je 0x140004fe6
mov rcx, rbx
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
test rbx, rbx
je 0x140004fe6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.140020dec
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140020b40
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x140005018
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call fcn.14000144c
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x1400050f0
mov rax, qword [rax]
call qword [rax + 0x18]
xor r8d, r8d
xor edx, edx
add rax, 0x18
mov rcx, rsi
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test eax, eax
je 0x1400050c8
test eax, eax
js 0x1400050e5
mov rax, qword [rbx]
lea edx, [rbp + 1]
mov ecx, dword [rax - 0xc]
sub edx, dword [rax - 8]
sub ecx, edi
or edx, ecx
jge 0x140005089
mov edx, edi
mov rcx, rbx
call fcn.140001a54
mov rax, qword [rbx]
mov r8d, edi
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x1400050a4
mov eax, ebp
jmp 0x1400050b1
movsxd rdx, dword [rcx - 0xc]
int3
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400050e5
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x1400050cd
int3
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.1400017a4
int3
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x1400060c4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.14000144c
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140006190
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov esi, 0x103
mov qword [rbx], rax
lea edi, [rsi + 1]
test edi, edi
js 0x14000619b
mov r8, qword [rbx]
mov ecx, 1
mov eax, dword [r8 - 0xc]
sub ecx, dword [r8 - 8]
sub eax, edi
or ecx, eax
jge 0x14000612e
mov edx, edi
mov rcx, rbx
call fcn.140001a54
mov r8, qword [rbx]
mov edx, edi
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x14000615b
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006152
mov eax, ebp
jmp 0x14000615f
movsxd rdx, dword [rcx - 0xc]
int3
test eax, eax
js 0x14000619b
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000619b
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x140006100
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
mov ecx, 0x80070057
call fcn.1400017a4
int3

Function at 0x1400061a8
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.14000144c
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x14000626f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov esi, 0x103
mov qword [rbx], rax
lea edi, [rsi + 1]
test edi, edi
js 0x14000627a
mov rdx, qword [rbx]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, edi
or ecx, eax
jge 0x140006210
mov edx, edi
mov rcx, rbx
call fcn.140001a54
mov rdx, qword [rbx]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
mov esi, eax
sbb eax, eax
and eax, esi
cmp eax, 0xffffffff
jne 0x14000623a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006231
mov eax, ebp
jmp 0x14000623e
movsxd rdx, dword [rcx - 0xc]
int3
test eax, eax
js 0x14000627a
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000627a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x1400061e4
mov rbp, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
mov ecx, 0x80070057
call fcn.1400017a4
int3

Function at 0x1400066ac
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
call fcn.1400065a4
test al, al
jne 0x1400066d1
mov eax, 0x80070002
jmp 0x140006702
mov rcx, rdi
mov ebx, 4
call fcn.1400065f0
test al, al
lea ecx, [rbx + 1]
mov rdx, rsi
cmove ebx, ecx
mov rcx, rdi
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140006700
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x14000699c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
test edx, edx
jle 0x140006ac3
mov r10, r8
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
jmp 0x140006a1f
sub r9d, 4
js 0x140006ac3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx eax, byte [r11 + 1]
movzx ecx, byte [r11]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbx]
mov byte [r10 + 1], al
movzx eax, byte [r11 + 2]
movzx ecx, byte [r11 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rbx]
mov byte [r10 + 2], al
movzx eax, byte [r11 + 2]
add r11, 3
and eax, 0x3f
mov al, byte [rax + rbx]
mov byte [r10 + 3], al
add r10, 4
sub edx, 3
cmp edx, 2
jg 0x1400069b8
sub edx, 1
je 0x140006a83
cmp edx, 1
jne 0x140006abb
sub r9d, 3
js 0x140006ac3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx ecx, byte [r11]
movzx eax, byte [r11 + 1]
and ecx, 3
shr eax, 4
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rbx]
mov byte [r10 + 1], al
movzx eax, byte [r11 + 1]
and eax, 0xf
mov al, byte [rbx + rax*4]
mov byte [r10 + 2], al
lea eax, [r9 - 1]
test eax, eax
js 0x140006ac3
mov byte [r10 + 3], 0x3d
jmp 0x140006ab7
sub r9d, 2
js 0x140006ac3
movzx eax, byte [r11]
shr rax, 2
mov al, byte [rax + rbx]
mov byte [r10], al
movzx eax, byte [r11]
and eax, 3
add rax, rax
mov cl, byte [rbx + rax*8]
mov byte [r10 + 1], cl
lea ecx, [r9 - 2]
test ecx, ecx
js 0x140006ac3
mov word [r10 + 2], 0x3d3d
add r10, 4
sub r10d, r8d
mov eax, r10d
jmp 0x140006ac5
xor eax, eax
mov rbx, qword [rsp + 8]
ret

Function at 0x1400072b8
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0xe0
mov rbp, rdx
mov dword [rax - 0x78], 0x68
xor edx, edx
lea rcx, [rax - 0x70]
mov rsi, r8
mov edi, r9d
lea r8d, [rdx + 0x60]
call fcn.140021750
mov rbx, qword [rsp + 0x110]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rbx
xor ecx, ecx
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], rcx
xor r8d, r8d
mov dword [rsp + 0xac], 0x80
mov rdx, rbp
test rsi, rsi
jne 0x140007330
and qword [rsp + 0x30], rsi
and dword [rsp + 0x28], esi
jmp 0x14000733d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140007352
int3
mov al, byte [0x140055b09]
lea rdx, [0x140055b10]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x14000739f
mov r8d, 1
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x5c], r8d
mov dword [rsp + 0x58], 7
call fcn.140007fc8
mov r8d, dword [rbx + 0x10]
lea rdx, str._Started_process___u_
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x60], eax
call fcn.140004120
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14000795c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, rdx
call fcn.14000144c
xor r14d, r14d
test rax, rax
je 0x140007b5b
mov r8, qword [rax]
mov rcx, rax
call qword [r8 + 0x18]
lea ebp, [r14 + 1]
mov ecx, ebp
lea rbx, [rax + 0x18]
mov eax, dword [rbx - 0xc]
sub ecx, dword [rbx - 8]
sub eax, 0x104
or ecx, eax
mov qword [rsp + 0x60], rbx
jge 0x1400079be
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140001a54
mov rbx, qword [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 0x23]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x1400079ec
lea rcx, [rsp + 0x50]
lea rdx, [0x140047ce8]
call fcn.1400055c0
jmp 0x140007a0f
lea rdx, str.GoogleUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x1400079de
lea rdx, [rsp + 0x60]
call fcn.14000564c
test rbx, rbx
jne 0x140007a19
mov eax, r14d
jmp 0x140007a2d
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
int3
cmp eax, dword [rbx - 0xc]
jg 0x140007b50
mov dword [rbx - 0x10], eax
lea rdx, [rbx - 0x18]
cdqe
mov word [rbx + rax*2], r14w
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, ebp
jg 0x140007a59
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], r14d
jne 0x140007a95
call fcn.14000144c
test rax, rax
je 0x140007b5b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rdx, [rbx - 0x18]
mov qword [rsi], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, ebp
jmp 0x140007b25
mov eax, dword [rbx - 0xc]
sub ebp, dword [rbx - 8]
sub eax, 0x104
or ebp, eax
jge 0x140007ab8
mov edx, 0x104
lea rcx, [rsp + 0x50]
call fcn.140001a54
mov rbx, qword [rsp + 0x50]
lea rdx, str.GoogleUpdate.log
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
sete bpl
test rbx, rbx
jne 0x140007ad8
mov eax, r14d
jmp 0x140007ae8
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
int3
cmp eax, dword [rbx - 0xc]
jg 0x140007b50
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
test bpl, bpl
je 0x140007b41
call fcn.14000144c
test rax, rax
je 0x140007b5b
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
mov qword [rsi], rax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007b30
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x58]
mov rax, rsi
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14000564c
jmp 0x140007b16
mov ecx, 0x80070057
call fcn.1400017a4
int3
mov ecx, 0x80004005
call fcn.1400017a4
int3
Function at 0x140008714
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
and word [rcx + 0xc], 0
lea rax, [0x14004b628]
mov ebp, 1
mov qword [rcx], rax
mov byte [rcx + 0xf], bpl
mov rbx, rdx
mov rdi, rcx
mov dword [rcx + 8], 0x989680
mov byte [rcx + 0xe], r8b
call fcn.14000144c
test rax, rax
je 0x140008860
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rcx, [rdi + 0x20]
mov rdx, rbx
add rax, 0x18
mov qword [rdi + 0x10], rax
and qword [rdi + 0x18], 0
call fcn.1400055c0
and qword [rdi + 0x28], 0
call fcn.14000144c
test rax, rax
je 0x140008860
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
add rax, 0x18
lea rcx, [0x140055b10]
mov qword [rdi + 0x30], rax
mov al, byte [0x140055b09]
neg al
sbb rsi, rsi
and rsi, rcx
je 0x14000884a
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140008698
mov rbx, qword [rsp + 0x40]
cmp dword [rbx - 0x10], 0
je 0x140008818
mov r9, rbx
lea rdx, str.MaxLogFileSize
mov r8d, 0x989680
lea rcx, str.LoggingSettings
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogFileWide
lea rcx, str.LoggingSettings
mov dword [rdi + 8], eax
mov r8d, ebp
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne bpl
jmp 0x14000881f
mov dword [rdi + 8], 0x989680
lea rdx, [rsi + 0x58]
mov byte [rdi + 0xf], bpl
lea rcx, [rdi + 0x30]
call fcn.1400017c8
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000884a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x48]
mov rax, rdi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3

Function at 0x140008e08
Capabilities:
Move file
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
lea rcx, str.LOG_SYSTEM:_trying_to_move_log_file_to_backup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rdi, [rsi + 0x20]
mov rdx, rdi
lea r8, str..bak
lea rcx, [rsp + 0x30]
call fcn.14000639c
mov rbx, qword [rsp + 0x30]
mov r8d, 0xb
mov rcx, qword [rdi]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140008e61
int3
xor eax, eax
test eax, eax
jns 0x140008e90
lea rcx, str.LOG_SYSTEM:_failed_to_move_log_file_to_backup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call fcn.140008ec4
test al, al
jne 0x140008e8b
mov rcx, qword [rdi]
mov rdx, rbx
call fcn.1400066ac
xor dil, dil
jmp 0x140008e93
mov dil, 1
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140008eae
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x38]
mov al, dil
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000a350
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rax, [r11 + 8]
mov rbx, r8
mov qword [r11 - 0x20], rax
mov rbp, rcx
mov qword [r11 - 0x28], r14
mov rcx, qword [rcx + 8]
lea r9, [r11 + 0x20]
xor r8d, r8d
mov dword [r11 + 8], r14d
mov rsi, rdx
mov dword [r11 + 0x20], r14d
call qword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
jne 0x14000a462
mov edx, dword [rsp + 0x50]
test edx, edx
je 0x14000a45a
shr edx, 1
lea r8d, [r14 + 1]
add edx, r8d
js 0x14000a477
mov rcx, qword [rbx]
mov r9, rcx
mov eax, dword [rcx - 0xc]
sub r8d, dword [rcx - 8]
sub eax, edx
or r8d, eax
jge 0x14000a3e7
mov rcx, rbx
call fcn.140001a54
mov rcx, qword [rbx]
mov r9, rcx
test rcx, rcx
jne 0x14000a3f3
mov edi, 0x8007000e
jmp 0x14000a428
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov rdx, rsi
mov rcx, qword [rbp + 8]
call qword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
mov r9, qword [rbx]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test r9, r9
jne 0x14000a432
mov eax, r14d
jmp 0x14000a442
movsxd rdx, dword [r9 - 0xc]
mov rcx, r9
int3
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000a477
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], r14w
jmp 0x14000a462
mov rcx, rbx
call fcn.1400018d8
mov rbx, qword [rsp + 0x58]
mov eax, edi
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.1400017a4
int3