joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001b00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140001b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001ca0
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bbb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c45
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001ba0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001cc2
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ca7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001c3e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001c50
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c3e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001bc8
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002260
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x1400022c4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word cs:[rax + rax]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x1400022bb
test eax, eax
jne 0x1400022bb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a0
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002500
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002518
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002520
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002530
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000257d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002574
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000257f
add rax, 0x28
cmp rax, r9
jne 0x140002560
xor eax, eax
ret

Function at 0x140002580
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002610
mov rdx, qword [0x140004660]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025fe
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025fe
cmp word [rax + 0x18], 0x20b
jne 0x1400025fe
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002610
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025e9
add rbx, 0x28
cmp rbx, rdi
je 0x140002610
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025e0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002620
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002640
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002648
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002640
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000269d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002694
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002640
add rax, 0x28
cmp rax, r9
jne 0x140002680
xor eax, eax
ret

Function at 0x1400026a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004660]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400026bf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026c8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400026bf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140004660]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002700
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002708
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002700
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002758
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000274f
test rcx, rcx
je 0x140002700
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002740
xor eax, eax
ret

Function at 0x140002760
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004660]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000277f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002788
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400027a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004660]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027c0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027c8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027c0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027c0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002814
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002820
add rdx, 0x28
cmp r9, rdx
jne 0x140002800
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140002830
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140004660]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002852
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002860
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002852
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002852
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002852
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028b5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028c8
add rdx, 0x28
cmp r10, rdx
jne 0x1400028a0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028d7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028e7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028be
test ecx, ecx
jg 0x1400028d0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140005cef
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
add rax, rcx
mov esi, dword [rax + 0x20]
mov edi, dword [rax + 0x1c]
mov ebp, dword [rax + 0x24]
xor eax, eax
add rsi, rcx
mov r11d, dword [rsi + rax*4]
xor ebx, ebx
add r11, rcx
mov r9d, ebx
cmp byte [r11 + r9], 0
je 0x140005d28
inc ebx
jmp 0x140005d1a
xor r10d, r10d
xor r9d, r9d
cmp ebx, r10d
jbe 0x140005d49
movsx r12w, byte [r11 + r10]
imul r9d, r8d
inc r10
movzx r12d, r12w
add r9d, r12d
jmp 0x140005d2e
lea r10, [rax + 1]
cmp edx, r9d
je 0x140005d57
mov rax, r10
jmp 0x140005d11
add rax, rax
add rax, rcx
movzx eax, word [rax + rbp]
lea rax, [rcx + rax*4]
mov eax, dword [rax + rdi]
add rax, rcx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140005df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x468
mov rax, qword [rcx + 0xf0]
mov eax, dword [rax + 0x54]
mov rbx, rcx
mov rdx, qword [rcx + 0x100]
add rdx, rax
call fcn.140005dd3
mov rcx, rbx
mov rsi, rax
mov rax, qword [rbx + 0xf0]
mov eax, dword [rax + 0x44]
mov rdx, qword [rbx + 0x100]
mov edi, dword [rdx + rax]
mov rax, qword [rbx + 0xf0]
mov edx, dword [rax + 0x3c]
call fcn.140005d8d
mov r8d, edi
mov rcx, rsi
mov edx, eax
call fcn.140005cef
mov rcx, rbx
mov r13, rax
mov rax, qword [rbx + 0xf0]
mov edx, dword [rax + 0xc]
call fcn.140005d8d
mov rcx, rsi
mov edx, eax
call fcn.140005cef
mov rcx, rbx
mov rbp, rax
mov rax, qword [rbx + 0xf0]
mov edx, dword [rax + 0x14]
call fcn.140005d8d
mov rcx, rsi
mov edx, eax
call fcn.140005cef
mov rcx, rbx
mov r14, rax
mov rax, qword [rbx + 0xf0]
mov edx, dword [rax + 0x2c]
call fcn.140005d8d
mov rcx, rsi
mov edx, eax
call fcn.140005cef
mov edx, 0x20a
mov rcx, rbx
mov rdi, rax
call fcn.140005db2
mov edx, 0x20a
mov rcx, rbx
mov r12, rax
call fcn.140005db2
mov rdx, r12
mov ecx, 0x104
mov rsi, rax
mov rax, qword [rbx + 0xb0]
call rax
xor r8d, r8d
xor edx, edx
mov rcx, r12
mov r9, rsi
mov rax, qword [rbx + 0xc0]
call rax
mov qword [rbx + 0x98], rsi
xor r9d, r9d
mov rcx, rsi
mov rax, qword [rbx + 0x88]
mov dword [rsp + 0x28], 0x80
mov r8d, 2
mov edx, 2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 2
call rax
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x140005f48
mov rax, qword [rbx + 0xa8]
xor ecx, ecx
call rax
mov rax, qword [rbx + 0xf0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x58], 0
mov edx, 1
mov eax, dword [rax + 0x48]
mov r15, qword [rbx + 0x100]
add r15, rax
mov rax, qword [rbx + 0xf0]
mov eax, dword [rax + 0x24]
mov dword [rsp + 0x20], 0
mov rcx, qword [rbx + 0x100]
add rcx, rax
call r13
mov rsi, rax
xor eax, eax
test rsi, rsi
je 0x140006039
xor r9d, r9d
xor r8d, r8d
mov rdx, r15
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
mov rcx, rsi
call rbp
test rax, rax
mov rbp, rax
jne 0x140005fcc
mov rcx, rsi
call rdi
xor eax, eax
jmp 0x140006039
lea rax, [rsp + 0x5c]
mov dword [rsp + 0x5c], 0
lea r15, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea r13, [rsp + 0x60]
mov r9, r15
mov r8d, 0x400
mov rdx, r13
mov rcx, rbp
call r14
test eax, eax
je 0x140006024
mov r8d, dword [rsp + 0x58]
test r8d, r8d
je 0x140006024
mov rax, qword [rbx + 0x58]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], 0
mov r9, qword [rsp + 0x48]
call rax
jmp 0x140005fe8
mov rcx, r12
mov rax, qword [rbx + 0x30]
call rax
mov rcx, rbp
call rdi
mov rcx, rsi
call rdi
mov al, 1
add rsp, 0x468
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140029240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rsp + 0x50]
mov rdi, rcx
mov qword [rcx + 0x158], rsi
mov ebp, edx
mov dword [rcx + 0x13c], 1
mov qword [rcx + 0x160], r8
mov dword [rcx + 0x150], r9d
test r9d, r9d
je 0x1400292d6
test rsi, rsi
je 0x1400292d6
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x30], rbx
call qword [rax + 0xd8]
mov edx, dword [rdi + 0x150]
mov r8d, 1
mov rbx, rax
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rdi + 0x158]
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + 0xe0]
mov rcx, qword [rdi + 0x158]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_DrawMenuBar]
mov rbx, qword [rsp + 0x30]
movzx edx, bp
mov r8, rsi
mov rcx, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp method.CFileDialog.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 rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x14003c3af
cmp dword [rcx + 0xe8], 0
jne 0x14003c3af
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.140049e7c
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x14003c688
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x14003c6dd
call fcn.14004790c
mov rdx, rax
test rax, rax
je 0x14003c6db
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x140040b02.0]
mov rbx, rax
jmp 0x14003c6dd
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14003c3fc
Function at 0x1400301a0
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx ecx, r8b
mov rsi, r9
mov r9, qword [r9]
mov r8d, ecx
mov eax, ecx
shl r8d, 8
shl eax, 0x10
mov rbx, rdx
mov rdx, qword [rdx]
or r8d, eax
or r8d, ecx
lea rcx, str.Color
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, eax
movzx edi, ax
and edi, 0xffffff00
shr ecx, 0x10
movzx edx, cl
or edi, edx
movzx eax, al
mov rdx, qword [rbx]
mov ebx, 0xffffffff
shl eax, 0x10
or edi, eax
mov eax, ebx
sub rdx, 0x18
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003021a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x140030235
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140030250
Capabilities:
Read .ini file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rsi, r9
movzx r8d, r8b
mov r9, qword [r9]
lea rcx, str.Alpha
mov rbx, rdx
mov rdx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rdx, qword [rbx]
mov ebx, 0xffffffff
mov ecx, ebx
mov edi, eax
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1400302a0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rdx, qword [rsi]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
jg 0x1400302ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x30]
movzx eax, dil
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140030d10
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1400ab680]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov eax, dword [0x1400ac240]
cmp eax, 0xffffffff
jne 0x140030d83
xor edx, edx
mov dword [0x1400ac240], 0
mov r8d, 0x118
lea rcx, [rsp + 0x24]
call fcn.140060b10
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x24], 5
mov eax, dword [0x1400ac240]
jne 0x140030d83
cmp dword [rsp + 0x28], 0
mov ecx, 1
cmove eax, ecx
mov dword [0x1400ac240], eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.14005df90
add rsp, 0x158
ret
Function at 0x14003c370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, qword [rsp + 0x50]
mov rdi, rcx
mov qword [rcx + 0x158], rsi
mov ebp, edx
mov dword [rcx + 0x13c], 1
mov qword [rcx + 0x160], r8
mov dword [rcx + 0x150], r9d
test r9d, r9d
je 0x1400292d6
test rsi, rsi
je 0x1400292d6
mov rax, qword [rsi]
mov rcx, rsi
mov qword [rsp + 0x30], rbx
call qword [rax + 0xd8]
mov edx, dword [rdi + 0x150]
mov r8d, 1
mov rbx, rax
mov rcx, qword [rax + 8]
call qword [sym.imp.USER32.dll_EnableMenuItem]
mov rcx, qword [rdi + 0x158]
mov rdx, rbx
mov r9, qword [rcx]
call qword [r9 + 0xe0]
mov rcx, qword [rdi + 0x158]
mov rcx, qword [rcx + 0x40]
call qword [sym.imp.USER32.dll_DrawMenuBar]
mov rbx, qword [rsp + 0x30]
movzx edx, bp
mov r8, rsi
mov rcx, rdi
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp method.CFileDialog.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 rsi, rdx
mov rdi, rcx
cmp rdx, 0x10000
jae 0x14003c3af
cmp dword [rcx + 0xe8], 0
jne 0x14003c3af
movzx eax, si
mov dword [rcx + 0xe8], eax
call fcn.140049e7c
mov r8d, 5
mov rdx, rsi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x14003c688
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, r9
mov rcx, rdx
mov rbx, r8
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
jne 0x14003c6dd
call fcn.14004790c
mov rdx, rax
test rax, rax
je 0x14003c6db
mov rcx, qword [rax]
mov rax, qword [rcx + 0xe8]
mov rcx, rdx
call qword [case.0x140040b02.0]
mov rbx, rax
jmp 0x14003c6dd
xor ebx, ebx
and qword [rdi + 0x108], 0
mov r9, rsi
mov r8, rbx
mov rdx, rbp
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp fcn.14003c3fc

Function at 0x14003fc34
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
xor ebx, ebx
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14003fc92
call fcn.140049e7c
mov r8d, 0xf0
mov rdx, rdi
mov rbp, qword [rax + 0x18]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14003fc92
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14003fc9d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
mov rdx, rbx
mov rcx, rsi
call fcn.14003b0fc
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004895c
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 0x1400489d7
xor r8d, r8d
call fcn.140048c2c
mov rsi, rax
test rax, rax
je 0x1400489d3
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 0x1400489d3
mov eax, dword [rsp + 0x30]
jmp 0x1400489ed
mov eax, edi
jmp 0x1400489ed
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 0x1400494b0
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 0x140049517
lea rcx, [0x140085208]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004952b
lea rdx, [0x140085270]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004952b
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.0x140040b02.0]
jmp 0x140049530
cmp dword [rcx + 8], 0
je 0x14004952b
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x140049530
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140055ee4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x140055f0a
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1400494b0
jmp 0x140055f76
cmp byte [0x1400b11a0], 0
jne 0x140055f4e
lea rcx, [0x140085208]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140055f3e
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400b1198], rax
jmp 0x140055f45
mov rax, qword [0x1400b1198]
mov byte [0x1400b11a0], 1
jmp 0x140055f55
mov rax, qword [0x1400b1198]
mov rdx, rdi
mov rcx, qword [rbx]
test rax, rax
je 0x140055f6f
xor r9d, r9d
mov r8d, dword [rbx + 8]
call qword [case.0x140040b02.0]
jmp 0x140055f76
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14006eaec
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14006e8dc
Function at 0x140001070
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
nop word [rax + rax]
mov eax, dword [rsp + 0x20]
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
cmp eax, 0x186a0
jl 0x1400010b0
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x28]
lea rcx, str.Tempo_m
sub rax, qword [rsp + 0x30]
imul rax, rax, 0xf4240
cqo
idiv qword [rsp + 0x38]
mov rdx, rax
mov rbx, rax
call fcn.140001010
movabs rax, 0x6666666666666667
imul rbx
mov eax, 0x64
sar rdx, 2
mov rcx, rdx
shr rcx, 0x3f
add rdx, rcx
lea rcx, str.Executando_rotina_segura._n
sub rax, rdx
lea rax, [rax + rax*4]
lea rdx, [rbx + rax*2]
cmp rbx, rdx
lea rax, str.Ativando_opera
cmovle rcx, rax
call fcn.140001010
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140001170
add rsp, 0x50
pop rbx
ret

Function at 0x140001a30
Capabilities:
Parse pe header

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