joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000bfd4
Capabilities:
Get common file path

Disassembly:
push rbx
push rdi
movabs rax, 0x138
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rdi, rcx
cmp dword [0x30089a44], 0
je 0x3000bffe
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x3000c064
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3000c062
mov rcx, rdi
call fcn.300219f0
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.300219f0
lea eax, [rbx + rax + 2]
cmp eax, 0x104
jg 0x3000c062
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, [0x30037fcc]
call fcn.3000af70
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.3000af70
lea rcx, [rsp + 0x20]
jmp 0x3000bff6
xor eax, eax
add rsp, 0x138
pop rdi
pop rbx
ret
Function at 0x3000c138
Capabilities:
Create process on windows

Disassembly:
push rbx
push rdi
movabs rax, 0xf8
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, rcx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x60], 0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov edx, 0xfa0
xor ecx, ecx
mov r8, qword [0x30085a90]
mov eax, dword [r8 + 0x3c]
or rcx, rax
mov eax, dword [r8 + 0x40]
shl rax, 0x20
or rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movabs rcx, 0x60
xor eax, eax
lea rdi, [rsp + 0x88]
mov dword [rsp + 0x80], 0x68
rep stosb byte [rdi], al
cmp dword [0x30089a4c], eax
je 0x3000c297
test rbx, rbx
je 0x3000c22a
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
mov r8, rbx
xor edx, edx
mov ecx, dword [0x30089a0c]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
add edi, 1
lea edx, [rdi + rdi]
lea rcx, [rsp + 0x50]
call fcn.30021290
test eax, eax
je 0x3000c3aa
mov dword [rsp + 0x28], edi
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
mov r8, rbx
xor edx, edx
mov ecx, dword [0x30089a0c]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rax, qword [0x30085a90]
lea rcx, [rax + 0xd4]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x3000c390
jmp 0x3000c38b
mov rax, qword [0x30085a90]
lea r8, [rax + 0xd4]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0xffffffff
xor edx, edx
mov ecx, dword [0x30089a0c]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
add edi, 1
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.30021290
test eax, eax
je 0x3000c3aa
mov rcx, qword [0x30085a90]
lea r8, [rcx + 0xd4]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], edi
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0xffffffff
xor edx, edx
mov ecx, dword [0x30089a0c]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000000
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebx, eax
mov rcx, qword [rsp + 0x58]
call fcn.300214c0
test ebx, ebx
je 0x3000c3aa
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0xf8
pop rdi
pop rbx
ret
Function at 0x3000c4e0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
movabs rax, 0x30
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, rdx
cmp dword [0x30089a40], 0
je 0x3000c550
xor eax, eax
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x3000c450]
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x3000c550
cmp dword [0x30089a40], eax
je 0x3000c550
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x3000c550
mov rdx, rbx
mov rcx, qword [rsp + 0x28]
call fcn.3000c3b8
test eax, eax
je 0x3000c550
mov eax, 1
jmp 0x3000c563
xor r9d, r9d
mov r8, rbx
xor edx, edx
mov ecx, 0x30
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
add rsp, 0x30
pop rbx
ret

