joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005e07c
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
test byte [rdx + 4], 1
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
je 0x14005e0a5
mov rdi, qword [rdx + 0x10]
jmp 0x14005e0f6
mov rdx, qword [rdx + 0x10]
mov r8d, 5
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rdi, rax
test rax, rax
jne 0x14005e0c6
call fcn.140037fcc
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x14005e0e0
call fcn.140037fcc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x14005e0f6
call fcn.140037fcc
call fcn.14002ac98
cmp qword [rax + 0x68], 0
je 0x14005e110
mov rdx, rdi
mov rcx, rbp
call fcn.14005d474
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.14005e37c
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x14005e137
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x14005e146
mov rdi, rsi
mov qword [rbp + 0xf8], rsi
or dword [rbx + 4], 1
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14005e510
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov rdi, rcx
xor ebx, ebx
mov qword [rax - 0x18], rbx
mov r14, qword [0x14049e848]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x14005e55c
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x14005e565
call fcn.14001c384
test eax, eax
je 0x14005e581
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005e58c
xor eax, eax
jmp 0x14005e61b
test r14, r14
jne 0x14005e5a9
lea rcx, str.CreatePropertySheetPageA
call fcn.14005e828
test rax, rax
je 0x14005e5e6
mov qword [0x14049e848], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x14005e5ca
cmp dword [rdi], 0x60
jb 0x14005e5ca
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1402b9008]
mov qword [rdi + 0x58], rax
mov rbx, qword [0x14049e848]
mov rcx, rbx
call fcn.1401d5bb0
mov rcx, rdi
call rbx
mov rbx, rax
mov qword [rsp + 0x20], rax
xor edi, edi
test rbx, rbx
sete dil
test edi, edi
je 0x14005e5fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005e5ff
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14005e618
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x14005e634
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 [0x14049e850]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x14005e67f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x14005e688
call fcn.14001c384
test eax, eax
je 0x14005e6a4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005e6ac
xor eax, eax
jmp 0x14005e711
test rbx, rbx
jne 0x14005e6cc
lea rcx, str.DestroyPropertySheetPage
call fcn.14005e828
mov rbx, rax
test rax, rax
je 0x14005e6df
mov qword [0x14049e850], rax
mov rcx, rbx
call fcn.1401d5bb0
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 0x14005e6f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005e6f6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14005e70f
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 0x14005e728
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
or rdi, 0xffffffffffffffff
mov qword [rax - 0x18], rdi
mov rbx, qword [0x14049e858]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x14005e777
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x14005e780
call fcn.14001c384
test eax, eax
je 0x14005e79c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005e7a6
or rax, 0xffffffffffffffff
jmp 0x14005e810
test rbx, rbx
jne 0x14005e7c6
lea rcx, str.PropertySheetA
call fcn.14005e828
mov rbx, rax
test rax, rax
je 0x14005e7db
mov qword [0x14049e858], rax
mov rcx, rbx
call fcn.1401d5bb0
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
sete bl
test ebx, ebx
je 0x14005e7f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14005e7f4
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14005e80d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400621c8
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 [0x14049e870]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x140062213
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x14006221c
call fcn.14001c384
test eax, eax
je 0x140062238
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140062240
xor eax, eax
jmp 0x1400622a5
test rbx, rbx
jne 0x140062260
lea rcx, str.GetOpenFileNameA
call fcn.14003ddd0
mov rbx, rax
test rax, rax
je 0x140062273
mov qword [0x14049e870], rax
mov rcx, rbx
call fcn.1401d5bb0
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 0x140062288
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14006228a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400622a3
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 0x1400622bc
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 [0x14049e878]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x140062307
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x140062310
call fcn.14001c384
test eax, eax
je 0x14006232c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140062334
xor eax, eax
jmp 0x140062399
test rbx, rbx
jne 0x140062354
lea rcx, str.GetSaveFileNameA
call fcn.14003ddd0
mov rbx, rax
test rax, rax
je 0x140062367
mov qword [0x14049e878], rax
mov rcx, rbx
call fcn.1401d5bb0
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 0x14006237c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14006237e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140062397
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 0x14006d40c
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 0x14006d43e
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14006d43e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14007ace4
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14006d450
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 0x14006d47b
mov r8, rdx
mov rdx, qword [rdi]
call fcn.14004e8cc
jmp 0x14006d4f3
cmp byte [0x14049e900], 0
jne 0x14006d4c2
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14006d4b2
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x14049e8f8], rax
jmp 0x14006d4b9
mov rbx, qword [0x14049e8f8]
mov byte [0x14049e900], 1
jmp 0x14006d4c9
mov rbx, qword [0x14049e8f8]
test rbx, rbx
je 0x14006d4e7
mov rcx, rbx
call fcn.1401d5bb0
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x14006d4f3
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 0x1400a5424
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 0x1400a5455
call fcn.14002ac98
mov rdi, qword [rax + 0x18]
lea r8, [0x1402292f0]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x1400a5474
xor eax, eax
jmp 0x1400a54c0
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400a5470
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1400a54b5
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.1400a54dc
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 0x1400a8130
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 [0x14049f418]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x1400a817b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x1400a8184
call fcn.14001c384
test eax, eax
je 0x1400a81a0
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400a81a8
xor eax, eax
jmp 0x1400a820d
test rbx, rbx
jne 0x1400a81c8
lea rcx, str.ImageList_GetImageCount
call fcn.140027808
mov rbx, rax
test rax, rax
je 0x1400a81db
mov qword [0x14049f418], rax
mov rcx, rbx
call fcn.1401d5bb0
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 0x1400a81f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400a81f2
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400a820b
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 0x14012bd98
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 0x14012bf68
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 0x14012bfaa
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 0x14012c414
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 0x14012c4e6
test rbx, rbx
je 0x14012c4ec
test r9, r9
je 0x14012c4f2
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 0x14012c4cf
cmp dword [rsp + 0x48], 3
jne 0x14012c4cf
test eax, eax
jne 0x14012c4cf
cmp dword [rdi], eax
je 0x14012c4cf
mov ecx, dword [rdi]
call fcn.140005ed4
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 0x14012c4c3
cmp dword [rsp + 0x48], 3
jne 0x14012c4c3
test eax, eax
jne 0x14012c4c3
mov eax, 1
jmp 0x14012c4d1
mov rcx, qword [rbx]
call fcn.140013418
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.14001dd48
int3
call fcn.14001dd48
int3
call fcn.14001dd48
int3

Function at 0x14012c818
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14012c829
xor eax, eax
jmp 0x14012c857
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 0x14012c860
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x14012c871
xor eax, eax
jmp 0x14012c895
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 0x140187164
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 [0x1404a30a0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14049ab08]
test eax, eax
je 0x1401871af
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14049ab08]
test eax, eax
jne 0x1401871b8
call fcn.14001c384
test eax, eax
je 0x1401871d4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402b9008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401871dc
xor eax, eax
jmp 0x140187241
test rbx, rbx
jne 0x1401871fc
lea rcx, str.ChooseColorA
call fcn.14003ddd0
mov rbx, rax
test rax, rax
je 0x14018720f
mov qword [0x1404a30a0], rax
mov rcx, rbx
call fcn.1401d5bb0
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 0x140187224
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140187226
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14018723f
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 0x1401e99ac
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1401e983f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401e983f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401e983f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401e983f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401e983f
cmp dword [rcx + 0x84], 0xe
jbe 0x1401e983f
cmp dword [rcx + 0xf8], 0
je 0x1401e983f
mov ecx, ebx
call fcn.1401e98e0
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1401e96d0
cmp dword [rbp + 0x20], 0
je 0x1401e988c
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1401e9894
int3
xor r8d, r8d
xor edx, edx
jmp 0x1401e97d8
Function at 0x140b3e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140b3e1df
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 0x140b3e089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b3e06f
add dl, dl
jne 0x140b3e096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b3e0f6
xor eax, eax
add dl, dl
jne 0x140b3e0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b3e1ad
add dl, dl
jne 0x140b3e0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b3e0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b3e07e
mov eax, 1
add dl, dl
jne 0x140b3e106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b3e113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b3e0fb
sub eax, ebx
mov ebx, 1
jne 0x140b3e14c
mov ecx, 1
add dl, dl
jne 0x140b3e12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b3e13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b3e123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b3e07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b3e168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b3e175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b3e15d
cmp eax, 0x7d00
jae 0x140b3e19b
cmp eax, 0x500
jb 0x140b3e196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b3e07e
cmp eax, 0x7f
ja 0x140b3e19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b3e07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b3e1d2
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 0x140b3e07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
movzx edi, dl
mov rbx, rcx
cmp rax, qword [rcx + 0x10]
jb 0x1400031d0
mov rcx, qword [rcx + 8]
cmp rax, rcx
je 0x1400031be
mov r9, qword [rbx]
sub rax, rcx
mov r8, rax
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], dil
inc qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov byte [rax], dil
inc qword [rcx + 0x18]
add rsp, 0x20
pop rdi
ret
Function at 0x140005520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rcx]
mov rdi, rcx
mov r8, qword [rbx + 0x18]
mov rax, r8
test dl, dl
je 0x1400055de
cmp r8, qword [rbx + 0x10]
jb 0x140005566
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005566
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], reloc.WS2_32.dll_WSACleanup
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14000559e
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14000559e
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], WSAStartup
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400055d6
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400055d6
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x75
jmp 0x1400056b0
cmp r8, qword [rbx + 0x10]
jb 0x140005605
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005605
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x66
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x14000563d
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x14000563d
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x61
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x140005675
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x140005675
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x6c
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400056ad
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400056ad
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], reloc.WS2_32.dll_WSAStartup
inc qword [rbx + 0x18]
mov rbx, qword [rdi]
mov r8, qword [rbx + 0x18]
mov rax, r8
cmp r8, qword [rbx + 0x10]
jb 0x1400056e5
mov rcx, qword [rbx + 8]
cmp r8, rcx
je 0x1400056e5
mov r9, qword [rbx]
sub r8, rcx
mov edx, 1
call fcn.140062110
mov rax, qword [rbx + 8]
mov qword [rbx + 0x18], rax
mov byte [rax], 0x65
mov al, 1
inc qword [rbx + 0x18]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret