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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140052c50
test rax, rax
je 0x14006b7a0
mov rcx, rax
mov rdx, 0xffffffffffffffff
lea r14, [rsp + 0x40]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
xor ecx, ecx
mov r15, r14
lea r12, [rsi + 0x28]
mov word [rsp + 0x40], cx
mov r13, rax
lea rbp, [rsp + 0x3a]
mov eax, 0x4e
lea rdi, [rsp + 0x3c]
nop word [rax + rax]
mov rbx, r12
mov r8d, 2
mov rdx, rbp
mov rcx, rdi
sub rbx, rsi
mov byte [rsp + 0x3a], al
mov byte [rsp + 0x3b], 0
call sub.msvcrt.dll_mbstowcs
cmp rax, 1
jne 0x1400c6d1e
cmp word [r15], 0
movzx edx, word [rsp + 0x3c]
mov rax, r15
je 0x14006b6f6
nop dword [rax]
add rax, 2
sub rbx, 1
cmp word [rax], 0
jne 0x14006b6e8
test rbx, rbx
je 0x1400c6d1e
mov word [rax], dx
add rsi, 1
xor edx, edx
add r15, 2
mov word [rax + 2], dx
movzx eax, byte [rsi]
test al, al
jne 0x14006b6a8
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rdx, qword [0x1400ec9a0]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400da270]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14006b7f0
mov r8, rbx
mov rcx, rsi
call fcn.140055cd0
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140067350
sub qword [rbx], 1
jne 0x14006b784
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400ec040]
lea rsi, [0x1400ec040]
test bl, bl
je 0x14006b7c0
mov rax, qword [0x1400ec048]
lea rsi, [0x1400ec048]
test rax, rax
jne 0x14006b784
cmp byte [0x1400ec262], 0
je 0x14006b81d
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400ec060]
call qword [sym.imp.python310.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14006b827
add qword [rax], 1
jmp 0x14006b784
mov rdx, qword [0x1400ec918]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14006b832
mov r8, rdi
mov rcx, rsi
call fcn.140055cd0
mov qword [0x1400ec9a0], rax
mov rdx, rax
jmp 0x14006b74e
movzx ecx, bl
call fcn.140053870
jmp 0x14006b7ce
call qword [sym.imp.python310.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400d22be]
call qword [sym.imp.python310.dll_PyImport_ImportModule]
mov qword [0x1400ec918], rax
mov rdx, rax
test rax, rax
je 0x1400c6d1e
jmp 0x14006b803
Function at 0x1400ac0c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400ec029], 0
mov rbp, rcx
mov rdi, rdx
mov r12, r8
je 0x1400ac168
lea rdx, [0x1400d603a]
mov rcx, r12
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400ac1d0
mov rbx, qword [0x1400ebec8]
jmp 0x1400ac105
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, r12
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400ac100
movzx eax, word [rdx + 4]
lea r8, [rdx + 6]
test ax, ax
je 0x1400ac157
lea rbx, [rdi + rax*8]
nop word cs:[rax + rax]
mov rdx, rdi
mov rcx, rbp
add rdi, 8
call fcn.14009b4f0
mov r8, rax
cmp rdi, rbx
jne 0x1400ac140
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400ebec8], rax
mov ebx, dword [rax]
mov qword [0x1400ebec8], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400ebec8], rdx
call fcn.1400ab1f0
cmp eax, ebx
jne 0x1400ac257
mov byte [0x1400ec029], 1
jmp 0x1400ac0e0
cmp byte [0x1400ec028], 0
jne 0x1400ac0f7
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
call rbx
mov qword [0x1400ecba8], rax
call rbx
mov qword [0x1400ecba0], rax
call rbx
mov qword [0x1400ecb98], rax
call rbx
mov qword [0x1400ecb90], rax
call rbx
mov qword [0x1400ecb88], rax
call rbx
mov qword [0x1400ecb80], rax
call rbx
mov qword [0x1400ecb78], rax
call rbx
mov byte [0x1400ec028], 1
mov qword [0x1400ecb70], rax
mov rax, qword [sym.imp.python310.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xda0
mov qword [0x1400ebec0], rax
jmp 0x1400ac0f7
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400b4a20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400c61a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400c61a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400b56f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ed068]
test eax, eax
je 0x1400b578a
lea rax, [0x1400ed040]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ed070]
mov qword [rbp - 8], rax
jmp 0x1400b576e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400b5762
cmp qword [rbp - 0x10], 0
je 0x1400b5762
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400b5728
lea rax, [0x1400ed040]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400b578b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400b5890
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400b58b8
mov eax, 0
jmp 0x1400b5906
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400b58e1
mov eax, 0
jmp 0x1400b5906
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400b5901
mov eax, 0
jmp 0x1400b5906
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400b590c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400b598a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400b5981
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400b5981
mov rax, qword [rbp - 8]
jmp 0x1400b599f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400b5954
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14184d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14184d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14184d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14184d06f
add dl, dl
jne 0x14184d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14184d0f6
xor eax, eax
add dl, dl
jne 0x14184d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14184d1ad
add dl, dl
jne 0x14184d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14184d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14184d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14184d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14184d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14184d07e
mov eax, 1
add dl, dl
jne 0x14184d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14184d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14184d0fb
sub eax, ebx
mov ebx, 1
jne 0x14184d14c
mov ecx, 1
add dl, dl
jne 0x14184d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14184d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14184d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14184d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14184d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14184d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14184d15d
cmp eax, 0x7d00
jae 0x14184d19b
cmp eax, 0x500
jb 0x14184d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14184d07e
cmp eax, 0x7f
ja 0x14184d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14184d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14184d1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14184d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400015a0
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 0x1400015d3
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 0x140001616
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140001611
cmp rbx, r11
jae 0x140001616
dec edi
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140001600
cmp rbx, r11
jb 0x14000161a
xor eax, eax
jmp 0x140001626
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 0x14000bc30
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rbx, rcx
xor edi, edi
mov dword [rsp + 0x58], edi
lea rdx, [0x1401e2848]
call fcn.140001a70
mov edx, 1
mov dword [rsp + 0x58], edx
mov rax, qword [rbx]
sub edx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x104
or eax, edx
jge 0x14000bc85
mov edx, 0x104
mov rcx, rbx
call fcn.140001910
lea rax, str.C:WINDOWSinfwpdmtp.inf
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x104
mov r9, qword [rbx]
lea r8, [0x1401e2848]
lea rdx, str.DriverVer
lea rcx, str.Version
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov rcx, qword [rbx]
test rcx, rcx
je 0x14000bccf
movsxd rdx, dword [rcx - 0xc]
call fcn.1401663c8
mov rdi, rax
test eax, eax
js 0x14000bce9
mov rax, qword [rbx]
cmp edi, dword [rax - 0xc]
jg 0x14000bce9
mov dword [rax - 0x10], edi
movsxd rcx, edi
mov rax, qword [rbx]
mov byte [rcx + rax], 0
mov rax, rbx
jmp 0x14000bcf4
mov ecx, 0x80070057
call fcn.140001970
nop
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x14000e430
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
mov rax, qword [0x140224ae8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, rdx
lea rdx, [0x1401e432c]
mov rbp, r9
mov r12, r8
call fcn.14016590c
mov r14, rax
test rax, rax
jne 0x14000e4b9
test r12, r12
je 0x14000e4b2
call fcn.140165ea8
mov ecx, dword [rax]
call fcn.140165dc4
mov rdx, rax
test rax, rax
jne 0x14000e495
xor edi, edi
mov rcx, r12
mov r8d, edi
call fcn.140001990
xor al, al
jmp 0x14000e5cc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
mov rcx, r12
mov r8d, edi
call fcn.140001990
xor al, al
jmp 0x14000e5cc
xor edi, edi
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], r13
test rbp, rbp
je 0x14000e4d0
mov r13d, dword [rbp]
jmp 0x14000e4d3
mov r13d, edi
xor eax, eax
mov rcx, rsi
mov byte [rsp + 0x20], dil
mov qword [rsp + 0x21], rax
mov qword [rsp + 0x29], rax
mov word [rsp + 0x31], ax
mov byte [rsp + 0x33], al
call fcn.140001780
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, r14
call fcn.140166e94
mov rcx, r14
call fcn.1401670c8
xor r8d, r8d
xor edx, edx
mov rcx, r14
movsxd rbx, eax
call fcn.140166e94
test ebx, ebx
je 0x14000e593
jns 0x14000e52c
mov ecx, 0x80070057
call fcn.140001970
int3
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x14000e54a
mov edx, ebx
mov rcx, rsi
call fcn.140001910
mov rcx, qword [rsi]
mov rdx, rbx
mov r9, r14
mov r8d, 1
call fcn.140167400
mov eax, ebx
cmp ebx, 0xffffffff
jne 0x14000e57a
mov rcx, qword [rsi]
test rcx, rcx
jne 0x14000e571
mov eax, edi
jmp 0x14000e57e
movsxd rdx, dword [rcx - 0xc]
call fcn.1401663c8
test eax, eax
js 0x14000e5e5
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0xc]
jg 0x14000e5e5
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rsi]
mov byte [rcx + rax], dil
test r12, r12
je 0x14000e5af
lea r8, [rsp + 0x20]
lea rdx, str._s_d_bytes
mov r9d, ebx
mov rcx, r12
call fcn.140003410
mov rcx, r14
call fcn.140165fac
test rbp, rbp
je 0x14000e5c0
mov dword [rbp], r13d
mov rbx, qword [rsp + 0x48]
mov r13, qword [rsp + 0x40]
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140164540
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001970
int3
Function at 0x140012040
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rbp, rdx
mov rsi, rcx
mov dword [rsp + 0x80], 0
call fcn.140014264
mov rcx, rax
xor r8d, r8d
test rax, rax
setne r8b
test r8d, r8d
jne 0x14001208e
mov ecx, 0x80004005
call fcn.140001970
int3
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsi], rax
mov dword [rsp + 0x80], 1
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebx, eax
mov ecx, eax
call fcn.140168264
mov rdi, rax
mov r9, rax
mov r8d, ebx
xor edx, edx
mov rcx, qword [rbp]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoA]
mov dword [rsp + 0x88], 0
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x30]
lea rdx, [0x1401e45e0]
mov rcx, rdi
call qword [sym.imp.VERSION.dll_VerQueryValueA]
mov r11, qword [rsp + 0x30]
movzx r8d, word [r11 + 0xa]
movzx r9d, word [r11 + 8]
movzx ecx, word [r11 + 0xe]
movzx eax, word [r11 + 0xc]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rdx, str._d._d._d._d
mov rcx, rsi
call fcn.140003410
mov rcx, rdi
call fcn.14016831c
nop
mov rdx, qword [rbp]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140012150
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rsi
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140016bd8
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 r13
push r14
sub rsp, 0x20
xor esi, esi
xor ebx, ebx
mov r12, r9
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
je 0x140016c4a
call fcn.14002a978
mov r8d, 0xf0
mov rdx, rdi
mov r13, qword [rax + 0x18]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140016c4a
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140016c97
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rsi, rax
mov edi, 1
test rsi, rsi
je 0x140016c77
mov r10, qword [r14]
mov r9, r12
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call qword [r10 + 0x40]
mov edi, eax
test rbx, rbx
je 0x140016c77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
cmp qword [rbp + 0xc0], 0
je 0x140016c95
mov rcx, qword [rbp + 0xc0]
mov rdx, r12
mov r8, qword [rcx]
call qword [r8 + 0x140]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop r12
ret

Function at 0x1400183a8
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 0x140018422
xor r8d, r8d
call fcn.1400182dc
mov rsi, rax
test rax, rax
jne 0x1400183de
mov eax, edi
jmp 0x140018438
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_RegQueryValueExA]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
cmove edi, dword [rsp + 0x30]
jmp 0x1400183da
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
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 0x140018b54
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 0x140018bb7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x140018bcb
lea rdx, str.RegDeleteKeyTransactedA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140018bcb
mov rcx, qword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rdx, rdi
mov rcx, rsi
call rax
jmp 0x140018bd0
cmp dword [rcx + 8], 0
je 0x140018bcb
mov rdx, r8
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x140018bd0
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14001a008
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.14002a978
lea r8d, [rdi + 5]
mov rbp, qword [rax + 0x18]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbp
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14001a064
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.140019aa0
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 0x14001a0f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_712
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 + 0xe0], rdx
test rdx, 0xffffffffffff0000
jne 0x14001a137
cmp dword [rcx + 0xd8], 0
jne 0x14001a137
movzx eax, dx
mov dword [rcx + 0xd8], eax
call fcn.14002a978
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
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.14001a09c
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 0x140021110
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.140033ee4
mov rsi, rax
test rax, rax
je 0x14002118c
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x140021187
cmp dword [rbx], 0x40
jb 0x140021187
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_SendMessageA]
bt rax, 0xd
jb 0x140021187
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x140021190
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 0x140028ef4
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 0x140028f5c
call fcn.14002a978
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140028f5c
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x140028f7e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.1400288e8
mov esi, eax
test rdi, rdi
je 0x140028f7c
test rbx, rbx
je 0x140028f7c
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 0x1400298ac
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 + 0xc8], 0
jne 0x1400298ea
mov r8d, esi
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x14002999e
call fcn.140014264
mov r11, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x140029909
mov ecx, 0x80004005
call fcn.140001970
int3
mov rax, qword [rax]
mov rcx, r11
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
mov rcx, qword [rbx + 0xc8]
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.140168590
test eax, eax
je 0x140029971
cmp eax, 0xc
je 0x14002996b
cmp eax, 0x16
je 0x140029965
cmp eax, 0x22
je 0x140029965
cmp eax, 0x50
je 0x140029971
call fcn.140013e90
int3
call fcn.140013e90
int3
call fcn.140013e48
int3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
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 0x14002999c
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