joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400245a0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor esi, esi
mov qword [rax - 0x20], rsi
mov rbx, qword [0x140431cf0]
and qword [rax - 0x28], rsi
xor edi, edi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x1400245fd
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x140024606
call fcn.140014f3c
test eax, eax
je 0x140024622
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x14002462d
xor eax, eax
jmp 0x1400246c0
test rbx, rbx
jne 0x14002464d
lea rcx, str.ImageList_LoadImageA
call fcn.140014920
mov rbx, rax
test rax, rax
je 0x14002468c
mov qword [0x140431cf0], rax
mov rcx, rbx
call fcn.1401bade4
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8d, r15d
mov rdx, r12
mov rcx, r13
call rbx
mov rsi, rax
mov qword [rsp + 0x48], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x1400246a2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400246a4
xor edi, edi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400246bd
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret

Function at 0x1400246e0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rdx
mov rsi, rcx
and dword [rax - 0x18], 0
and qword [rax + 0x18], 0
xor ebx, ebx
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x140024722
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x14002472b
call fcn.140014f3c
test eax, eax
je 0x140024747
lea rdx, [rsp + 0x50]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x14002474f
xor eax, eax
jmp 0x140024793
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.USER32.dll_UnregisterClassA]
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140024776
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140024778
xor esi, esi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140024791
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002e3f4
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x14002e426
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14002e426
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.140047f88
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14002e438
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rsi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14002e463
mov r8, rdx
mov rdx, qword [rdi]
call fcn.14001f93c
jmp 0x14002e4db
cmp byte [0x140432258], 0
jne 0x14002e4aa
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14002e49a
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x140432250], rax
jmp 0x14002e4a1
mov rbx, qword [0x140432250]
mov byte [0x140432258], 1
jmp 0x14002e4b1
mov rbx, qword [0x140432250]
test rbx, rbx
je 0x14002e4cf
mov rcx, rbx
call fcn.1401bade4
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x14002e4db
mov rcx, qword [rdi]
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140032598
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx r14d, r8w
mov r15, rdx
mov r12, rcx
or r13d, 0xffffffff
movzx esi, r13w
mov word [rax - 0x38], r13w
mov rbx, qword [0x140432260]
and qword [rax + 0x20], 0
xor edi, edi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x1400325f6
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x1400325ff
call fcn.140014f3c
test eax, eax
je 0x14003261b
lea rdx, [rsp + 0x78]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x140032625
movzx eax, r13w
jmp 0x140032696
test rbx, rbx
jne 0x140032645
lea rcx, str.GetFileTitleA
call fcn.140032504
mov rbx, rax
test rax, rax
je 0x140032661
mov qword [0x140432260], rax
mov rcx, rbx
call fcn.1401bade4
movzx r8d, r14w
mov rdx, r15
mov rcx, r12
call rbx
movzx esi, ax
mov word [rsp + 0x20], ax
xor ebx, ebx
cmp si, r13w
sete bl
test ebx, ebx
je 0x140032678
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14003267a
xor edi, edi
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140032693
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, si
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140046bdc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1404323d8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x140046c27
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x140046c30
call fcn.140014f3c
test eax, eax
je 0x140046c4c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140046c54
xor eax, eax
jmp 0x140046cb9
test rbx, rbx
jne 0x140046c74
lea rcx, str.GetOpenFileNameA
call fcn.140032504
mov rbx, rax
test rax, rax
je 0x140046c87
mov qword [0x1404323d8], rax
mov rcx, rbx
call fcn.1401bade4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140046c9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140046c9e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140046cb7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140046cd0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1404323e0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x140046d1b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x140046d24
call fcn.140014f3c
test eax, eax
je 0x140046d40
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140046d48
xor eax, eax
jmp 0x140046dad
test rbx, rbx
jne 0x140046d68
lea rcx, str.GetSaveFileNameA
call fcn.140032504
mov rbx, rax
test rax, rax
je 0x140046d7b
mov qword [0x1404323e0], rax
mov rcx, rbx
call fcn.1401bade4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140046d90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140046d92
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140046dab
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400777b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r15, rcx
test r8, r8
jne 0x1400777e5
call fcn.1400220ec
mov rdi, qword [rax + 0x18]
lea r8, [0x1401ff878]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x140077804
xor eax, eax
jmp 0x140077850
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140077800
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140077845
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.14007786c
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x14007a534
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140432d78]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x14007a57f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x14007a588
call fcn.140014f3c
test eax, eax
je 0x14007a5a4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14007a5ac
xor eax, eax
jmp 0x14007a611
test rbx, rbx
jne 0x14007a5cc
lea rcx, str.ImageList_GetImageCount
call fcn.140014920
mov rbx, rax
test rax, rax
je 0x14007a5df
mov qword [0x140432d78], rax
mov rcx, rbx
call fcn.1401bade4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14007a5f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14007a5f6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14007a60f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140104854
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x140104a24
Capabilities:
Query or enumerate registry value

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

Function at 0x140104ed0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140104fa2
test rbx, rbx
je 0x140104fa8
test r9, r9
je 0x140104fae
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140104f8b
cmp dword [rsp + 0x48], 3
jne 0x140104f8b
test eax, eax
jne 0x140104f8b
cmp dword [rdi], eax
je 0x140104f8b
mov ecx, dword [rdi]
call fcn.140006cd0
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140104f7f
cmp dword [rsp + 0x48], 3
jne 0x140104f7f
test eax, eax
jne 0x140104f7f
mov eax, 1
jmp 0x140104f8d
mov rcx, qword [rbx]
call fcn.140006cc8
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140006d34
int3
call fcn.140006d34
int3
call fcn.140006d34
int3

Function at 0x1401052d4
Capabilities:
Set registry value

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

Function at 0x14010531c
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14010532d
xor eax, eax
jmp 0x140105351
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140165dfc
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140436ae8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x140165e47
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x140165e50
call fcn.140014f3c
test eax, eax
je 0x140165e6c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140165e74
xor eax, eax
jmp 0x140165ed9
test rbx, rbx
jne 0x140165e94
lea rcx, str.ChooseColorA
call fcn.140032504
mov rbx, rax
test rax, rax
je 0x140165ea7
mov qword [0x140436ae8], rax
mov rcx, rbx
call fcn.1401bade4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140165ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140165ebe
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140165ed7
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x14016aa34
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140436c38]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14042e5e0]
test eax, eax
je 0x14016aa7f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14042e5e0]
test eax, eax
jne 0x14016aa88
call fcn.140014f3c
test eax, eax
je 0x14016aaa4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140426ee8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14016aaac
xor eax, eax
jmp 0x14016ab11
test rbx, rbx
jne 0x14016aacc
lea rcx, str.PrintDlgA
call fcn.140032504
mov rbx, rax
test rax, rax
je 0x14016aadf
mov qword [0x140436c38], rax
mov rcx, rbx
call fcn.1401bade4
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x14016aaf4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14016aaf6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14016ab0f
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401cd0d4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401ccea8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401ccea8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401ccea8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401ccea8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401ccea8
cmp dword [rcx + 0x84], 0xe
jbe 0x1401ccea8
cmp dword [rcx + 0xf8], esi
je 0x1401ccea8
mov ecx, r14d
call fcn.1401ccff0
mov ecx, 2
call fcn.1401d3358
nop
cmp byte [0x140438ab8], 0
jne 0x1401ccf72
mov r15d, 1
mov eax, r15d
xchg dword [0x140438aa8], eax
test ebx, ebx
jne 0x1401ccf1b
mov rdi, qword [0x140428430]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140438ab0]
cmp rcx, rax
je 0x1401ccf12
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1401b6940]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140438be8]
jmp 0x1401ccf27
cmp ebx, r15d
jne 0x1401ccf2d
lea rcx, [0x140438c00]
call fcn.1401cdb88
nop
test ebx, ebx
jne 0x1401ccf44
lea rdx, [0x1401e7a78]
lea rcx, [0x1401e7a58]
call fcn.1401cdee8
lea rdx, [0x1401e7a88]
lea rcx, [0x1401e7a80]
call fcn.1401cdee8
movzx eax, byte [0x140438ab8]
test esi, esi
cmove eax, r15d
mov byte [0x140438ab8], al
jmp 0x1401ccf72
mov ecx, 2
call fcn.1401d33ac
test esi, esi
jne 0x1401ccf89
mov ecx, r14d
call fcn.1401ccfa4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401cce38
Function at 0x180664058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806641df
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 0x180664089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066406f
add dl, dl
jne 0x180664096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806640f6
xor eax, eax
add dl, dl
jne 0x1806640a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806641ad
add dl, dl
jne 0x1806640b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806640c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806640d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806640dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806640ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18066407e
mov eax, 1
add dl, dl
jne 0x180664106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180664113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806640fb
sub eax, ebx
mov ebx, 1
jne 0x18066414c
mov ecx, 1
add dl, dl
jne 0x18066412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180664123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180664168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180664175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066415d
cmp eax, 0x7d00
jae 0x18066419b
cmp eax, 0x500
jb 0x180664196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066407e
cmp eax, 0x7f
ja 0x18066419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806641d2
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 0x18066407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d48b0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d52b2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d534a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d532e
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 0x2fc4d5322
cmp qword [rbp - 0x10], 0
je 0x2fc4d5322
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 0x2fc4d52e8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d534b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5450
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 0x2fc4d5478
mov eax, 0
jmp 0x2fc4d54c6
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 0x2fc4d54a1
mov eax, 0
jmp 0x2fc4d54c6
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 0x2fc4d54c1
mov eax, 0
jmp 0x2fc4d54c6
mov eax, 1
add rsp, 0x20
pop rbp
ret