joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140050d80
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 [0x1402cf4c8]
test eax, eax
je 0x140050dc2
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x140050dcb
call fcn.14002154c
test eax, eax
je 0x140050de7
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne ebx, ecx
test ebx, ebx
jne 0x140050def
xor eax, eax
jmp 0x140050e33
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 0x140050e16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140050e18
xor esi, esi
mov rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x140050e31
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 0x140058c50
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 0x140058c79
mov rdi, qword [rdx + 0x10]
jmp 0x140058cca
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 0x140058c9a
call fcn.140031a6c
mov rcx, qword [rbx + 8]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
jne 0x140058cb4
call fcn.140031a6c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
jne 0x140058cca
call fcn.140031a6c
call fcn.140033c28
cmp qword [rax + 0x68], 0
je 0x140058ce4
mov rdx, rdi
mov rcx, rbp
call fcn.140058048
mov rdi, rax
mov edx, esi
mov rcx, rdi
call fcn.140058f50
mov rcx, qword [rbp + 0xf8]
mov rsi, rax
test rcx, rcx
je 0x140058d0b
call qword [sym.imp.KERNEL32.dll_GlobalFree]
and qword [rbp + 0xf8], 0
test rsi, rsi
je 0x140058d1a
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 0x1400590e4
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 [0x1402d3218]
and qword [rax + 8], rbx
xor esi, esi
mov eax, dword [0x1402cf4c8]
test eax, eax
je 0x140059130
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x140059139
call fcn.14002154c
test eax, eax
je 0x140059155
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140059160
xor eax, eax
jmp 0x1400591ef
test r14, r14
jne 0x14005917d
lea rcx, str.CreatePropertySheetPageA
call fcn.1400593fc
test rax, rax
je 0x1400591ba
mov qword [0x1402d3218], rax
mov eax, dword [rdi + 4]
mov ecx, 0x4000
test ecx, eax
jne 0x14005919e
cmp dword [rdi], 0x60
jb 0x14005919e
or eax, ecx
mov dword [rdi + 4], eax
mov rax, qword [0x1402c7008]
mov qword [rdi + 0x58], rax
mov rbx, qword [0x1402d3218]
mov rcx, rbx
call fcn.1401d7360
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 0x1400591d1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400591d3
xor esi, esi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x1400591ec
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 0x140059208
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 [0x1402d3220]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402cf4c8]
test eax, eax
je 0x140059253
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x14005925c
call fcn.14002154c
test eax, eax
je 0x140059278
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140059280
xor eax, eax
jmp 0x1400592e5
test rbx, rbx
jne 0x1400592a0
lea rcx, str.DestroyPropertySheetPage
call fcn.1400593fc
mov rbx, rax
test rax, rax
je 0x1400592b3
mov qword [0x1402d3220], rax
mov rcx, rbx
call fcn.1401d7360
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 0x1400592c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400592ca
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400592e3
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 0x1400592fc
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 [0x1402d3228]
and qword [rax + 0x10], 0
xor esi, esi
mov eax, dword [0x1402cf4c8]
test eax, eax
je 0x14005934b
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x140059354
call fcn.14002154c
test eax, eax
je 0x140059370
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14005937a
or rax, 0xffffffffffffffff
jmp 0x1400593e4
test rbx, rbx
jne 0x14005939a
lea rcx, str.PropertySheetA
call fcn.1400593fc
mov rbx, rax
test rax, rax
je 0x1400593af
mov qword [0x1402d3228], rax
mov rcx, rbx
call fcn.1401d7360
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 0x1400593c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400593c8
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400593e1
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 0x14007b4f0
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 0x14007b522
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x14007b522
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.14014866c
mov eax, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14007b534
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 0x14007b55f
mov r8, rdx
mov rdx, qword [rdi]
call fcn.14004cf84
jmp 0x14007b5d7
cmp byte [0x1402d4678], 0
jne 0x14007b5a6
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14007b596
lea rdx, str.RegDeleteKeyExA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1402d4670], rax
jmp 0x14007b59d
mov rbx, qword [0x1402d4670]
mov byte [0x1402d4678], 1
jmp 0x14007b5ad
mov rbx, qword [0x1402d4670]
test rbx, rbx
je 0x14007b5cb
mov rcx, rbx
call fcn.1401d7360
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
call rbx
jmp 0x14007b5d7
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 0x14008c564
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 [0x1402d46e8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402cf4c8]
test eax, eax
je 0x14008c5af
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x14008c5b8
call fcn.14002154c
test eax, eax
je 0x14008c5d4
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14008c5dc
xor eax, eax
jmp 0x14008c641
test rbx, rbx
jne 0x14008c5fc
lea rcx, str.ImageList_GetImageCount
call fcn.140021084
mov rbx, rax
test rax, rax
je 0x14008c60f
mov qword [0x1402d46e8], rax
mov rcx, rbx
call fcn.1401d7360
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 0x14008c624
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14008c626
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14008c63f
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 0x140090e6c
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 0x140090e9d
call fcn.140033c28
mov rdi, qword [rax + 0x18]
lea r8, [0x140229c40]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rbp, rax
test rax, rax
jne 0x140090ebc
xor eax, eax
jmp 0x140090f08
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x140090eb8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140090efd
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rdx, r14
mov rcx, r15
mov r8d, eax
call fcn.140090f24
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 0x14012015c
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 0x14012032c
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 0x14012036e
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 0x1401207d8
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 0x1401208aa
test rbx, rbx
je 0x1401208b0
test r9, r9
je 0x1401208b6
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 0x140120893
cmp dword [rsp + 0x48], 3
jne 0x140120893
test eax, eax
jne 0x140120893
cmp dword [rdi], eax
je 0x140120893
mov ecx, dword [rdi]
call fcn.14002003c
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 0x140120887
cmp dword [rsp + 0x48], 3
jne 0x140120887
test eax, eax
jne 0x140120887
mov eax, 1
jmp 0x140120895
mov rcx, qword [rbx]
call fcn.140020034
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.14002e594
int3
call fcn.14002e594
int3
call fcn.14002e594
int3

Function at 0x140120bdc
Capabilities:
Set registry value

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

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140120c35
xor eax, eax
jmp 0x140120c59
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 0x1401861cc
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 [0x1402d7df8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402cf4c8]
test eax, eax
je 0x140186217
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x140186220
call fcn.14002154c
test eax, eax
je 0x14018623c
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x140186244
xor eax, eax
jmp 0x1401862a9
test rbx, rbx
jne 0x140186264
lea rcx, str.ChooseColorA
call fcn.140036afc
mov rbx, rax
test rax, rax
je 0x140186277
mov qword [0x1402d7df8], rax
mov rcx, rbx
call fcn.1401d7360
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 0x14018628c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14018628e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401862a7
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 0x1401d65e4
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 [0x1402d9108]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1402cf4c8]
test eax, eax
je 0x1401d662f
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1402cf4c8]
test eax, eax
jne 0x1401d6638
call fcn.14002154c
test eax, eax
je 0x1401d6654
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402c7008]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401d665c
xor eax, eax
jmp 0x1401d66c1
test rbx, rbx
jne 0x1401d667c
lea rcx, str.PrintDlgA
call fcn.140036afc
mov rbx, rax
test rax, rax
je 0x1401d668f
mov qword [0x1402d9108], rax
mov rcx, rbx
call fcn.1401d7360
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 0x1401d66a4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401d66a6
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401d66bf
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 0x1401efcec
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 0x1401efac0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401efac0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401efac0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401efac0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401efac0
cmp dword [rcx + 0x84], 0xe
jbe 0x1401efac0
cmp dword [rcx + 0xf8], esi
je 0x1401efac0
mov ecx, r14d
call fcn.1401efc08
mov ecx, 2
call fcn.1401f20a4
nop
cmp byte [0x1402da0e0], 0
jne 0x1401efb8a
mov r15d, 1
mov eax, r15d
xchg dword [0x1402da0d0], eax
test ebx, ebx
jne 0x1401efb33
mov rdi, qword [0x1402c8768]
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 [0x1402da0d8]
cmp rcx, rax
je 0x1401efb2a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140005dd0]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402da218]
jmp 0x1401efb3f
cmp ebx, r15d
jne 0x1401efb45
lea rcx, [0x1402da230]
call fcn.1401f07a0
nop
test ebx, ebx
jne 0x1401efb5c
lea rdx, [0x140216b98]
lea rcx, [0x140216b78]
call fcn.1401f0b04
lea rdx, [0x140216ba8]
lea rcx, [0x140216ba0]
call fcn.1401f0b04
movzx eax, byte [0x1402da0e0]
test esi, esi
cmove eax, r15d
mov byte [0x1402da0e0], al
jmp 0x1401efb8a
mov ecx, 2
call fcn.1401f20f8
test esi, esi
jne 0x1401efba1
mov ecx, r14d
call fcn.1401efbbc
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 0x1401efa50
Function at 0x1401f99a0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1401f9840
call fcn.1401e1464
mov dword [rax], 0x16
call fcn.1401e1314
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1401f9828
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401f9828
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401f9872
lock or dword [rax + 0x14], 0x10
jmp 0x1401f9828
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401f988f
mov rcx, qword [rbp + 0x10]
call fcn.1402020bc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401eb5ec
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401f9064
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401f98e6
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1401f9828
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401f9952
mov rcx, qword [rbp + 0x10]
call fcn.1401eb5ec
cmp eax, 0xffffffff
je 0x1401f9939
mov rcx, qword [rbp + 0x10]
call fcn.1401eb5ec
cmp eax, 0xfffffffe
je 0x1401f9939
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401eb5ec
movsxd rdi, eax
lea rsi, [0x1402da4a0]
mov rcx, rbx
sar rdi, 6
call fcn.1401eb5ec
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401f9940
lea rax, [0x1402c8ba0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401f9952
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401f9988
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401f9984
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401f9984
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1401f982b
jmp 0x1401f97f8