joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400050d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x50
xor ebx, ebx
mov r14, r8
mov qword [r8 + 0x28], rbx
mov rsi, rdx
test rdx, rdx
jne 0x1400050f6
lea eax, [rdx + 1]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rdi
mov rdi, qword [rcx + 0x1d0]
test rdi, rdi
jne 0x14000512e
lea r8d, [rdi + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [0x140013ad0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
mov rdi, rbx
cmovne rdi, qword [rsp + 0x28]
movzx edx, si
mov r8d, 0xa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x1400051a9
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400051a9
mov rcx, rax
mov qword [rsp + 0x80], r15
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140005198
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r15
mov qword [r14 + 0x28], rbx
mov r8d, eax
mov rcx, r14
call fcn.140014780
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r15, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rax, rbx
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop r14
pop rsi
pop rbx
ret

Function at 0x14000cad0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x1c8], 0
mov ebx, edx
mov rdi, rcx
jne 0x14000caf8
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14003a078
test ebx, ebx
jne 0x14000cb13
mov qword [0x1402bf490], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1402cccc8], eax
cmp qword [0x1402bf490], 0
je 0x14000cb41
mov edx, ebx
mov rcx, rdi
call fcn.14003a078
movsxd rcx, eax
mov qword [0x1402bf490], rcx
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
cmp ebx, 2
jl 0x14000cb31
lea rcx, [0x1402ccf30]
call fcn.140015010
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rdi + 0x1c8]
lea rdx, vtable.rg_n1::rg_n7771.0
sub eax, dword [0x1402cccc8]
mov r8, qword [rcx]
cmp r8, rdx
jne 0x14000cb8c
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, eax
call qword [r8 + LoadRegTypeLib]
jmp 0x14000cb81
Function at 0x14000e810
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
lea rcx, [0x1402cce98]
call fcn.140012920
test rax, rax
jne 0x14000e836
add rsp, 0x60
pop rbx
ret
lea rdx, [rsp + 0x28]
call fcn.14000e8c0
nop
mov rcx, rax
call fcn.140002b70
cmp eax, 1
sete bl
lea rcx, vtable.CVolMem.0
mov qword [rsp + 0x28], rcx
mov rdx, qword [rsp + 0x40]
test rdx, rdx
je 0x14000e87f
mov rax, qword [rsp + 0x28]
mov r8, qword [rax + 0x18]
cmp rax, rcx
jne 0x14000e8b4
lea rcx, [0x1402cce68]
call fcn.140014e00
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
lea rax, vtable.CVolObject.0
mov qword [rsp + 0x28], rax
test bl, bl
je 0x14000e8a9
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 1
add rsp, 0x60
pop rbx
ret
lea rcx, [rsp + 0x28]
call r8
jmp 0x14000e87f

Function at 0x14000eb60
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov rax, qword [rdx + 0x28]
xor r8d, r8d
test rax, rax
jne 0x14000eb75
mov edx, r8d
jmp 0x14000eb79
mov rdx, qword [rdx + 0x18]
mov dword [rsp + 0x48], r8d
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], r8
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x1400121f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push r12
push r14
push r15
sub rsp, 0x80
mov qword [rax - 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rsi, r8
mov ebx, edx
test r8, r8
je 0x140012389
mov rdi, qword [rcx + 0x1d0]
xor r12d, r12d
test rdi, rdi
jne 0x140012256
lea r8d, [rdi + 0x30]
lea rdx, [rax - 0x48]
lea rcx, [0x140013ad0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, r12d
test rax, rax
cmovne rdi, qword [rsp + 0x58]
test ebx, ebx
je 0x14001228f
cmp ebx, 3
je 0x14001228f
sub ebx, 1
je 0x14001227e
cmp ebx, 1
jne 0x140012389
movzx edx, si
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadIconW]
jmp 0x14001238b
movzx edx, si
mov rcx, rdi
call qword [sym.imp.USER32.dll_LoadCursorW]
jmp 0x14001238b
movzx edx, si
mov r8d, 0xa
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140012389
mov rsi, r12
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rax, rax
je 0x140012389
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
test rax, rax
je 0x140012358
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], r12
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r8d, eax
test eax, eax
je 0x140012331
mov rdx, r15
lea rcx, [rsp + 0x28]
call fcn.14000f510
test rax, rax
je 0x140012331
mov rsi, qword [rsp + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], r12
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140012358
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov qword [rsp + 0x48], r12
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
test rsi, rsi
je 0x140012389
cmp ebx, 3
jne 0x140012384
mov rcx, rsi
call fcn.140011c30
mov rbx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, rbx
jmp 0x14001238b
mov rax, rsi
jmp 0x14001238b
xor eax, eax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140012450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push r15
sub rsp, 0x50
xor ebx, ebx
mov rbp, r9
mov qword [r8 + 0x28], rbx
mov r15, r8
mov rsi, rdx
test rdx, rdx
jne 0x140012485
lea eax, [rdx + 1]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rsi
pop rbp
ret
mov qword [rsp + 0x70], rdi
mov rdi, qword [rcx + 0x1d0]
test rdi, rdi
jne 0x1400124b8
lea r8d, [rdi + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [0x140013ad0]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
mov rdi, rbx
cmovne rdi, qword [rsp + 0x28]
movzx edx, si
mov r8, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbp, rax
test rax, rax
je 0x14001252a
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14001252a
mov rcx, rax
mov qword [rsp + 0x78], r14
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x14001251c
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov qword [r15 + 0x28], rbx
mov r8d, eax
mov rcx, r15
call fcn.140014780
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov r14, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop rsi
pop rbp
ret
Function at 0x1400136f0
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x28]
sub rsp, 0x120
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rdi, r8
mov rbx, rcx
test rcx, rcx
je 0x1400138b5
cmp word [rcx], 0
je 0x1400138b5
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x4c]
call fcn.1401d7d00
mov dword [rbp - 0x50], 0x68
test rdi, rdi
js 0x140013753
or dword [rbp - 0x14], 1
mov word [rbp - 0x10], di
lea rax, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x50], rax
lea r14, vtable.CVolObject.0
mov qword [rsp + 0x50], r14
xor edi, edi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], rdi
lea rsi, vtable.CVolMem.0
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rbp - 0x80], 0x40
cmp word [rbx], di
jne 0x1400137d7
mov rax, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x78]
sub rax, rbx
cmp rax, 2
jl 0x1400137c3
mov rax, qword [rsp + 0x68]
mov word [rax + rbx], di
add qword [rsp + 0x78], 2
jmp 0x140013801
lea rdx, [rbx + 2]
lea rcx, [rsp + 0x50]
call fcn.140014420
mov word [rax + rbx], di
jmp 0x140013801
mov r8, 0xffffffffffffffff
nop
lea r8, [r8 + 1]
cmp word [rbx + r8*2], 0
jne 0x1400137e0
lea r8, [r8*2 + 2]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140014780
mov rdx, qword [rsp + 0x68]
cmp qword [rsp + 0x78], 0
cmove rdx, rdi
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14001384b
mov rbx, rdi
jmp 0x140013873
mov edx, 0x1f4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov qword [rsp + 0x50], rsi
mov rdx, qword [rsp + 0x68]
test rdx, rdx
je 0x14001389c
mov rax, qword [rsp + 0x50]
mov r8, qword [rax + 0x18]
cmp rax, rsi
jne 0x1400138d4
lea rcx, [0x1402cce68]
call fcn.140014e00
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x50], r14
mov rax, rbx
jmp 0x1400138b7
xor eax, eax
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rcx, [rsp + 0x50]
call r8
jmp 0x14001389c
Function at 0x1400138e0
Capabilities:
Get common file path
Set current directory

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1c8]
sub rsp, 0x2b0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1402be8c0]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
test rcx, rcx
je 0x140013aa0
cmp word [rcx], 0
je 0x140013aa0
lea rcx, vtable.CVolCommonBaseWithMemManager.0
mov qword [rsp + 0x20], rcx
lea r14, vtable.CVolObject.0
mov qword [rsp + 0x20], r14
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rsi
lea rax, vtable.CWString.0
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x78], rax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rsi
lea rax, vtable.CVolMem.0
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], 0x40
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x70], 0xfe
mov ebx, esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rsi
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x1400139dd
test ax, ax
je 0x140013a1c
cmp word [rdi + 2], 0x3a
jne 0x140013a1c
cmp word [rdi + 4], 0x5c
jne 0x140013a1c
mov edx, 0x5c
mov rcx, rdi
call fcn.1401d744c
test rax, rax
je 0x140013a17
cmp rax, rdi
jbe 0x140013a00
lea rcx, [rax - 2]
cmp word [rcx], 0x3a
cmovne rax, rcx
sub rax, rdi
lea r8, [rax + 2]
sar r8, 1
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140016050
mov rbx, qword [rsp + 0x38]
test rbx, rbx
jne 0x140013a3b
cmp qword [rsp + 0x68], rbx
jne 0x140013a31
lea rbx, [0x1402687c0]
jmp 0x140013a3b
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140013a68
cmp word [rbx], 0
je 0x140013a68
lea rdx, [rbp - 0x70]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x140013a68
cmp word [rbx], 0
je 0x140013a63
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rsi, rsi
je 0x140013a8b
cmp word [rbp - 0x70], 0
je 0x140013a8b
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
nop
lea rcx, [rsp + 0x40]
call fcn.140006550
nop
mov qword [rsp + 0x20], r14
mov rax, rbx
jmp 0x140013aa2
xor eax, eax
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401d5a70
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140028ad0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x10
movdqa xmm4, xmmword [0x140274220]
xor ebx, ebx
movdqa xmm5, xmmword [0x1402741f0]
xor edi, edi
movaps xmmword [rsp], xmm6
mov r10, r8
movdqa xmm6, xmmword [0x1402741c0]
mov r9, rdx
xorps xmm3, xmm3
cmp r8, 4
jb 0x140028b97
nop dword [rax]
movdqu xmm1, xmmword [r9 + rbx*4]
add rbx, 4
mov edx, 8
movdqa xmm0, xmm1
movdqa xmm2, xmm1
pand xmm0, xmm5
pand xmm1, xmm6
pcmpeqd xmm0, xmm3
pcmpeqd xmm1, xmm3
pxor xmm1, xmm0
pand xmm2, xmm4
pmovmskb eax, xmm1
pcmpeqd xmm2, xmm3
pxor xmm0, xmm2
movzx ecx, ax
popcnt r8, rcx
pmovmskb eax, xmm0
shr r8, 2
movzx ecx, ax
popcnt rax, rcx
shr rax, 2
sub rdx, rax
pmovmskb eax, xmm2
add rdx, rdx
movzx ecx, ax
popcnt rax, rcx
shr rax, 2
lea rax, [rax + rax*2]
sub rdx, rax
lea rax, [rbx + 4]
sub rdx, r8
add rdi, rdx
cmp rax, r10
jbe 0x140028b10
lea r11, [r9 + rbx*4]
xor r9d, r9d
mov eax, r9d
sub r10, rbx
je 0x140028be8
nop word [rax + rax]
mov edx, dword [r11 + rax*4]
xor r8d, r8d
cmp edx, 0x7ff
seta r8b
xor ecx, ecx
cmp edx, 0x7f
seta cl
add r8, rcx
xor ecx, ecx
cmp edx, 0xffff
seta cl
inc rax
inc rcx
add r9, rcx
add r9, r8
cmp rax, r10
jb 0x140028bb0
mov rbx, qword [rsp + 0x20]
lea rax, [r9 + rdi]
movaps xmm6, xmmword [rsp]
add rsp, 0x10
pop rdi
ret

Function at 0x1400381a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
xor edi, edi
xor ebx, ebx
mov r15, r9
mov rsi, r8
mov rbp, rdx
mov r12, rcx
test r8, r8
je 0x140038216
call fcn.140043444
mov r8d, 0xf0
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140038216
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14003826b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov esi, 1
test rdi, rdi
je 0x14003824a
mov rcx, qword [r12]
mov r9, r15
mov r8, rdi
mov rdx, rbp
mov rax, qword [rcx + 0x40]
mov rcx, r12
call qword [case.0x140068c1e.0]
mov esi, eax
test rbx, rbx
je 0x14003824a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140038269
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x140]
mov rdx, r15
call qword [case.0x140068c1e.0]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x14003c710
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x14003c778
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x14003c762
cmp qword [rcx + 0x18], 0
jne 0x14003c75d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x14003c77e
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x14003c778
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp fcn.140094680
call fcn.1400419f8
int3
call fcn.1400419f8
int3

Function at 0x14003cec8
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x14003cf43
xor r8d, r8d
call fcn.14003d190
mov rsi, rax
test rax, rax
je 0x14003cf3f
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14003cf3f
mov eax, dword [rsp + 0x30]
jmp 0x14003cf59
mov eax, edi
jmp 0x14003cf59
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14003db10
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14003db77
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003db8b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14003db8b
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x140068c1e.0]
jmp 0x14003db90
cmp dword [rcx + 8], 0
je 0x14003db8b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14003db90
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140040ba8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140040bce
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14003db10
jmp 0x140040c39
cmp byte [0x1402c5430], 0
jne 0x140040c12
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140040c02
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c5428], rax
jmp 0x140040c09
mov rax, qword [0x1402c5428]
mov byte [0x1402c5430], 1
jmp 0x140040c19
mov rax, qword [0x1402c5428]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x140040c33
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x140068c1e.0]
jmp 0x140040c39
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140040c44
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140040f44
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140040f86
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret

Function at 0x1400413c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140041492
test rbx, rbx
je 0x140041492
test r9, r9
je 0x140041492
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004148e
cmp dword [rsp + 0x48], 3
jne 0x14004148e
test eax, eax
jne 0x14004148e
cmp dword [rdi], eax
je 0x14004148e
mov ecx, dword [rdi]
call fcn.140035420
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140041482
cmp dword [rsp + 0x48], 3
jne 0x140041482
test eax, eax
jne 0x140041482
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rbx]
call fcn.140035418
and qword [rbx], 0
xor eax, eax
jmp 0x14004146d
call fcn.1400419f8
int3
Function at 0x140041874
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140041885
xor eax, eax
jmp 0x1400418b3
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x1400418bc
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x1400418cd
xor eax, eax
jmp 0x1400418f1
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140045fa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov r14, rcx
test rdx, rdx
je 0x140046010
call fcn.140043444
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140046010
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140046032
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.1400b6d5c
mov esi, eax
test rdi, rdi
je 0x140046030
test rbx, rbx
je 0x140046030
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140046d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
test rcx, rcx
je 0x140046e68
mov rcx, qword [rcx + 0x40]
test rcx, rcx
je 0x140046e68
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140046e68
test rsi, rsi
je 0x140046e68
xor r15d, r15d
xor ebp, ebp
xor edi, edi
call fcn.140043444
lea r8, str.AFX_DIALOG_LAYOUT
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x140046e35
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, rsi
mov rcx, r14
mov r15d, eax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x140046e68
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov r8d, r15d
mov rdx, rbp
mov rcx, rbx
call fcn.1400b79d4
mov esi, eax
test rbp, rbp
je 0x140046e58
test rdi, rdi
je 0x140046e58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
test esi, esi
je 0x140046e64
mov rcx, rbx
call fcn.140046a50
mov eax, esi
jmp 0x140046e6a
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret