joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140097e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140178e80]
mov rcx, qword [rax + 0x4e18]
mov r9, qword [rax + 0x4000]
movups xmm0, xmmword [r9 + 0x248]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x248], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [rcx + 0x232]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x2a8]
add rsp, 0x38
jmp fcn.14008af90

Function at 0x140097f20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140178e80]
mov rcx, qword [rax + 0x4e18]
mov r10, qword [rax + 0x4000]
movsxd rax, dword [rcx + 0x74]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x70
mov rax, qword [r10 + 0x2a8]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x248], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x2a8]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, word [r9 + 0x5c]
mov rdx, qword [r10 + 0x2a8]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp fcn.14008af90

Function at 0x14009a450
Capabilities:
Hash data with crc32

Disassembly:
mov rax, qword [0x140178e80]
mov rdx, qword [rax + 0x4e18]
cmp ecx, 0xffffffff
jne 0x14009a46a
cmp dword [rdx + 0x74], ecx
cmovne ecx, dword [rdx + 0x74]
cmp ecx, dword [rdx + 0x6c]
mov eax, 0xffffffff
cmove ecx, eax
test byte [rdx + 4], 7
je 0x14009a4e9
mov r10d, dword [rdx]
lea r8, [0x140155dd9]
movzx eax, word [rdx + 0x78]
lea r11, [0x14014b8f0]
not r10d
mov word [rdx + 0x224], cx
mov ecx, r10d
mov byte [rdx + 0x23b], 1
mov word [rdx + 0x7a], ax
mov r9b, 0x23
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14009a4c3
cmp byte [r8], r9b
jne 0x14009a4c3
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14009a4b0
not ecx
xor edx, edx
jmp fcn.1400771a0
ret
Function at 0x1400b4b30
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140170028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x74]
call main
mov dword [rsp + 0x70], 0x130
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400b4c59
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400067a0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x9c]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400b4bd2
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x20]
call fcn.140003c30
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400b4bfc
mov rbx, qword [rbx]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
cmp r8, rax
jne 0x1400b4c27
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400b4c27
mov bl, 1
jmp 0x1400b4c29
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.140006940
nop
lea rcx, [rsp + 0x40]
call fcn.140006940
test bl, bl
jne 0x1400b4c55
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x1400b4b99
mov edi, dword [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x1400b4c86
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
mov rcx, rsi
call fcn.140006940
mov rax, rbx
jmp 0x1400b4c90
mov rcx, rsi
call fcn.140006940
xor eax, eax
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400c74e0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400ba990
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x3b0
mov rax, qword [0x140170028]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x20], rcx
xorps xmm0, xmm0
movups xmmword [rcx + 0x18], xmm0
mov qword [rcx + 0x28], 0
mov qword [rcx + 0x30], 0xf
mov byte [rcx + 0x18], 0
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400baa3d
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x1400baa10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, rdi
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400baa34
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400baa10
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x38]
mov ecx, 8
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400baab3
mov dword [rsp + 0x160], 0x238
lea rdx, [rsp + 0x160]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
jne 0x1400baa80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, rdi
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400baaaa
lea rdx, [rsp + 0x160]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1400baa80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rax, [rsp + 0x290]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400baac2
lea rdx, [rsp + 0x290]
lea rcx, [rsi + 0x18]
call fcn.1400069a0
mov rcx, qword [rsp + 0x178]
mov qword [rsi + 0x10], rcx
mov r8d, dword [rsp + 0x168]
mov dword [rsi + 8], r8d
mov ecx, dword [rsp + 0x180]
mov qword [rsi + 0x38], rcx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsi], rax
mov rax, rsi
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.1400c74e0
mov rbx, qword [rsp + 0x3e0]
add rsp, 0x3b0
pop r14
pop rdi
pop rsi
ret
Function at 0x1400bab60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140170028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r12, qword [rsp + 0xd8]
mov r14, r9
xor esi, esi
mov qword [rsp + 0x50], 0x1000
mov rbx, r8
mov r15, rdx
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, r12
mov ebp, esi
lea r9d, [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
mov r13, qword [rsp + 0xd0]
add r13, r14
cmp r14, r13
jae 0x1400bad16
mov qword [rsp + 0xb0], rdi
nop dword [rax + rax]
mov r9d, 0x30
lea r8, [rsp + 0x38]
mov rdx, r14
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
jne 0x1400bac0d
lea rcx, [0x140156520]
call fcn.140003040
jmp 0x1400bad72
cmp dword [rsp + 0x58], 0x1000
mov edx, dword [rsp + 0x5c]
jne 0x1400bad60
cmp edx, 1
je 0x1400bad60
mov rcx, rbp
call fcn.1400c7a24
mov rcx, qword [rsp + 0x50]
call fcn.1400c7e50
mov r8, qword [rsp + 0x50]
mov rbp, rax
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1400bad72
mov r9, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov rdx, qword [rsp + 0x38]
mov r8, rbp
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, dword [rsp + 0x70]
lea rax, [rsp + 0x70]
mov r8, qword [rsp + 0x50]
mov rcx, r12
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], sil
jne 0x1400bacb1
mov rdi, qword [rsp + 0x68]
test rdi, rdi
jle 0x1400bad72
mov r10, rbp
mov edx, esi
sub r10, rbx
mov r11d, esi
test r8, r8
jle 0x1400bacfe
mov r9, r15
mov rax, rbx
sub r9, rbx
cmp byte [rax], 0x3f
je 0x1400bacf1
movzx ecx, byte [r10 + rax]
cmp byte [r9 + rax], cl
jne 0x1400bad4b
inc edx
inc rax
movsxd rcx, edx
cmp rcx, r8
jl 0x1400bace1
movsxd rcx, r11d
lea rax, [rcx + rbp]
test rax, rax
je 0x1400bad72
lea rsi, [rcx + r14]
mov rdi, qword [rsp + 0xb0]
mov rcx, rbp
call fcn.1400c7a24
mov rax, rsi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c74e0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
inc r11d
inc r10
movsxd rax, r11d
cmp rax, rdi
jge 0x1400bad72
mov edx, esi
jmp 0x1400bacd8
mov r8d, 0x1000
lea rcx, str._i_n_i
call fcn.140003040
add r14, qword [rsp + 0x50]
cmp r14, r13
jb 0x1400babe0
jmp 0x1400bad0e
Function at 0x1400bb090
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x370
mov rax, qword [0x140170028]
xor rax, rsp
mov qword [rsp + 0x360], rax
xor eax, eax
mov rdi, rcx
mov qword [rcx], rax
mov rsi, r8
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
lea ecx, [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400bb10c
mov r8, rsi
lea rdx, str.Failed_to_get__s__invalid_handle_value
lea rcx, [rsp + 0x260]
call fcn.1400bb280
xor r9d, r9d
lea r8, str.ERROR
lea rdx, [rsp + 0x260]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1400bb178
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x1400bb16f
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsicmp]
test eax, eax
je 0x1400bb156
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x1400bb130
jmp 0x1400bb16f
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x48]
mov edx, dword [rsp + 0x40]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
mov rcx, qword [rsp + 0x360]
xor rcx, rsp
call fcn.1400c74e0
lea r11, [rsp + 0x370]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400c2210
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x29], esi
lea rcx, [rbp + 0x27]
call fcn.1400c1e20
nop
lea rdx, [0x14017bfe8]
cmp qword [0x14017c000], 0x10
cmovae rdx, qword [0x14017bfe8]
mov r8, qword [0x14017bff8]
mov rcx, rax
call fcn.14000c7f0
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 0xf
mov byte [rax], sil
or esi, 2
or esi, 1
mov dword [rbp - 0x29], esi
lea rcx, [rbp + 0x27]
call fcn.140006940
mov r14, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400c22b5
mov rbx, qword [rdi]
call fcn.1400c6a3c
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], r14
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp + 7]
call fcn.1400c0b30
or esi, 0xc
mov dword [rbp - 0x29], esi
lea rcx, [rbp + 7]
call fcn.1400c1c40
movzx ebx, al
lea rcx, [rbp + 7]
call fcn.1400c2d40
test bl, bl
jne 0x1400c23ba
mov r14, qword [rdi + 0x10]
mov rbx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400c2305
mov rbx, qword [rdi]
call fcn.1400c6a3c
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x11], r14
lea r8, [rbp - 0x19]
mov edx, eax
lea rcx, [rbp + 7]
call fcn.1400c0b30
or esi, 0x30
mov dword [rbp - 0x29], esi
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call fcn.1400c6c9c
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x1400c23d5
lea rcx, [rbp + 7]
call fcn.1400c2d40
test bl, bl
jne 0x1400c23ba
lea rdx, [rbp - 0x19]
call fcn.1400c23f0
nop
mov rcx, rax
call fcn.1400066f0
mov rdx, rax
mov r8, rdi
lea rcx, [rbp + 7]
call fcn.1400270e0
mov rdx, rax
mov rcx, rdi
call fcn.140006710
lea rcx, [rbp + 7]
call fcn.140006700
nop
lea rcx, [rbp - 0x19]
call fcn.140006700
mov rcx, rdi
call fcn.1400066f0
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rax, rdi
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea r8, [rbp + 7]
mov edx, eax
lea rcx, str.create_directory
call fcn.1400c1730
int3
Function at 0x1400c5470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400c54e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x1400c54e8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x1400c54d5
nop
cmp rbx, rcx
jae 0x1400c54e8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x1400c54c0
cmp rbx, rcx
jae 0x1400c54e8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x1400c54ea
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400c5800
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1b0
mov rax, qword [0x140170028]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rsi, rcx
mov qword [rsp + 0x60], rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
xor edx, edx
mov r8d, 0x12c
lea rcx, [rsp + 0x74]
call main
mov dword [rsp + 0x70], 0x130
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400c5929
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400067a0
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0x9c]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400c58a2
lea rdx, [rsp + 0x9c]
lea rcx, [rsp + 0x20]
call fcn.140003c30
mov rax, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400c58cc
mov rbx, qword [rbx]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
cmp r8, rax
jne 0x1400c58f7
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400c58f7
mov bl, 1
jmp 0x1400c58f9
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.140006940
nop
lea rcx, [rsp + 0x40]
call fcn.140006940
test bl, bl
jne 0x1400c5925
lea rdx, [rsp + 0x70]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
jmp 0x1400c5869
mov edi, dword [rsp + 0x78]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, rsi
call fcn.140006940
test edi, edi
je 0x1400c5943
mov eax, edi
jmp 0x1400c5945
xor eax, eax
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400c74e0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1400c59f0
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140170028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400c5970]
mov qword [rsp + 0x28], 0
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400c74e0
add rsp, 0x48
ret
Function at 0x1400c6928
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400c69ac
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400f2f80]
cmp byte [rcx + rax], 0
je 0x1400c69ac
dec r8
sub rdx, 1
jne 0x1400c6992
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x1400c82d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400c8322
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400c8322
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400c8322
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400c8322
cmp dword [rcx + 0x84], 0xe
jbe 0x1400c8322
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400c8324
xor al, al
add rsp, 0x28
ret
Function at 0x140003acc
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.14000147c
xor ebp, ebp
mov rcx, rax
test rax, rax
je 0x140003ba3
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 0x140003b7b
test eax, eax
js 0x140003b98
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 0x140003b3d
mov edx, edi
mov rcx, rbx
call fcn.140001eb4
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 0x140003b58
mov eax, ebp
jmp 0x140003b65
movsxd rdx, dword [rcx - 0xc]
call fcn.14000ba50
test eax, eax
js 0x140003b98
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x140003b98
mov dword [rcx - 0x10], eax
mov ecx, eax
mov rax, qword [rbx]
mov word [rax + rcx*2], bp
jmp 0x140003b80
call fcn.1400039c0
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.140001230
int3
mov ecx, 0x80004005
call fcn.140001230
int3
Function at 0x1400044a8
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rbp + 0x58], 0
lea rax, [rbp + 0x58]
mov rdi, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000002
lea rdx, str.SoftwareBraveSoftwareUpdateDev_
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004540
and dword [rbp + 0x48], eax
lea esi, [rax + 4]
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x40]
lea rax, [rbp + 0x48]
mov dword [rbp + 0x50], esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.IsEnabledLogToFile
mov dword [rbp + 0x40], esi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x58]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x140004540
cmp dword [rbp + 0x40], esi
jne 0x140004540
cmp dword [rbp + 0x48], ebx
je 0x140004540
mov al, 1
jmp 0x140004542
xor al, al
lea rdx, [rbp - 0x10]
mov byte [rdi + 0x93], al
mov rcx, rdi
call fcn.1400046f8
mov rbx, qword [rbp - 0x10]
cmp dword [rbx - 0x10], 0
je 0x1400045f2
lea rsi, str.LoggingSettings
mov r9, rbx
mov rcx, rsi
lea rdx, str.EnableLogging
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.ShowTime
test eax, eax
mov r8d, 1
mov rcx, rsi
setne al
mov byte [rdi + 0x90], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.LogToOutputDebug
test eax, eax
mov rcx, rsi
setne al
xor r8d, r8d
mov byte [rdi + 0x92], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r9, rbx
lea rdx, str.AppendToFile
test eax, eax
mov r8d, 1
mov rcx, rsi
setne al
mov byte [rdi + 0x94], al
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
setne al
jmp 0x140004609
mov byte [rdi + 0x90], 1
mov al, 1
mov byte [rdi + 0x92], 1
mov byte [rdi + 0x94], 0
mov byte [rdi + 0x95], al
cmp byte [rdi + 0x91], 0
je 0x14000461f
mov byte [rdi + 0x92], 1
mov byte [rdi], 1
lea rax, str.LC_UTIL
mov dword [rdi + 4], 7
xor esi, esi
mov r12, qword [rsi + rax]
movsxd r15, dword [rsi + rax + 8]
test r12, r12
je 0x1400046ab
cmp r15d, 9
ja 0x1400046ab
lea rdx, [rbp - 8]
mov rcx, rdi
mov r14d, 1
call fcn.1400046f8
mov rbx, qword [rbp - 8]
cmp dword [rbx - 0x10], 0
je 0x14000467b
mov r9, rbx
lea rcx, str.LoggingLevel
mov r8d, r14d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r14d, eax
test r14d, r14d
mov dword [rdi + r15*8 + 4], r14d
lea rdx, [rbx - 0x18]
setne cl
or eax, 0xffffffff
mov byte [rdi + r15*8], cl
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400046a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea rax, str.LC_UTIL
add rsi, 0x10
cmp rsi, 0x90
jb 0x140004632
call fcn.14000410c
mov rdx, qword [rbp - 0x10]
add rdx, 0xffffffffffffffe8
mov qword [rdi + 0x98], rax
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400046e6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret