joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003bd0
Capabilities:
Terminate process

Disassembly:
push rbx
push rdi
sub rsp, 0x48
lea rdx, [0x140055cc0]
mov ecx, 0x20
call qword [sym.imp.d3d9.dll_Direct3DCreate9Ex]
test eax, eax
jns 0x140003bf9
mov ecx, 3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edi, edi
mov qword [0x140055c7c], rdi
mov qword [0x140055c88], 1
mov qword [0x140055ca4], rdi
mov dword [0x140055cac], edi
mov eax, dword [0x140055d08]
mov dword [0x140055c70], eax
mov eax, dword [0x140055cd8]
mov dword [0x140055c74], eax
mov dword [0x140055c78], 0x15
mov dword [0x140055c84], edi
mov dword [0x140055ca0], 0x50
mov dword [0x140055c9c], 1
mov r9, qword [0x140055dd0]
mov qword [0x140055c90], r9
mov dword [0x140055c98], 1
mov rcx, qword [0x140055cc0]
mov rax, qword [rcx]
lea rdx, [0x140055dd8]
mov qword [rsp + 0x30], rdx
lea rdx, [0x140055c70]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x20
xor edx, edx
lea r8d, [rdi + 1]
call qword [rax + 0x80]
mov rbx, qword [0x140055d80]
test rbx, rbx
je 0x140003cb6
inc dword [rbx + 0xf4]
mov ecx, 0x5dd0
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rax
test rax, rax
je 0x140003ce7
xor edx, edx
mov rcx, rax
call fcn.14000c2c0
mov rdi, rax
mov qword [0x140055d80], rdi
call fcn.14000fae0
mov rax, qword [0x140055d80]
test rbx, rbx
cmovne rax, rbx
mov qword [0x140055d80], rax
mov rbx, qword [0x140055dd0]
lea rcx, [0x140055e48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140003e34
lea rcx, [0x140055e40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140003e34
mov qword [0x140055e38], rbx
mov rcx, qword [0x140055d80]
or dword [rcx + 0xc], 6
lea rax, str.imgui_impl_win32
mov qword [rcx + 0x88], rax
mov qword [rcx + 0xd0], rbx
mov dword [rcx + 0x900], 9
mov dword [rcx + 0x904], 0x25
mov dword [rcx + 0x908], 0x27
mov dword [rcx + 0x90c], 0x26
mov dword [rcx + 0x910], 0x28
mov dword [rcx + 0x914], 0x21
mov dword [rcx + 0x918], 0x22
mov dword [rcx + 0x91c], 0x24
mov dword [rcx + 0x920], 0x23
mov dword [rcx + 0x924], 0x2d
mov dword [rcx + 0x928], 0x2e
mov dword [rcx + 0x92c], 8
mov dword [rcx + 0x930], 0x20
mov dword [rcx + 0x934], 0xd
mov dword [rcx + 0x938], 0x1b
mov dword [rcx + 0x988], 0x41
mov dword [rcx + 0x990], 0x43
mov dword [rcx + 0x9dc], 0x56
mov dword [rcx + 0x9e4], 0x58
mov dword [rcx + 0x9e8], 0x59
mov dword [rcx + 0x9ec], 0x5a
jmp 0x140003e3b
mov rcx, qword [0x140055d80]
mov rax, qword [0x140055dd8]
lea rdx, str.imgui_impl_dx9
mov qword [rcx + 0x90], rdx
mov qword [0x140055e28], rax
mov rcx, qword [0x140055cc0]
mov rax, qword [rcx]
add rsp, 0x48
pop rdi
pop rbx
jmp qword [rax + 0x10]
Function at 0x14000d660
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000d6bd
lea rbx, [0x140048070]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000d6a4
cmp r10, 2
jb 0x14000d6a4
cmp byte [r9], r8b
jne 0x14000d6a4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000d680
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000d6ff
lea rbx, [0x140048070]
cmp r8b, 0x23
jne 0x14000d6e3
cmp byte [r9], r8b
jne 0x14000d6e3
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000d6d0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14000d840
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000d85a
mov qword [r8], 0
lea rdx, [0x14004d7dc]
call fcn.14000d710
mov rbx, rax
test rax, rax
jne 0x14000d87a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000d951
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d951
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000d951
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d951
cmp rdi, 0xffffffffffffffff
je 0x14000d951
mov rax, qword [0x140055d80]
test rax, rax
je 0x14000d8ee
inc dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000d951
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000d93e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140055d80]
test rax, rax
je 0x14000d933
dec dword [rax + 0xf4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000d95a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000d94c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000d95c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140010dc0
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov rax, qword [rcx + 0xf0]
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140048070]
not ebx
movzx eax, dl
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [r8 + rcx*4]
mov rcx, qword [0x140055d80]
not ebx
cmp dword [rcx + 0x3ee8], ebx
jne 0x140010e4b
movsxd r8, edx
mov ecx, ebx
mov edx, 4
call fcn.140023950
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x14001d430
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140055010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x140055d80]
mov edi, ecx
cmp byte [rbx + 0x4a2d], 0
jne 0x14001d491
cmp byte [rbx + 0x4a2e], 0
jne 0x14001d491
movsx r9d, word [rbx + 0x5b2a]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.14000d520
test dil, 1
je 0x14001d5b8
jmp 0x14001d51a
movss xmm1, dword [rbx + 0x3898]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x5b2a]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14004dd54]
mulss xmm1, dword [0x14004dd48]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xdfc]
addss xmm1, dword [rbx + 0xe00]
mov qword [rbx + 0x4790], rax
mov dword [rbx + 0x477c], 1
movss dword [rbx + 0x4788], xmm0
movss dword [rbx + 0x478c], xmm1
movss xmm0, dword [rbx + 0x38f4]
mulss xmm0, dword [0x14004dc54]
or dword [rbx + 0x4778], 0x41
movss dword [rbx + 0x47d8], xmm0
call fcn.14000d520
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14001d570
lea r11, [0x140048070]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x14001d553
cmp byte [r8], r9b
jne 0x14001d553
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 0x14001d540
not ecx
call fcn.1400148e0
test rax, rax
je 0x14001d5b8
cmp byte [rax + 0xae], 0
je 0x14001d5b8
mov byte [rax + 0xb5], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xd0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x5b2a]
mov edx, 0x10
movsx r9d, word [rbx + 0x5b2a]
call fcn.14000d520
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140016fa0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140044c60
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140022300
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c10], 0
lea rbx, [rcx + 0x5c18]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x1400223a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14002235a
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140024760
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14000dcd0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c10]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c20]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x140055d72]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x1400223af
mov rcx, rbx
call fcn.14000dcd0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140022920
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140055d80]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x140022983
mov qword [rsp], rbx
lea rbx, [0x140048070]
nop dword [rax]
cmp r9b, 0x23
jne 0x140022963
cmp byte [r8], r9b
jne 0x140022963
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x140022950
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5b88]
xor r8d, r8d
not eax
test ecx, ecx
jle 0x1400229b7
mov r10, qword [r10 + 0x5b90]
mov r9, rcx
mov edx, r8d
lea rcx, [r10 + 8]
cmp dword [rcx], eax
je 0x1400229be
inc r8d
inc rdx
add rcx, 0x48
cmp rdx, r9
jl 0x1400229a4
xor eax, eax
add rsp, 8
ret
movsxd rax, r8d
lea rcx, [rax + rax*8]
lea rax, [r10 + rcx*8]
add rsp, 8
ret
Function at 0x1400458d8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140045922
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140045922
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140045922
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140045922
cmp dword [rcx + 0x84], 0xe
jbe 0x140045922
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140045924
xor al, al
add rsp, 0x28
ret
Function at 0x140001d48
Capabilities:
Delete registry key

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
mov rsi, rdx
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
je 0x140001de9
mov rbx, qword [rcx]
cmp qword [rdi], 0
je 0x140001dc2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001de2
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140001de2
and qword [rsp + 0x28], 0
mov rdx, qword [rdi]
mov qword [rsp + 0x20], rdx
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov rcx, rbx
call qword [case.0x14002394e.0]
jmp 0x140001dd2
cmp dword [rdi + 8], 0
je 0x140001de2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov eax, 1
jmp 0x140001dd2
cmp byte [0x14003fe54], 0
jne 0x140001e34
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001e20
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x14003fe48], rax
jmp 0x140001e27
mov r10, qword [0x14003fe48]
mov eax, 1
mov byte [0x14003fe54], al
jmp 0x140001e3b
mov r10, qword [0x14003fe48]
mov rdx, rsi
mov rcx, qword [rbx]
test r10, r10
je 0x140001dcb
xor r9d, r9d
mov r8d, dword [rbx + 8]
mov rax, r10
call qword [case.0x14002394e.0]
jmp 0x140001dd2
Function at 0x140002460
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x70], rdi
lea r8d, [rdi + 0x60]
mov rcx, rdx
call fcn.1400014b0
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400024e7
lea r8d, [rdi + 2]
mov rcx, rbx
call fcn.1400014b0
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400024e7
call fcn.140001934
mov ebx, eax
jmp 0x1400025f2
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x140002508
call fcn.140001934
jmp 0x1400025e1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1400024fe
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140002543
mov ebx, 0x8007000e
jmp 0x1400025e3
mov ecx, eax
test eax, eax
je 0x140002575
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000262a
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140002575
lea rcx, [rsp + 0x70]
call fcn.140005114
jmp 0x14000257f
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140002591
cmp qword [rsp + 0x70], rdi
je 0x140002539
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400024fe
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140003240
mov ebx, eax
test rsi, rsi
je 0x1400025f2
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140002609
lea rcx, [rsp + 0x70]
call fcn.140004dc4
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140023620
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140001880
int3
Function at 0x1400049d4
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x50
cmp byte [0x14003fe69], 0
je 0x1400049f3
or eax, 0xffffffff
jmp 0x140004b17
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x68], eax
mov ebx, eax
test eax, eax
jns 0x140004a27
cmp eax, 0x80010106
jne 0x140004b15
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140004a2e
jmp 0x140004b15
mov byte [0x14003ff92], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea r8, [rsp + 0x68]
call fcn.140004be8
cmp al, 1
jne 0x140004b02
call fcn.140004f20
mov ebx, eax
test eax, eax
jne 0x140004aa5
lea edx, [rax + 1]
call fcn.140021ed8
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140004aa9
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x20]
call qword [sym.imp.USER32.dll_DispatchMessageW]
call fcn.140017758
xor r9d, r9d
lea rcx, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x140004a73
test ebx, ebx
js 0x140004b06
mov rdi, qword [0x140040140]
xor ebx, ebx
mov rcx, qword [0x140040148]
jmp 0x140004ae6
test ebx, ebx
jne 0x140004aeb
mov rax, qword [rdi]
test rax, rax
je 0x140004ae2
mov rax, qword [rax + 0x20]
cmp dword [rax + 8], ebx
je 0x140004ae2
mov ecx, dword [rax + 8]
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x140040148]
mov ebx, eax
add rdi, 8
cmp rdi, rcx
jb 0x140004abb
cmp byte [0x14003ff90], 0
je 0x140004b06
mov ecx, dword [0x14003ff8c]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140004b06
mov ebx, dword [rsp + 0x68]
cmp byte [0x14003ff92], 0
je 0x140004b15
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x140004f20
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rax - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov ebx, 1
mov rdi, qword [0x140040140]
mov rax, qword [0x140040148]
jmp 0x140004fe2
test ebx, ebx
js 0x140005101
mov rsi, qword [rdi]
test rsi, rsi
je 0x140004fde
and qword [rsp + 0x50], 0
cmp qword [rsi + 0x10], 0
jne 0x140004f78
xor ebx, ebx
jmp 0x140004fde
lea r8, [rsp + 0x50]
lea rdx, [0x140028880]
mov rcx, qword [rsi + 0x18]
mov rax, qword [rsi + 0x10]
call qword [case.0x14002394e.0]
mov ebx, eax
test eax, eax
js 0x140004fbf
mov rax, qword [rsi + 0x20]
add rax, 8
mov qword [rsp + 0x20], rax
mov r9d, 5
lea r8d, [r9 - 1]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoRegisterClassObject]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140004fd7
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x14002394e.0]
nop
mov rax, qword [0x140040148]
add rdi, 8
cmp rdi, rax
jb 0x140004f57
test ebx, ebx
js 0x140005101
jne 0x1400050fa
cmp byte [0x14003ff90], 0
je 0x1400050a7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x14003ff80], rax
test rax, rax
je 0x1400050a0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [0x14003ff30]
lea r8, [0x140005140]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x140005065
mov rcx, qword [0x14003ff80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [0x14003ff80], rdi
test rdi, rdi
je 0x1400050a0
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test eax, eax
jns 0x140005095
mov rcx, qword [0x14003ff80]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x14003ff88]
add edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400050af
mov ebx, 0x80004005
jmp 0x1400050b3
call qword [sym.imp.ole32.dll_CoResumeClassObjects]
mov ebx, eax
test ebx, ebx
jns 0x140005101
xor eax, eax
mov rdi, qword [0x140040140]
mov rcx, qword [0x140040148]
jmp 0x1400050f3
test eax, eax
jne 0x140005101
mov rdx, qword [rdi]
test rdx, rdx
je 0x1400050ef
mov rax, qword [rdx + 0x20]
mov edx, dword [rax + 8]
test edx, edx
jne 0x1400050e0
xor eax, eax
jmp 0x1400050ef
mov ecx, edx
call qword [sym.imp.ole32.dll_CoRevokeClassObject]
mov rcx, qword [0x140040148]
add rdi, 8
cmp rdi, rcx
jb 0x1400050c5
jmp 0x140005101
mov byte [0x14003ff90], 0
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x140005250
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
and qword [rbp - 0x10], 0
lea rax, [rbp - 0x10]
mov rbx, rcx
mov qword [rsp + 0x20], rax
mov rcx, 0xffffffff80000000
lea rdx, str.CLSID
mov r9d, 0x20019
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000531d
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x28]
and qword [rbp + 0x28], 0
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000530e
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x28], rax
lea rdx, str.InsecureQI
lea rax, [rbp + 0x20]
mov dword [rbp + 0x18], 4
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000530e
cmp dword [rbp + 0x18], 4
jne 0x14000530e
mov ebx, dword [rbp + 0x20]
cmp ebx, 3
ja 0x14000530e
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000531f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000531f
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x14000531d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x14000532e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x1400056e4
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
mov rbp, rsp
sub rsp, 0x30
cmp byte [0x14003fea0], 0
je 0x14000570a
mov eax, dword [0x14003fea4]
jmp 0x14000580e
and qword [rbp + 0x18], 0
lea rax, [rbp + 0x18]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwarePoliciesMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
lea rsi, [0x14003fea4]
test eax, eax
jne 0x140005776
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005776
cmp dword [rbp + 0x10], ebx
je 0x1400057e5
mov rcx, qword [rbp + 0x18]
and qword [rbp + 0x18], 0
test rcx, rcx
je 0x14000578a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp + 0x18]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftSecurity
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400057ed
mov rcx, qword [rbp + 0x18]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rdx, str.CLSIDInterfaceTest
xor r9d, r9d
mov qword [rsp + 0x20], rsi
xor r8d, r8d
mov dword [rbp + 0x10], ebx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400057ed
cmp dword [rbp + 0x10], ebx
jne 0x1400057ed
mov ebx, dword [0x14003fea4]
jmp 0x1400057f6
and dword [0x14003fea4], 0
xor ebx, ebx
mov rcx, qword [rbp + 0x18]
mov byte [0x14003fea0], 1
test rcx, rcx
je 0x14000580c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x140005f4c
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x480
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov rbx, rcx
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140005ff8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
lea rcx, [rsp + 0x28]
call fcn.140008b54
lea ecx, [rax - 3]
movsxd rdx, ecx
lea r8, [rsp + 0x28]
lea r8, [r8 + rdx*2]
lea rdx, [rsp + 0x28]
cmp eax, 3
cmovg rdx, r8
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x140005ff8
lea rdx, [rsp + 0x260]
mov rcx, rbx
call fcn.140008274
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140023620
add rsp, 0x480
pop rbx
ret
call fcn.140007bcc
int3