Function at 0x3000c8cc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
movabs rax, 0x168
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rax, rdx
mov rbx, rcx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
mov rcx, rax
call fcn.3000c728
test eax, eax
je 0x3000c9e2
mov r8d, 0x104
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call fcn.300258f0
lea rcx, [rsp + 0x50]
call fcn.3000a8c4
mov rdi, rax
cmp byte [rdi], 0x5c
jne 0x3000c9e2
mov byte [rdi], 0
add rdi, 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000c9e2
mov eax, dword [rbx + 0x14]
sub eax, 0
je 0x3000c99e
sub eax, 1
je 0x3000c97b
sub eax, 1
jne 0x3000c9d7
mov dword [rsp + 0x20], 3
jmp 0x3000c983
mov dword [rsp + 0x20], 1
lea r9, [rbx + 0x10]
lea r8, [rbx + 8]
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call fcn.30009018
test eax, eax
je 0x3000c9d7
jmp 0x3000c9d1
mov dword [rsp + 0x38], 4
lea rax, [rbx + 8]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3000c9d7
mov dword [rbx], 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x168
pop rdi
pop rbx
ret
Function at 0x3000c9f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
movabs rax, 0x58
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbp, r8
mov esi, edx
mov rbx, rcx
shl edx, 2
lea rcx, [rsp + 0x40]
call fcn.30021290
test eax, eax
je 0x3000cb9e
movsxd rcx, esi
shl rcx, 2
mov rdi, qword [rsp + 0x40]
xor eax, eax
rep stosb byte [rdi], al
xor edi, edi
test esi, esi
jle 0x3000cb94
xor r13d, r13d
lea r12, [rbx + 0x18]
mov rax, qword [rsp + 0x40]
cmp dword [r13 + rax], 0
jne 0x3000cb81
mov rdx, qword [r12]
cmp byte [rdx], 0
jne 0x3000ca6f
mov r10, rbp
jmp 0x3000ca92
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000ca99
xor r10d, r10d
mov qword [rsp + 0x38], r10
jmp 0x3000ca9e
mov r10, qword [rsp + 0x38]
cmp edi, esi
jge 0x3000cb6e
mov r14, r13
lea rbx, [r12 - 8]
mov eax, esi
sub eax, edi
mov r15d, eax
mov rdx, qword [r12]
mov rcx, qword [rbx + 8]
call fcn.3000abec
test eax, eax
jne 0x3000cb5c
mov rax, qword [rsp + 0x40]
mov dword [r14 + rax], 1
mov r10, qword [rsp + 0x38]
test r10, r10
je 0x3000cb5c
mov eax, dword [rbx + 4]
sub eax, 0
je 0x3000cb1e
sub eax, 1
je 0x3000cafd
sub eax, 1
jne 0x3000cb5c
mov dword [rsp + 0x20], 3
jmp 0x3000cb05
mov dword [rsp + 0x20], 1
lea r8, [rbx - 8]
mov r9, rbx
mov rdx, qword [rbx + 0x10]
mov rcx, r10
call fcn.30009018
test eax, eax
je 0x3000cb57
jmp 0x3000cb50
mov dword [rsp + 0x30], 4
lea rax, [rbx - 8]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx + 0x10]
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3000cb57
mov dword [rbx - 0x10], 1
mov r10, qword [rsp + 0x38]
add r14, 4
add rbx, 0x28
sub r15, 1
jne 0x3000cab5
cmp r10, rbp
je 0x3000cb81
test r10, r10
je 0x3000cb81
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 1
add r13, 4
add r12, 0x28
cmp edi, esi
jl 0x3000ca50
mov rcx, qword [rsp + 0x40]
call fcn.300214c0
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x3000cbb4
Capabilities:
Query or enumerate registry key

Disassembly:
push rbx
movabs rax, 0xa0
call sub.KERNEL32.dll___chkstk
sub rsp, rax
lea r8, [rsp + 0x88]
lea rdx, [rsp + 0x90]
lea rcx, str.HKLMSoftwareMicrosoftOffice10.0Registration
call fcn.3000c728
test eax, eax
je 0x3000cd96
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x90]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000cd96
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x3000cc8e
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3000cd96
mov edx, dword [rsp + 0x60]
add edx, 1
mov dword [rsp + 0x60], edx
lea rcx, [rsp + 0x78]
call fcn.30021290
test eax, eax
je 0x3000cc7e
xor ebx, ebx
cmp dword [rsp + 0x64], ebx
jbe 0x3000cdaa
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x3000cd81
mov rcx, qword [rsp + 0x78]
call fcn.30009d34
test eax, eax
je 0x3000cd72
lea rax, [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000cd72
mov dword [rsp + 0x20], 3
lea r9, [0x300541b8]
lea r8, [0x300541b0]
lea rdx, str.DigitalProductID
mov rcx, qword [rsp + 0x80]
call fcn.30009018
mov rcx, qword [rsp + 0x80]
test eax, eax
jne 0x3000cd9a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 1
cmp ebx, dword [rsp + 0x64]
jb 0x3000ccb3
jmp 0x3000cdaa
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call fcn.300214c0
xor eax, eax
jmp 0x3000cdc8
mov dword [0x300541a8], 1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
call fcn.300214c0
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, dword [rsp + 0x64]
setb al
add rsp, 0xa0
pop rbx
ret
Function at 0x3000cdd4
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
movabs rax, 0x50
call sub.KERNEL32.dll___chkstk
sub rsp, rax
cmp dword [0x30089a4c], 0
je 0x3000ce9b
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
call fcn.3000c728
test eax, eax
je 0x3000ce9b
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000ce9b
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rbx, [0x300891f0]
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.DWReporteeName
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x3000ce90
cmp dword [rsp + 0x34], 1
je 0x3000ce7f
mov word [0x300891f0], ax
jmp 0x3000ce90
mov eax, dword [rsp + 0x30]
shr eax, 1
sub eax, 1
mov eax, eax
mov word [rbx + rax*2], 0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x50
pop rbx
ret

Function at 0x3000d84c
Capabilities:
Set environment variable

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
movabs rax, 0x50
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, rdx
mov rsi, rcx
test rsi, rsi
je 0x3000d94b
test rbx, rbx
je 0x3000d94b
mov rcx, rbx
call fcn.3000a90c
cmp rax, rbx
je 0x3000d94b
sub rax, rbx
sar rax, 1
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r13d, eax
mov r9d, r13d
mov r8, rbx
xor edx, edx
mov ecx, dword [0x30089a0c]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov r12d, eax
add r12d, 1
mov edx, r12d
lea rcx, [rsp + 0x40]
call fcn.30021290
test eax, eax
je 0x3000d94b
movsxd rcx, r12d
mov rdi, qword [rsp + 0x40]
xor eax, eax
rep stosb byte [rdi], al
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], r12d
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, r13d
mov r8, rbx
xor edx, edx
mov ecx, dword [0x30089a0c]
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x3000d941
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, qword [rsp + 0x40]
call fcn.300214c0
add rsp, 0x50
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x3000daa8
Capabilities:
Create directory

Disassembly:
push rbx
push rsi
push rdi
movabs rax, 0x130
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, rcx
test rbx, rbx
je 0x3000db8d
call fcn.300219f0
cmp eax, 0x104
jge 0x3000db8d
xor esi, esi
mov r8d, 0x104
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.300258f0
lea rcx, [rsp + 0x20]
call fcn.300219f0
movsxd rax, eax
lea rbx, [rsp + rax + 0x20]
lea rcx, [rsp + 0x20]
call fcn.30009d08
test eax, eax
jne 0x3000db86
mov rdi, rbx
lea rcx, [rsp + 0x20]
call fcn.3000a8c4
mov rbx, rax
test esi, esi
je 0x3000db28
mov byte [rdi], 0x5c
lea rax, [rsp + 0x20]
cmp rbx, rax
jbe 0x3000db8d
mov byte [rbx], 0
mov esi, 1
lea rcx, [rsp + 0x20]
call fcn.30009d08
test eax, eax
je 0x3000db11
mov byte [rbx], 0x5c
add rbx, 1
xor edi, edi
cmp byte [rbx], 0x5c
je 0x3000db69
cmp byte [rbx], 0
je 0x3000db64
add rbx, 1
cmp byte [rbx], 0x5c
jne 0x3000db56
cmp byte [rbx], 0x5c
jne 0x3000db71
mov edi, 1
mov byte [rbx], 0
xor edx, edx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x3000db8d
test edi, edi
jne 0x3000db48
mov eax, 1
jmp 0x3000db8f
xor eax, eax
add rsp, 0x130
pop rdi
pop rsi
pop rbx
ret
Function at 0x3000df88
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push rbx
push rsi
push rdi
push r12
movabs rax, 0x2c8
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov esi, edx
mov r12, rcx
mov byte [rsp + 0x70], 0
lea rdi, [rsp + 0x71]
xor eax, eax
movabs rcx, 0x103
rep stosb byte [rdi], al
mov byte [rsp + 0x30], al
lea rdi, [rsp + 0x31]
movabs rcx, 4
rep stosb byte [rdi], al
mov byte [rsp + 0x38], al
lea rdi, [rsp + 0x39]
movabs rcx, 0x10
rep stosb byte [rdi], al
mov byte [rsp + 0x50], al
lea rdi, [rsp + 0x51]
movabs rcx, 0x10
rep stosb byte [rdi], al
mov dword [rsp + 0x180], eax
lea rdi, [rsp + 0x184]
movabs rcx, 0x13c
rep stosb byte [rdi], al
cmp esi, 0x36
jle 0x3000e050
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.GetSystemWindowsDirectoryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x70]
mov edx, 0x104
test rax, rax
je 0x3000e062
call rax
test eax, eax
jne 0x3000e06a
xor eax, eax
add rsp, 0x2c8
pop r12
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x3000e04c
mov r8d, 0x104
lea rdx, [rsp + 0x70]
lea rcx, str._system32drivers__.mrk
call fcn.3000af70
lea rdx, [rsp + 0x180]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
jmp 0x3000e108
mov r8d, 5
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x1ac]
call fcn.30009efc
test rax, rax
je 0x3000e0e0
mov r8d, 0x11
lea rdx, [rsp + 0x38]
mov rcx, rax
call fcn.30009efc
test rax, rax
je 0x3000e0e0
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.30009efc
test rax, rax
jne 0x3000e113
lea rdx, [rsp + 0x180]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x3000e108
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
movabs rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
jne 0x3000e099
jmp 0x3000e050
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, str.VID_sOEM_sLOB_s
movsxd rdx, esi
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_wnsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x3000e052
Function at 0x3000e3f4
Capabilities:
Access the windows event log

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
movabs rax, 0x58
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, r9
mov esi, r8d
movzx r12d, dx
mov r13, rcx
cmp word [0x30089cd0], 0
je 0x3000e4c5
lea r14, [0x30089cd0]
cmp dword [0x30089a4c], 0
je 0x3000e4a9
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rdi, rax
test rdi, rdi
je 0x3000e4c5
mov rcx, rbx
call fcn.300219f0
neg dword [rsp + 0xb0]
sbb dx, dx
and dx, 3
add dx, 1
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], eax
mov word [rsp + 0x28], r12w
mov qword [rsp + 0x20], 0
mov r9d, esi
xor r8w, r8w
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ReportEventA]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
cmp dword [0x30089a4c], 0
jne 0x3000e4c5
mov rcx, r14
call fcn.3000a1f8
lea rcx, [0x30038818]
call fcn.3000a1c4
mov rcx, rbx
call fcn.3000a1c4
add rsp, 0x58
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x3000ef3c
Capabilities:
Get common file path
Query or enumerate registry value
Set environment variable

Disassembly:
push rbx
push rdi
movabs rax, 0x158
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x3000ef78
lea rdx, [rsp + 0x40]
lea rcx, str.systemdir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rcx, str.shfolder.dll
call fcn.3000bfd4
mov rbx, rax
test rbx, rbx
je 0x3000f071
lea rdx, str.SHGetFolderPathA
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rdi, rdi
je 0x3000f068
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x26
xor ecx, ecx
call rdi
test eax, eax
jne 0x3000efdb
lea rdx, [rsp + 0x40]
lea rcx, str.progfiles
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2b
xor ecx, ecx
call rdi
test eax, eax
jne 0x3000f00a
lea rdx, [rsp + 0x40]
lea rcx, str.commonfiles
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call rdi
test eax, eax
jne 0x3000f039
lea rdx, [rsp + 0x40]
lea rcx, str.appdata
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 5
xor ecx, ecx
call rdi
test eax, eax
jne 0x3000f068
lea rdx, [rsp + 0x40]
lea rcx, str.mydocuments
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftOffice10.0CommonInstallRoot
movabs rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000f12d
mov dword [rsp + 0x30], 0x104
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Path
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x3000f122
mov eax, dword [rsp + 0x30]
mov byte [rsp + rax + 0x40], 0
lea rcx, [rsp + 0x40]
call fcn.300219f0
sub eax, 1
movsxd rax, eax
cmp byte [rsp + rax + 0x40], 0x5c
jne 0x3000f110
lea rcx, [rsp + 0x40]
call fcn.300219f0
sub eax, 1
movsxd rax, eax
mov byte [rsp + rax + 0x40], 0
lea rdx, [rsp + 0x40]
lea rcx, str.officedir
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x158
pop rdi
pop rbx
ret
Function at 0x3000f13c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push rdi
push r12
push r13
movabs rax, 0x40
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov r12, r8
mov rsi, rdx
mov r13, rcx
test r13, r13
je 0x3000f189
test r12, r12
je 0x3000f197
mov edx, 0x106
mov ecx, dword [rsp + 0x80]
call fcn.30021110
mov rbx, rax
test rbx, rbx
jne 0x3000f18d
xor eax, eax
jmp 0x3000f1e4
mov rdi, rbx
mov rcx, r12
rep movsb byte [rdi], byte [rsi]
jmp 0x3000f19a
mov rbx, rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rbx
mov r8, r13
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x3000f1ce
mov rcx, rbx
call r13
jmp 0x3000f1df
lea rdx, [rsp + 0x38]
mov rcx, qword [0x30085478]
call fcn.3002d7e8
mov rax, qword [rsp + 0x38]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret

Function at 0x3000f4b8
Capabilities:
Create process on windows

Disassembly:
push rbx
push rdi
movabs rax, 0x8c8
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
lea rdi, [rsp + 0x24]
xor eax, eax
movabs rcx, 0x6c
rep stosb byte [rdi], al
test rbx, rbx
je 0x3000f559
cmp dword [0x300899f4], eax
jne 0x3000f505
mov rcx, rbx
call fcn.3000ee88
test eax, eax
je 0x3000f511
mov rcx, rbx
call fcn.30009598
test eax, eax
jne 0x3000f559
mov r8d, 0x824
lea rdx, [rsp + 0x90]
mov rcx, rbx
call fcn.300258f0
mov dword [rsp + 0x20], 0x70
lea rax, [rsp + 0x90]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x50], 0xa
lea rcx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x3000f559
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x8c8
pop rdi
pop rbx
ret
Function at 0x300102b4
Capabilities:
Create process memory minidump

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
movabs rax, 0x8b0
call sub.KERNEL32.dll___chkstk
sub rsp, rax
mov rsi, rdx
mov r12, rcx
xor ebx, ebx
mov r8, qword [0x30085a90]
cmp dword [r8 + 4], ebx
jne 0x300102ec
xor eax, eax
jmp 0x300104eb
lea rdi, [rsp + 0x90]
xor eax, eax
movabs rcx, 0x820
rep stosb byte [rdi], al
add r8, 0x122c
cmp word [r8], ax
je 0x30010356
lea rdx, [0x30038ac8]
mov rcx, r8
call fcn.3000ab5c
test eax, eax
jne 0x30010329
mov ebx, 1
jmp 0x30010356
xor ecx, ecx
movsxd rax, ecx
mov qword [rsp + rax*8 + 0x90], r8
cmp word [r8], 0
je 0x30010348
add r8, 2
cmp word [r8], 0
jne 0x3001033d
add ecx, 1
add r8, 2
cmp word [r8], 0
jne 0x3001032b
mov r8d, 0x104
lea rdi, [0x30085f38]
mov rdx, rdi
lea rcx, str.unknown
call fcn.300258c0
call fcn.3000f3b0
test eax, eax
je 0x300104eb
mov dword [rsp + 0x20], 0x104
lea r13, [0x300865c0]
mov r9, r13
lea r8, str..dmp
lea rdx, [0x30088770]
lea rcx, [rsp + 0x50]
call fcn.3000d728
test eax, eax
je 0x300104eb
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x78], rsi
mov dword [rsp + 0x80], ebx
mov r10, qword [0x30085a90]
mov eax, dword [r10 + 8]
mov dword [rsp + 0x40], eax
xor ecx, ecx
mov eax, dword [r10 + 0x14]
or rcx, rax
mov eax, dword [r10 + 0x18]
shl rax, 0x20
or rcx, rax
mov dword [rsp + 0x44], ecx
shr rcx, 0x20
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], 1
lea rax, [0x30010060]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
mov r9d, 1
mov eax, dword [r10 + 0x44]
and eax, 0x10000
mov eax, 0x21
cmovne r9d, eax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rbx, qword [rsp + 0x50]
mov r8, rbx
mov edx, dword [r10 + 4]
xor ecx, ecx
mov eax, dword [r10 + 0x3c]
or rcx, rax
mov eax, dword [r10 + 0x40]
shl rax, 0x20
or rcx, rax
call sub.dbghelp.dll_MiniDumpWriteDump
test eax, eax
je 0x300104eb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x104
lea rdx, [0x30085e34]
mov rcx, rdi
call fcn.3000df14
lea rdx, [0x30086150]
mov rcx, r13
call fcn.3000d4f0
test eax, eax
je 0x300104eb
cmp dword [0x30086168], 0
jne 0x300104b8
xor eax, eax
jmp 0x300104eb
cmp qword [0x30086148], 0
jne 0x300104e2
xor edx, edx
mov rcx, qword [0x30085a90]
mov eax, dword [rcx + 0xc]
or rdx, rax
mov eax, dword [rcx + 0x10]
shl rax, 0x20
or rdx, rax
mov qword [0x30086148], rdx
mov eax, 1
jmp 0x300104eb
add rsp, 0x8b0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret