joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800392b0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x18005bd78], ebp
je 0x180039307
cmp rbx, 0x20
jae 0x1800392f0
xor ecx, ecx
jmp 0x1800392f2
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18005bd78], ebp
jne 0x1800392e6
cmp qword [0x18005bd80], r15
je 0x180039401
test rdi, rdi
jne 0x180039327
mov ecx, esi
call fcn.180038d80
mov ebp, eax
jmp 0x180039406
mov ecx, dword [0x18005c56c]
mov ebx, r15d
test ecx, ecx
je 0x18003934f
mov r8, qword [0x18005c560]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180039359
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180039340
mov ebp, 4
jmp 0x180039406
cmp ebx, 0xffffffff
je 0x18003934f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x1800393f8
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.180038aa0
mov edx, esi
mov ecx, ebx
call fcn.180038c50
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180039406
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1800393e2
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x1800393d8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x1800393b0
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x18005bd80]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180039406
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180039406
mov ebp, 2
xchg dword [0x18005bd78], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18003d350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x18005bd28]
mov rdx, qword [str.Assembly_CSharp]
mov rcx, qword [0x18005bcf0]
call rax
mov r9, qword [0x18005bd50]
lea r8, str.Concussed
lea rdx, str.CustomPlayerEffects
mov rcx, qword [rax]
call r9
mov r9, qword [0x18005bd58]
xor r8d, r8d
lea rdx, str.OnEffectUpdate
mov rcx, qword [rax + 0x78]
call r9
mov rbx, rax
mov dword [rbp - 0x59], 0x746e413f
mov dword [rbp - 0x55], 0x6e6f4369
mov dword [rbp - 0x51], 0x73737563
mov byte [rbp - 0x4d], 0
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x19]
call fcn.180002ca0
mov qword [rsp + 0x20], rax
lea r9, [0x18005bde0]
lea r8, [0x18003d0a0]
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.1800399b0
nop
mov edx, 1
mov rcx, qword [rax + 0x20]
call fcn.1800392b0
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0x10
jb 0x18003d442
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003d43d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003d43d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180044c54
movdqa xmm0, xmmword [0x180052a90]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
mov rax, qword [0x18005bd28]
mov rdx, qword [str.Assembly_CSharp]
mov rcx, qword [0x18005bcf0]
call rax
mov r9, qword [0x18005bd50]
lea r8, str.Flashed
lea rdx, str.CustomPlayerEffects
mov rcx, qword [rax]
call r9
mov r9, qword [0x18005bd58]
xor r8d, r8d
lea rdx, str.Update
mov rcx, qword [rax + 0x78]
call r9
mov rbx, rax
mov dword [rbp - 0x59], 0x746e416b
mov dword [rbp - 0x55], 0x616c4669
mov word [rbp - 0x51], 0x6873
mov byte [rbp - 0x4f], 0
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 7]
call fcn.180002ca0
mov qword [rsp + 0x20], rax
lea r9, [0x18005bdd8]
lea r8, [0x18003cd90]
lea rdx, [rbp + 0x27]
mov rcx, rbx
call fcn.1800399b0
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0x10
jb 0x18003d522
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18003d51d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18003d51d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180044c54
mov rbx, qword [rsp + 0xf8]
add rsp, 0xe0
pop rbp
ret
Function at 0x180043e70
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
test edx, edx
je 0x180043eb2
cmp edx, 1
jne 0x180043ee0
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x180043b80]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
cmp dword [0x18005c000], 0
je 0x180043ee0
xor edx, edx
xor ecx, ecx
call fcn.1800392b0
mov rcx, qword [0x18005bff8]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov qword [0x18005bff8], rax
mov dword [0x18005c000], eax
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140001a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
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
jne 0x140001a43
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x140001a87
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001a82
cmp rbx, r11
jae 0x140001a87
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001a70
cmp rbx, r11
jb 0x140001a8b
xor eax, eax
jmp 0x140001a97
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140011f90
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
mov rcx, qword [rcx + 0x40]
mov rsi, rdx
xor ebx, ebx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140011ff5
lea ecx, [rbx + 1]
mov qword [rsp + 0x30], rdi
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x140011fea
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x140011fea
mov rdx, rax
mov rcx, rsi
call fcn.140001420
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, 1
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
ret

