joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002d6dc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001676c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002d766
cmp byte [rbp - 0x21], r15b
je 0x14002d761
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002d79c
call fcn.140021714
test eax, eax
jne 0x14002d788
cmp byte [rbp - 0x21], r15b
je 0x14002d780
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002d79c
cmp byte [rbp - 0x21], r15b
je 0x14002d799
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001a1ec
test eax, eax
jne 0x14002d83c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001676c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002d7db
cmp byte [rbp - 0x21], r15b
je 0x14002d810
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002d810
call fcn.140021714
test eax, eax
jne 0x14002d7fc
cmp byte [rbp - 0x21], r15b
je 0x14002d7f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002d810
cmp byte [rbp - 0x21], r15b
je 0x14002d80d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001a1ec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002d83c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002d83f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002d84d
mov rcx, rdi
call fcn.14001e2b0
cmp byte [rbp + 0x3f], r15b
je 0x14002d85c
mov rcx, qword [rbp + 0x27]
call fcn.14001e2b0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x14002edc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ede8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ede8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1402ac840
Capabilities:
Parse pe header

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

Function at 0x1402b0e84
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1402b0c80
Function at 0x1402b38e0
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1402b3967
mov rsi, rbx
cmp word [rax], bp
je 0x1402b3926
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1402b3910
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1402b390c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1402b4300
mov rdi, rax
test rax, rax
je 0x1402b3954
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402b9250
mov rbp, rdi
xor ecx, ecx
call fcn.1402b25a8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402b8ab0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1402b8ad8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1402b8ad8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x2c9662010
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2c9667f50
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2c9667f50
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x2c9662080
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x2c966d054]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x2c9662230
mov rax, qword [0x2c966d058]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x2c96620cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2c9662157
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x2c96620b0
mov rcx, r12
call fcn.2c9662920
mov rbp, rax
test rax, rax
je 0x2c966228d
mov rax, qword [0x2c966d058]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.2c9662a50
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2c966d058]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2c9662272
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2c9662150
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2c96621e0
add dword [0x2c966d054], 1
cmp ebx, 8
jae 0x2c9662188
test bl, 4
jne 0x2c9662240
test ebx, ebx
je 0x2c9662179
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x2c9662260
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x2c9662179
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x2c96621ba
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x2c966d058]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2c9662150
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2c9662010
xor edi, edi
jmp 0x2c96620d7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x2c9662179
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x2c9662179
mov rax, qword [0x2c966d058]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.2c9662010
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2c9662010
nop
nop dword [rax]
Function at 0x2c9662590
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2c966d080]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2c966d060]
test rbx, rbx
je 0x2c96625e4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2c96625db
test r12, r12
je 0x2c96625db
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2c96625c0
lea rcx, [0x2c966d080]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x2c9662920
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x2c966a790]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x2c9662999
mov rcx, r10
call fcn.2c96627f0
test eax, eax
je 0x2c9662999
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x2c9662996
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x2c966298d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x2c9662999
add r8, 0x28
cmp r8, r9
jne 0x2c9662978
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400022e0
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x30
mov r15, rcx
mov edi, edx
mov ecx, 0x14
call fcn.1400025f0
mov edx, 0x14
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x140002320
mov rcx, rbx
call fcn.1400025e8
xor eax, eax
add rsp, 0x30
pop r15
pop rdi
pop rbx
ret
movzx edx, di
lea r8, [0x1401afb8c]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
je 0x14000230d
mov rdx, rax
mov qword [rsp + 0x50], rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x140002360
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140002378
mov rcx, rbx
call fcn.1400025e8
mov rbp, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop r15
pop rdi
pop rbx
ret
mov rcx, rax
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
test rax, rax
jne 0x14000239d
mov rcx, rbx
call fcn.1400025e8
xor eax, eax
jmp 0x140002471
mov ecx, 0x64
mov qword [rsp + 0x60], r14
call fcn.1400025f0
lea r9, str.SYSTEM32
mov qword [rsp + 0x20], r15
mov r8, rbx
lea rdx, str._s_s_s.dll
mov rcx, rax
mov rdi, rax
call fcn.140002500
lea rdx, [0x1401afba0]
mov rcx, rdi
call fcn.140185ba8
mov r14, rax
test rax, rax
je 0x14000245a
mov r8, rbp
mov r9, rax
mov edx, 1
mov rcx, rsi
call fcn.140185df4
mov rcx, r14
call fcn.140185a6c
lea r9, str.SYSTEM32
mov qword [rsp + 0x20], r15
mov r8, rbx
lea rdx, str._s_s_s
mov rcx, rdi
call fcn.140002500
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp rax, 0x20
jb 0x14000245a
lea rdx, [0x1401afbb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000245a
call rax
mov rcx, rbx
call fcn.1400025e8
mov rcx, rdi
call fcn.1400025e8
mov eax, 1
jmp 0x14000246c
mov rcx, rbx
call fcn.1400025e8
mov rcx, rdi
call fcn.1400025e8
xor eax, eax
mov r14, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r15
pop rdi
pop rbx
ret

Function at 0x140002570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_720
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov qword [rcx + 0xf0], rdx
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
test rdx, 0xffffffffffff0000
jne 0x1400133d7
cmp dword [rcx + 0xe8], 0
jne 0x1400133d7
movzx eax, dx
mov dword [rcx + 0xe8], eax
call fcn.140007f48
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.140013734
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140002a64
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
movsxd rdi, edx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140002aa6
cmp qword [rbx + 0x18], 0
jne 0x140002ae4
mov edx, dword [rbx + 0xc]
cmp edx, dword [rbx + 0x30]
jae 0x140002aef
mov rcx, qword [rcx + 8]
neg edi
sbb r8d, r8d
and r8d, 8
bts r8d, 0xa
call qword [sym.imp.USER32.dll_CheckMenuItem]
jmp 0x140002ae4
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140002af5
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jae 0x140002ae4
mov rcx, qword [rbx + 0x20]
mov r8, rdi
xor r9d, r9d
mov edx, 0xf1
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.1400142ec
int3
call fcn.1400142ec
int3
Function at 0x1400061a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rdi, r9
mov r14, r8
and qword [r9], 0
mov rbx, qword [rbp + 0x40]
and dword [rbx], 0
cmp qword [rcx + 0xb0], 0
je 0x14000627f
xor r8d, r8d
call fcn.140006630
mov rsi, rax
test rax, rax
je 0x140006352
mov qword [rbp - 0x18], rax
and dword [rbp - 0x10], 0
and qword [rbp - 8], 0
and dword [rbp + 0x20], 0
and dword [rbp + 0x40], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [rbp + 0x40]
mov dword [rbx], ecx
test eax, eax
jne 0x140006263
call fcn.1400025f0
mov qword [rdi], rax
lea rcx, [rbp + 0x40]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140006263
lea ebx, [rax + 1]
jmp 0x140006271
mov rcx, qword [rdi]
call fcn.1400025e8
and qword [rdi], 0
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140006350
mov rax, qword [rcx]
and qword [rsp + 0x20], 0
mov r9, r8
mov r8, rdx
lea rdx, [rbp + 0x38]
call qword [rax + 0x108]
nop
mov rax, qword [rbp + 0x38]
movsxd rcx, dword [rax - 0x10]
test ecx, ecx
jne 0x1400062ac
xor ebx, ebx
jmp 0x140006336
mov rsi, rcx
shr ecx, 1
mov dword [rbx], ecx
call fcn.1400025f0
mov qword [rdi], rax
xor edx, edx
lea ebx, [rdx + 1]
test rsi, rsi
jle 0x140006332
mov r8d, ebx
test r8, r8
js 0x140006327
mov rax, qword [rbp + 0x38]
lea ecx, [rdx + 1]
cmp ecx, dword [rax - 0x10]
jg 0x140006327
mov r9b, byte [r8 + rax]
test edx, edx
js 0x14000631c
cmp edx, dword [rax - 0x10]
jg 0x14000631c
sub r9b, bl
shl r9b, 4
sub r9b, 0x41
add r9b, byte [r8 + rax - 1]
mov eax, edx
test edx, edx
jns 0x1400062ff
lea eax, [rbx + rdx]
sar eax, 1
movsxd rcx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], r9b
add edx, 2
add r8, 2
movsxd rax, edx
cmp rax, rsi
jl 0x1400062c8
jmp 0x140006332
mov ecx, 0x80070057
call fcn.140004454
int3
mov ecx, 0x80070057
call fcn.140004454
int3
mov rax, qword [rbp + 0x38]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006350
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x140006368
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 0x1400063e2
xor r8d, r8d
call fcn.140006630
mov rsi, rax
test rax, rax
jne 0x14000639e
mov eax, edi
jmp 0x1400063f8
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_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x14000639a
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140006e14
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x1a0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x140249750]
xor rax, rsp
mov qword [rsp + 0x190], rax
mov rdi, r8
mov qword [rsp + 0x38], r8
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x60], r8
mov rcx, qword [rdx]
sub rcx, 0x18
call fcn.14000446c
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
cmp rsi, 0xffffffff80000000
jne 0x140006ecc
call fcn.140007fc4
cmp eax, 1
jne 0x140006ecc
lea r8, [rsp + 0x30]
lea rdx, str.SoftwareClasses_
lea rcx, [rsp + 0x58]
call fcn.140006d44
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140003f20
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006ebb
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rsi, 0xffffffff80000001
mov qword [rsp + 0x50], rsi
mov rbx, qword [rsp + 0x30]
lea rax, [rsp + 0x40]
test rdi, rdi
je 0x140006ef6
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2001f
xor r9d, r9d
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.140006848
jmp 0x140006f10
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test eax, eax
jne 0x140006ffb
mov r9d, 0x104
lea r8, [rsp + 0x80]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test eax, eax
jne 0x140006fb7
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400039b0
nop
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140006e14
mov edi, eax
test eax, eax
setne bl
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006f88
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test bl, bl
je 0x140006f98
mov rbx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
jmp 0x140006fbc
mov rbx, qword [rsp + 0x30]
jmp 0x140006f1a
mov rax, qword [rsp + 0x38]
cmp edi, 0x103
je 0x140006fcc
cmp edi, 0x3f2
jne 0x140006fef
test rax, rax
je 0x140006fe1
mov r8, rbx
mov rdx, rsi
mov rcx, rax
call fcn.1400070f8
jmp 0x140006fed
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edi, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140007015
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140181500
add rsp, 0x1a0
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400070f8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000715b
lea rcx, [0x1401b3a40]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14000716f
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000716f
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 rax
jmp 0x140007174
cmp dword [rcx + 8], 0
je 0x14000716f
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140007174
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14000c848
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 0x14000c8b0
call fcn.140007f48
mov r8d, 0xf0
mov rdx, rsi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x14000c8b0
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14000c8d2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, r14
call fcn.140020130
mov esi, eax
test rdi, rdi
je 0x14000c8d0
test rbx, rbx
je 0x14000c8d0
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 0x14000cfb4
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov rbx, rdx
mov rcx, qword [rcx + 0xd0]
test rcx, rcx
jne 0x14000d05c
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextLengthA]
movsxd rdi, eax
test eax, eax
js 0x14000d075
mov rax, qword [rbx]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, edi
or ecx, eax
jge 0x14000d00c
mov edx, edi
mov rcx, rbx
call fcn.1400050d4
mov rdx, qword [rbx]
cmp edi, dword [rdx - 0xc]
jg 0x14000d08b
mov dword [rdx - 0x10], edi
lea r8d, [rdi + 1]
mov rax, qword [rbx]
mov byte [rdi + rax], 0
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
mov rcx, qword [rbx]
test rcx, rcx
jne 0x14000d038
xor eax, eax
jmp 0x14000d045
movsxd rdx, dword [rcx - 0xc]
call fcn.14018940c
test eax, eax
js 0x14000d080
mov rcx, qword [rbx]
cmp eax, dword [rcx - 0xc]
jg 0x14000d080
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], 0
jmp 0x14000d065
mov rax, qword [rcx]
call qword [rax + 0x118]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 0x80070057
call fcn.140004454
int3
mov ecx, 0x80070057
call fcn.140004454
int3
mov ecx, 0x80070057
call fcn.140004454
int3