joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4017e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movsxd rbp, dword [0x00407054]
mov rbx, rcx
mov rsi, rdx
mov rdi, r8
test ebp, ebp
jle 0x4018fa
mov rax, qword [0x00407058]
xor r9d, r9d
add rax, 8
mov r10, qword [rax]
cmp rbx, r10
jb 0x40182e
mov rdx, qword [rax + 8]
mov r11d, dword [rdx + 8]
add r10, r11
cmp rbx, r10
jb 0x4018e0
add r9d, 1
add rax, 0x18
cmp r9d, ebp
jne 0x401812
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x401932
lea rbp, [rbp + rbp*2]
shl rbp, 3
mov r13, rbp
add r13, qword [0x00407058]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call dbg._GetPEImageBase
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x00407058]
mov rcx, qword [rax + rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401915
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4018d9
sub eax, 0x40
and eax, 0xffffffbf
je 0x4018d9
mov r9, rbp
add r9, qword [0x00407058]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401901
add dword [0x00407054], 1
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sym.memcpy
xor ebp, ebp
jmp 0x40183b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
mov rax, qword [0x00407058]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbp + 8]
call dbg.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call dbg.__report_error
nop
nop word cs:[rax + rax]

Function at 0x402510
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402520
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402530
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402571
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402568
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x402573
add rax, 0x28
cmp rax, r9
jne 0x402554
xor eax, eax
repz ret

Function at 0x402620
Capabilities:
Enumerate pe sections

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, qword [0x00404330]
cmp word [rbx], 0x5a4d
je 0x402640
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rsi, rcx
mov rcx, rbx
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402634
sub rsi, rbx
mov rcx, rbx
mov rdx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp dbg._FindPESection
Function at 0x402890
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004079c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004079a0]
test rbx, rbx
je 0x4028e4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x4028db
test rsi, rsi
je 0x4028db
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4028c0
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [0x004079c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
Function at 0x1400013e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x14001f3f8]
xor rax, rsp
mov qword [rsp + 0x30], rax
xor eax, eax
movzx r14d, r8b
mov rsi, rdx
mov qword [rdx], rax
mov dword [rdx + 8], eax
mov rdi, rcx
lea edx, [rax - 0xe]
lea r8d, [rax + 2]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
jne 0x1400014c3
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rdi
mov ebx, eax
lea r8d, [rdx + 0xd]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0xe
jne 0x1400014c3
mov ebp, 0x8386
mov r12d, 0x7d00
mov r15d, 0x8302
nop dword [rax]
nop word [rax + rax]
movzx edx, word [rsp + 0x20]
lea eax, [r12 + rdx]
cmp ax, 1
jbe 0x140001490
test r14b, r14b
mov ecx, r15d
cmovne ecx, ebp
cmp edx, ecx
jne 0x1400015fd
mov eax, dword [rsp + 0x2a]
cmp eax, ebx
ja 0x1400014c3
sub ebx, eax
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rdi
lea r8d, [rdx + 0xd]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0xe
je 0x140001470
test r14b, r14b
jne 0x1400015d7
mov edx, 0xfffffff0
mov rcx, rdi
lea r8d, [rdx + 0x12]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
jne 0x140001562
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rdi
mov ebx, eax
lea r8d, [rdx + 0xf]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0x10
jne 0x140001562
nop dword [rax + rax]
cmp dword [rsp + 0x20], 0x534954
jne 0x140001562
mov ecx, dword [rsp + 0x2c]
mov eax, 0x10
sub eax, ecx
add ebx, eax
cmp dword [rsp + 0x24], 0
jne 0x140001539
cmp dword [rsp + 0x28], 0
je 0x140001625
xor r8d, r8d
mov edx, ebx
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rdi
lea r8d, [rdx + 0xf]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 0x10
je 0x140001510
mov edx, 0xfffffff8
mov rcx, rdi
lea r8d, [rdx + 0xa]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fseek
test eax, eax
jne 0x1400015d7
mov rcx, rdi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ftell
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rdi
mov ebx, eax
lea r8d, [rdx + 7]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
cmp rax, 8
jne 0x1400015d7
mov rcx, qword [rsp + 0x20]
cmp ecx, dword [str.NB09]
je 0x1400015c2
cmp ecx, dword [str.NB08]
je 0x1400015c2
cmp ecx, dword [str.NB07]
je 0x1400015c2
cmp ecx, dword [str.NB05]
jne 0x1400015d7
mov eax, dword [rsp + 0x24]
sub ebx, eax
add ebx, 8
mov dword [rsi], 2
mov dword [rsi + 8], eax
mov dword [rsi + 4], ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400078a0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
test r14b, r14b
cmovne ebp, r15d
cmp edx, ebp
jne 0x1400014c3
mov eax, dword [rsp + 0x2a]
add ebx, 0xe
cmp ebx, eax
jbe 0x1400014c3
sub ebx, eax
mov dword [rsi], 1
jmp 0x1400015d1
mov dword [rsi + 8], ecx
mov dword [rsi], 3
jmp 0x1400015d4
Function at 0x140006d50
Capabilities:
Resolve path using msvcrt

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14001f3f8]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_pgmptr
test eax, eax
jne 0x140006d94
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x140006d94
cmp byte [rax], 0
jne 0x140006dcf
lea rax, [rsp + 0x30]
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp eax, 0x104
mov ecx, 0x103
cmove eax, ecx
cmp eax, 0x104
jae 0x140006e0a
mov byte [rsp + rax + 0x30], 0
mov rax, qword [rsp + 0x20]
mov rdx, rbx
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140006de0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1400078a0
add rsp, 0x150
pop rbx
ret
call fcn.140007ce0
int3
Function at 0x14000421c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.14000144c
xor esi, esi
mov rcx, rax
test rax, rax
je 0x1400042d9
mov rax, qword [rax]
call qword [rax + 0x18]
lea ecx, [rsi + 1]
mov edx, 0x104
lea r9, [rax + 0x18]
mov qword [rbx], r9
mov eax, dword [r9 - 0xc]
sub ecx, dword [r9 - 8]
sub eax, edx
or ecx, eax
jge 0x140004272
mov rcx, rbx
call fcn.140001a54
mov r9, qword [rbx]
xor r8d, r8d
lea rdx, [0x140050a38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov rcx, qword [rbx]
mov edi, eax
test rcx, rcx
jne 0x140004293
mov eax, esi
jmp 0x1400042a0
movsxd rdx, dword [rcx - 0xc]
call fcn.140031f30
test eax, eax
js 0x1400042e4
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x1400042e4
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], si
test edi, edi
je 0x1400042be
cmp edi, 0x6f
jne 0x1400042c6
mov rcx, rbx
call fcn.1400018d8
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80004005
call fcn.1400017a4
int3
mov ecx, 0x80070057
call fcn.1400017a4
int3

Function at 0x140004c7c
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 [0x140057010]
xor rax, rsp
mov qword [rbp + 0x40], rax
and qword [rsp + 0x38], 0
lea rax, [0x14004e308]
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.14000403c
test al, al
jne 0x140004ce7
call fcn.14000c81c
mov edi, eax
jmp 0x140004d7f
lea rcx, [rsp + 0x40]
call fcn.140001ecc
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.140003ee0
test al, al
jne 0x140004d0d
call fcn.14000c81c
mov edi, eax
jmp 0x140004d75
mov r9d, 0x12
lea rdx, [0x14004e140]
lea rcx, [rbp - 0x40]
lea r8d, [r9 - 0x11]
call fcn.140001fa0
cmp byte [rbp - 0x74], 0
je 0x140004d66
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004d66
cmp byte [rbp + 0xc], 0
je 0x140004d66
lea rcx, [rbp - 0x38]
call qword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x140004d66
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
jmp 0x140004d68
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 0x140004d9c
test rbx, rbx
je 0x140004daa
mov rcx, rbx
call qword [sym.imp.USERENV.dll_UnloadUserProfile]
test rbx, rbx
je 0x140004daa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x38]
mov edx, 8
call fcn.1400218ec
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140021640
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140005bd8
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 0x140005c9e
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 0x140005c86
test eax, eax
js 0x140005ca9
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 0x140005c49
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 0x140005c64
mov eax, ebp
jmp 0x140005c71
movsxd rdx, dword [rcx - 0xc]
call fcn.140031f30
test eax, eax
js 0x140005ca9
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140005ca9
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
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 0x140005cb4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x260
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov esi, ecx
mov rbx, rdx
mov rcx, rdx
call fcn.1400018d8
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x208
call fcn.140022250
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, esi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
jns 0x140005d96
movzx ecx, sil
cmp ecx, 0x26
jne 0x140005d43
lea rdx, str.ProgramFiles
lea rcx, [rsp + 0x30]
call fcn.140005bd8
mov rdx, rax
mov rcx, rbx
call fcn.1400017c8
mov rdx, qword [rsp + 0x30]
jmp 0x140005d69
cmp ecx, 0x1c
jne 0x140005d83
lea rdx, str.LocalAppData
lea rcx, [rsp + 0x38]
call fcn.140005bd8
mov rdx, rax
mov rcx, rbx
call fcn.1400017c8
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140005d83
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx]
mov ecx, 1
cmp dword [rax - 0x10], 0
cmovne edi, ecx
mov eax, edi
jmp 0x140005db2
lea rcx, [rsp + 0x40]
call fcn.140031e04
mov r8d, eax
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140001948
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140021640
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x140005fa4
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 0x140006070
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 0x14000607b
mov r8, qword [rbx]
mov ecx, 1
mov eax, dword [r8 - 0xc]
sub ecx, dword [r8 - 8]
sub eax, edi
or ecx, eax
jge 0x14000600e
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 0x14000603b
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006032
mov eax, ebp
jmp 0x14000603f
movsxd rdx, dword [rcx - 0xc]
call fcn.140031f30
test eax, eax
js 0x14000607b
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000607b
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x140005fe0
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 0x140006088
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 0x14000614f
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 0x14000615a
mov rdx, qword [rbx]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, edi
or ecx, eax
jge 0x1400060f0
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 0x14000611a
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140006111
mov eax, ebp
jmp 0x14000611e
movsxd rdx, dword [rcx - 0xc]
call fcn.140031f30
test eax, eax
js 0x14000615a
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000615a
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
cmp esi, edi
jae 0x1400060c4
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 0x140006808
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140057010]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
mov rdi, rdx
xor eax, eax
xor edx, edx
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x20], xmm0
mov rbx, rcx
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x140006852
mov eax, 0x80070002
jmp 0x1400068ac
xorps xmm0, xmm0
lea r8, [rsp + 0x20]
xor eax, eax
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x40], eax
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x14000687e
xor r8d, r8d
jmp 0x14000688b
mov r8d, dword [rsp + 0x20]
shr r8d, 4
and r8d, 1
xor r8d, 1
mov rdx, rdi
add r8d, 4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1400068aa
call fcn.14000c81c
jmp 0x1400068ac
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140021640
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140006b4c
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov r11, rcx
test edx, edx
jle 0x140006c73
mov r10, r8
lea rbx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
jmp 0x140006bcf
sub r9d, 4
js 0x140006c73
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 0x140006b68
sub edx, 1
je 0x140006c33
cmp edx, 1
jne 0x140006c6b
sub r9d, 3
js 0x140006c73
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 0x140006c73
mov byte [r10 + 3], 0x3d
jmp 0x140006c67
sub r9d, 2
js 0x140006c73
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 0x140006c73
mov word [r10 + 2], 0x3d3d
add r10, 4
sub r10d, r8d
mov eax, r10d
jmp 0x140006c75
xor eax, eax
mov rbx, qword [rsp + 8]
ret
Function at 0x140007468
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x57]
sub rsp, 0x100
lea rax, [0x14004e308]
xorps xmm0, xmm0
xor ebx, ebx
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x59]
mov qword [rbp - 0x41], rbx
movdqu xmmword [rbp - 0x51], xmm0
mov r14d, r9d
mov rsi, r8
mov r15, rdx
call fcn.1400040c8
test al, al
jne 0x1400074c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
je 0x1400074eb
lea ecx, [rbx + 3]
jmp 0x1400074db
cmp qword [rbp - 0x51], rbx
je 0x1400074eb
call qword [sym.imp.ADVAPI32.dll_RevertToSelf]
test eax, eax
jne 0x1400074eb
lea ecx, [rax + 2]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_RaiseException]
xor edx, edx
mov dword [rbp - 0x31], 0x68
lea rcx, [rbp - 0x29]
lea r8d, [rdx + 0x60]
call fcn.140022250
mov rdi, qword [rbp + 0x7f]
lea rax, [rbp - 0x31]
mov qword [rsp + 0x48], rdi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rbp + 0xb], 0x80
mov rdx, r15
test rsi, rsi
jne 0x14000753a
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
jmp 0x140007547
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14000755f
call fcn.14000c81c
mov ebx, eax
jmp 0x1400075aa
mov al, byte [0x140059d39]
lea rdx, [0x140059d40]
neg al
sbb rcx, rcx
and rcx, rdx
je 0x1400075aa
mov r8d, 1
mov qword [rbp - 0x71], rcx
mov dword [rbp - 0x69], 7
mov dword [rbp - 0x65], 1
call fcn.140008294
mov r8d, dword [rdi + 0x10]
lea rdx, str._Started_process___u_
lea rcx, [rbp - 0x71]
mov dword [rbp - 0x61], eax
call fcn.1400041a4
lea rcx, [rbp - 0x59]
call fcn.1400042f0
lea r11, [rsp + 0x100]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140007bdc
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 0x140007ddb
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 0x140007c3e
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 0x140007c6c
lea rcx, [rsp + 0x50]
lea rdx, [0x14004b748]
call fcn.1400052a0
jmp 0x140007c8f
lea rdx, str.GoogleUpdateLog
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x140007c5e
lea rdx, [rsp + 0x60]
call fcn.14000532c
test rbx, rbx
jne 0x140007c99
mov eax, r14d
jmp 0x140007cad
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140031f30
test eax, eax
js 0x140007dd0
cmp eax, dword [rbx - 0xc]
jg 0x140007dd0
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 0x140007cd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rbx, qword [rsp + 0x50]
cmp dword [rbx - 0x10], r14d
jne 0x140007d15
call fcn.14000144c
test rax, rax
je 0x140007ddb
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 0x140007da5
mov eax, dword [rbx - 0xc]
sub ebp, dword [rbx - 8]
sub eax, 0x104
or ebp, eax
jge 0x140007d38
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 0x140007d58
mov eax, r14d
jmp 0x140007d68
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140031f30
test eax, eax
js 0x140007dd0
cmp eax, dword [rbx - 0xc]
jg 0x140007dd0
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
test bpl, bpl
je 0x140007dc1
call fcn.14000144c
test rax, rax
je 0x140007ddb
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 0x140007db0
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.14000532c
jmp 0x140007d96
mov ecx, 0x80070057
call fcn.1400017a4
int3
mov ecx, 0x80004005
call fcn.1400017a4
int3