Function at 0x140012060
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rsi
mov qword [rbp + 0x30], rdi
mov qword [rbp + 0x38], r12
mov rax, qword [0x1419d0c58]
xor rax, rbp
mov qword [rbp + 8], rax
mov rdi, rdx
mov rbx, rcx
test rdx, rdx
je 0x1400121a1
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1400121a1
call fcn.1400304a0
mov rcx, qword [rax + 8]
call fcn.14002dda0
mov rcx, qword [rbx + 0x40]
xor esi, esi
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x140012194
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x2002
inc eax
movsxd rdx, eax
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov r12, rax
test rax, rax
je 0x14001218e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x140012119
mov rax, rsi
jmp 0x140012160
lea r8d, [rax + rax]
cdqe
add rax, rax
lea rcx, [rax + 0xf]
cmp rcx, rax
ja 0x140012135
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.140080f60
sub rsp, rcx
mov r9d, 3
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.1400057d0
nop word [rax + rax]
movzx ecx, byte [rax]
inc rbx
inc rax
mov byte [rbx - 1], cl
test cl, cl
jne 0x140012160
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, r12
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
test rax, rax
setne sil
call qword [sym.imp.USER32.dll_CloseClipboard]
lea rcx, [rbp]
call fcn.140012010
mov eax, esi
jmp 0x1400121a3
xor eax, eax
mov rcx, qword [rbp + 8]
xor rcx, rbp
call fcn.140068690
mov rbx, qword [rbp + 0x20]
mov rsi, qword [rbp + 0x28]
mov rdi, qword [rbp + 0x30]
mov r12, qword [rbp + 0x38]
lea rsp, [rbp + 0x10]
pop rbp
ret
Function at 0x140017c00
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x40
mov r8, qword [rcx]
mov r10d, dword [rcx + 0x24]
mov r12, rcx
movzx eax, word [r8 + 0x14]
mov r15, qword [r8 + 0x30]
dec r10d
mov r9d, dword [rax + r8 + 0x20]
lea rbx, [rax + r8 + 0x18]
movabs rax, 0xffffffff00000000
and r15, rax
mov eax, dword [rbx + 0x10]
not r10d
or r9, r15
and r10, r9
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x28], r10
test eax, eax
jne 0x140017c6a
mov ecx, dword [rbx + 0x24]
test cl, 0x40
je 0x140017c62
mov eax, dword [r8 + 0x20]
jmp 0x140017c6a
test cl, cl
jns 0x140017c6a
mov eax, dword [r8 + 0x24]
mov ecx, dword [rbx + 0x24]
mov edx, eax
mov eax, 1
xor r14d, r14d
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x3c], r14d
mov ebp, eax
cmp ax, word [r8 + 6]
jae 0x140017d69
add rbx, 0x4c
nop dword [rax + rax]
mov edi, dword [r12 + 0x24]
mov r13d, dword [rbx - 0x1c]
mov esi, dword [rbx - 0x14]
dec edi
or r13, r15
not edi
and rdi, r13
test esi, esi
jne 0x140017cde
mov eax, dword [rbx]
test al, 0x40
je 0x140017cd6
mov esi, dword [r8 + 0x20]
jmp 0x140017cde
test al, al
jns 0x140017cde
mov esi, dword [r8 + 0x24]
cmp r10, rdi
je 0x140017d20
lea rax, [rdx + r9]
cmp rax, rdi
ja 0x140017d20
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.140017b00
test eax, eax
je 0x140017da2
mov ecx, dword [rbx]
mov edx, esi
mov r9, r13
mov qword [rsp + 0x20], r13
mov r10, rdi
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rdx
jmp 0x140017d4d
mov eax, dword [rbx]
bt eax, 0x19
jae 0x140017d36
bt ecx, 0x19
jae 0x140017d36
or ecx, eax
mov dword [rsp + 0x38], ecx
jmp 0x140017d40
or ecx, eax
btr ecx, 0x19
mov dword [rsp + 0x38], ecx
mov edx, esi
sub rdx, r9
add rdx, r13
mov qword [rsp + 0x30], rdx
mov r8, qword [r12]
inc ebp
add rbx, 0x28
movzx eax, word [r8 + 6]
cmp ebp, eax
jl 0x140017cb0
mov eax, 1
lea rdx, [rsp + 0x20]
mov rcx, r12
mov dword [rsp + 0x3c], eax
call fcn.140017b00
test eax, eax
setne r14b
mov eax, r14d
mov r13, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
xor eax, eax
jmp 0x140017d83
Function at 0x140019bd0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rdx
test rcx, rcx
je 0x140019be2
mov rcx, qword [rcx + 0x40]
mov r8, qword [rdx]
lea rdx, str.open
xor r9d, r9d
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rbx]
sub rdx, 0x18
cmp eax, 0x20
jg 0x140019c31
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140019c29
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x30
pop rbx
ret
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140019c48
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x140023bc0
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 r12
push r13
sub rsp, 0x20
mov r12, r8
mov rbx, rdx
mov r13, rcx
xor edi, edi
call fcn.1400304a0
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
cmp rax, rdi
je 0x140023c1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov r9, rbp
mov r8, r12
mov rdx, rdi
mov rcx, r13
call fcn.140023650
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret

Function at 0x140023cb0
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 rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x140023cef
cmp dword [rcx + 0xa8], 0
jne 0x140023cef
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.1400304a0
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140023c54
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140025ce4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.1400538ac
mov rsi, rax
test rax, rax
je 0x140025d60
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140025d5b
cmp dword [rbx], 0x40
jb 0x140025d5b
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x140025d5b
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140025d64
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002d2a4
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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x14002d30c
call fcn.1400304a0
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14002d30c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14002d32e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.14002ccb4
mov esi, eax
test rdi, rdi
je 0x14002d32c
test rbx, rbx
je 0x14002d32c
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 r12
ret

Function at 0x14002d7dc
Capabilities:
Get graphical window text

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
movsxd rsi, r8d
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0xa0], 0
jne 0x14002d81a
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14002d8ce
call fcn.140024aa4
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x14002d839
mov ecx, 0x80004005
call fcn.140001010
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xa0]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x118]
mov rdx, rsi
or rsi, 0xffffffffffffffff
mov r9, rsi
mov r8, qword [rsp + 0x40]
mov rcx, rdi
call fcn.14006d488
test eax, eax
je 0x14002d8a1
cmp eax, 0xc
je 0x14002d89b
cmp eax, 0x16
je 0x14002d895
cmp eax, 0x22
je 0x14002d895
cmp eax, 0x50
je 0x14002d8a1
call fcn.140024974
int3
call fcn.140024974
int3
call fcn.14002492c
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov ecx, esi
lock xadd dword [rdx + 0x10], ecx
add ecx, esi
test ecx, ecx
jg 0x14002d8cc
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140030930
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 + 0xa8], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x1400309a7
call fcn.1400308bc
mov rsi, rax
test rax, rax
jne 0x140030963
mov eax, edi
jmp 0x1400309bd
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x34]
xor r8d, r8d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rsi
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14003095f
mov r9, qword [rcx + 0xd0]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
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 0x140048210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov r13, rdx
mov r12, rcx
call fcn.1400304a0
mov rbx, qword [rax + 0x18]
mov r8d, 0xf1
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r14d, r14d
cmp rax, r14
jne 0x140048256
xor eax, eax
jmp 0x14004832f
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
cmp rax, r14
je 0x14004824f
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
cmp rax, r14
je 0x14004824f
movzx ecx, word [rax + 6]
mov eax, 4
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140022ddc
mov r9d, r14d
mov rbp, rax
cmp r14w, word [rbx + 6]
jae 0x1400482c8
mov rdx, rax
lea r8, [rbx + 8]
movzx ecx, word [r8]
inc r9d
add r8, 2
mov dword [rdx], ecx
movzx eax, word [rbx + 6]
add rdx, 4
cmp r9d, eax
jl 0x1400482ae
movzx r8d, word [rbx + 6]
mov rdx, rbp
mov rcx, r12
call fcn.140046a2c
mov rcx, rbp
mov esi, eax
call fcn.140022e28
cmp esi, r14d
je 0x140048324
movzx ecx, word [rbx + 4]
movzx eax, word [rbx + 2]
mov dword [rsp + 0x60], eax
add eax, 7
mov dword [rsp + 0x64], ecx
mov r8, qword [rsp + 0x60]
mov dword [rsp + 0x68], eax
lea eax, [rcx + 7]
mov dword [rsp + 0x6c], eax
mov rdx, qword [rsp + 0x68]
mov rcx, r12
call fcn.140047254
mov rdx, r13
mov rcx, r12
call fcn.140047328
mov esi, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret

Function at 0x14004fb9c
Capabilities:
Move file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x14004fbbf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.140064fa0
add rsp, 0x20
pop rbx
ret

Function at 0x14004fbc8
Capabilities:
Delete file

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14004fbeb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rbx
mov ecx, eax
call fcn.140064fa0
add rsp, 0x20
pop rbx
ret
Function at 0x140054500
Capabilities:
Query or enumerate registry value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
mov rdi, r9
mov rsi, r8
mov rbx, rcx
lea rcx, [rsp + 0x40]
call fcn.14000bfd0
nop
cmp rbx, 0xffffffff80000000
jne 0x14005458c
call fcn.14002fa3c
cmp eax, 1
jne 0x14005458c
lea r8, [rsp + 0x40]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x20]
call fcn.14001ab80
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002270
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140054585
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, 0xffffffff80000001
mov r9, rdi
mov r8, rsi
mov rdx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400545c3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400545d8
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, r9
mov esi, r8d
mov rbx, rcx
lea rcx, [rsp + 0x50]
call fcn.14000bfd0
nop
cmp rbx, 0xffffffff80000000
jne 0x140054664
call fcn.14002fa3c
cmp eax, 1
jne 0x140054664
lea r8, [rsp + 0x50]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x30]
call fcn.14001ab80
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140002270
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14005465d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, 0xffffffff80000001
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
mov r9, rdi
mov r8d, esi
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ebx, eax
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400546a3
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret