joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401bb2dc
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbx, rcx
call fcn.14003d760
test eax, eax
je 0x1401bb410
cmp dword [rbx + 0xb28], 0
je 0x1401bb32c
and dword [rbx + 0x124], 0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
jmp 0x1401bb415
call fcn.1400321b4
mov rcx, qword [rax + 8]
call fcn.140017d90
nop
mov rcx, qword [rbx + 0xb30]
sub rcx, 0x18
call fcn.1400143f8
add rax, 0x18
mov qword [rsp + 0x60], rax
cmp dword [rax - 0x10], 0
jne 0x1401bb367
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.140036fa8
lea rdx, [rbx + 0xb38]
lea r8, [rsp + 0x60]
lea rcx, [rsp + 0x68]
call fcn.14004f2f0
mov dword [rsp + 0x28], 1
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rax]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401bb3ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov dword [rbx + 0xb2c], 1
and dword [rbx + 0x124], 0
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1401bb406
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x58]
call fcn.14003364c
mov eax, 1
add rsp, 0x40
pop rbx
ret
Function at 0x1401cb84c
Capabilities:
Get common file path

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xc0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov rdi, rcx
xor eax, eax
cmp qword [0x1403ee690], rax
setne al
test eax, eax
jne 0x1401cb87d
call fcn.140010b1c
int3
lea r8, [rbp + 0x77]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jns 0x1401cb896
xor eax, eax
jmp 0x1401cba04
lea rcx, [rbp + 0x7f]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
js 0x1401cb88f
mov dword [rbp - 0x59], VarCyFromDisp
mov edx, reloc.OLEAUT32.dll_SafeArrayGetElement
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
xor ecx, ecx
test rax, rax
setne cl
test ecx, ecx
jne 0x1401cb8ce
call fcn.140010b1c
int3
mov rax, qword [rbp + 0x77]
mov qword [rbx + 0x10], rax
mov rdx, qword [rbp + 0x77]
mov rcx, qword [0x1403ee690]
call fcn.14002dcc0
mov qword [rbx + 8], rax
and qword [rbx], 0
mov qword [rbp - 0x29], rbx
mov rax, qword [rdi]
mov r8, rbx
lea rdx, [rbp + 0x6f]
mov rcx, rdi
call qword [rax + 0x2c8]
nop
mov rax, qword [rbp + 0x6f]
mov edx, dword [rax - 0x10]
test edx, edx
jns 0x1401cb91c
mov ecx, 0x80070057
call fcn.140004b6c
int3
mov r8d, 1
sub r8d, dword [rax - 8]
mov ecx, dword [rax - 0xc]
sub ecx, edx
or ecx, r8d
jge 0x1401cb93d
lea rcx, [rbp + 0x6f]
call fcn.14000574c
mov rax, qword [rbp + 0x6f]
mov qword [rbp - 0x41], rax
mov rax, qword [rdi]
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x2d0]
mov dword [rbp - 0x35], eax
mov rax, qword [rdi]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x2d0]
mov dword [rbp - 0x31], eax
mov dword [rbp - 0x2d], 1
movups xmm0, xmmword [rbp - 0x59]
movaps xmmword [rbp - 9], xmm0
movups xmm1, xmmword [rbp - 0x49]
movaps xmmword [rbp + 7], xmm1
movups xmm0, xmmword [rbp - 0x39]
movaps xmmword [rbp + 0x17], xmm0
movsd xmm1, qword [rbp - 0x29]
movsd qword [rbp + 0x27], xmm1
mov qword [rbp - 0x11], 0xffffffffffff0002
mov qword [rbp - 0x19], 0xffffffffffff0000
lea r9, [rbp - 0x19]
xor r8d, r8d
mov edx, 0x1132
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rax
mov edx, 0x1102
mov r8d, 2
mov rcx, qword [rdi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rbp + 0x7f]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x1401cb9ff
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, 1
add rsp, 0xc0
pop rdi
pop rbx
pop rbp
ret
Function at 0x1401ce314
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov bl, r8b
movzx ebp, dx
mov rdi, rcx
call qword [rax + 0x2f0]
mov ecx, ebp
mov edx, 2
mov esi, eax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
test bl, bl
jne 0x1401ce36b
test esi, esi
js 0x1401ce36b
cmp ax, 0x20
je 0x1401ce35d
cmp bp, 0x71
jne 0x1401ce36b
mov rax, qword [rdi]
mov edx, esi
mov rcx, rdi
call qword [rax + 0x320]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1401d0314
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push r14
push r15
sub rsp, 0x30
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x30], rbx
mov qword [rbp + 0x38], rsi
mov qword [rbp + 0x40], rdi
mov qword [rbp + 0x48], r12
mov rax, qword [0x1403e39c0]
xor rax, rbp
mov qword [rbp], rax
xor ebx, ebx
mov rdi, r8
mov rsi, rdx
mov r12, rcx
test rdx, rdx
jne 0x1401d0358
xor eax, eax
jmp 0x1401d0485
test r8, r8
je 0x1401d0351
call fcn.1400321b4
mov r8, rdi
mov rdx, rsi
mov r14, qword [rax + 0x18]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x1401d0351
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1401d0351
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x1401d04ab
mov rcx, rax
call fcn.14027bf60
lea r15d, [rax + 1]
lea ecx, [r15 + r15]
movsxd r8, ecx
lea rdx, [r8 + 0x10]
cmp r8, rdx
sbb rcx, rcx
test rdx, rcx
je 0x1401d043e
lea rcx, [r8 + 0x10]
cmp r8, rcx
sbb rax, rax
and rax, rcx
cmp rax, 0x400
lea rax, [r8 + 0x10]
ja 0x1401d041c
cmp r8, rax
sbb rcx, rcx
and rcx, rax
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x1401d03fa
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.1402414f0
sub rsp, rax
lea rdi, [rsp + 0x20]
test rdi, rdi
je 0x1401d04b1
mov dword [rdi], 0xcccc
jmp 0x1401d0438
cmp r8, rax
sbb rcx, rcx
and rcx, rax
call fcn.14028a4ac
mov rdi, rax
test rax, rax
je 0x1401d0441
mov dword [rax], 0xdddd
add rdi, 0x10
jmp 0x1401d0441
mov rdi, rbx
test rdi, rdi
je 0x1401d04b1
mov r8d, r15d
mov rdx, r14
mov rcx, rdi
call fcn.140014138
test rax, rax
je 0x1401d0469
mov rdx, rax
mov rcx, r12
call fcn.1401d2d10
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeResource]
lea rcx, [rdi - 0x10]
cmp dword [rcx], 0xdddd
jne 0x1401d0483
call fcn.140288318
mov eax, ebx
mov rcx, qword [rbp]
xor rcx, rbp
call fcn.1402410d0
mov rbx, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x38]
mov rdi, qword [rbp + 0x40]
mov r12, qword [rbp + 0x48]
lea rsp, [rbp + 0x10]
pop r15
pop r14
pop rbp
ret
call fcn.140010b1c
int3
call fcn.140010b1c
int3
Function at 0x1401d2e90
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 [0x1403f7388]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x1401d2edb
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x1401d2ee4
call fcn.1400198e8
test eax, eax
je 0x1401d2f00
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401d2f08
xor eax, eax
jmp 0x1401d2f65
test rbx, rbx
jne 0x1401d2f28
lea rcx, str.ImageList_DrawIndirect
call fcn.14002cea8
mov rbx, rax
test rax, rax
je 0x1401d2f33
mov qword [0x1403f7388], rax
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 0x1401d2f48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401d2f4a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401d2f63
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 0x1401d2f7c
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 qword [rax - 0x18], rdi
mov rbx, qword [0x1403f7390]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x1401d2fc8
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x1401d2fd1
call fcn.1400198e8
test eax, eax
je 0x1401d2fed
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401d2ff5
xor eax, eax
jmp 0x1401d3056
test rbx, rbx
jne 0x1401d3015
lea rcx, str.ImageList_Duplicate
call fcn.14002cea8
mov rbx, rax
test rax, rax
je 0x1401d3022
mov qword [0x1403f7390], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
test rdi, rdi
sete bl
test ebx, ebx
je 0x1401d3038
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401d303a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401d3053
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 0x14020a910
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
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
test rdx, rdx
jne 0x14020a939
xor eax, eax
jmp 0x14020a9b9
test rbx, rbx
je 0x14020a932
test r9, r9
jne 0x14020a951
call fcn.1400321b4
mov r9, qword [rax + 0x18]
test r9, r9
je 0x14020a932
mov r8, rbx
mov qword [rdi + 0x10], r9
mov rdx, rsi
mov rcx, r9
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14020a932
mov rcx, qword [rdi + 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
test eax, eax
je 0x14020a932
mov rcx, qword [rdi + 0x10]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x14020a932
mov rbx, qword [rdi]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r8d, ebp
mov rcx, rdi
mov rdx, rax
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14022a3b4
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 [0x1403f7ee0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x14022a3ff
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x14022a408
call fcn.1400198e8
test eax, eax
je 0x14022a424
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14022a42c
xor eax, eax
jmp 0x14022a489
test rbx, rbx
jne 0x14022a44c
lea rcx, str.ChooseFontW
call fcn.14005a8f0
mov rbx, rax
test rax, rax
je 0x14022a457
mov qword [0x1403f7ee0], rax
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 0x14022a46c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14022a46e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14022a487
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 0x14022b8f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, rdx
mov rbx, rcx
test r8d, r8d
jne 0x14022b909
xor eax, eax
jmp 0x14022b968
test rax, rax
je 0x14022b973
mov r9, qword [rcx + 0x28]
mov edx, 1
mov rcx, rax
mov r8d, r8d
call fcn.1402a7084
mov rdi, rax
test eax, eax
jne 0x14022b936
mov rcx, qword [rbx + 0x28]
call fcn.1402a6d64
test eax, eax
je 0x14022b979
mov rcx, qword [rbx + 0x28]
call fcn.1402a6d90
test eax, eax
je 0x14022b966
mov rcx, qword [rbx + 0x28]
call fcn.1402a6424
test eax, eax
je 0x14022b9a4
cmp eax, 0xc
je 0x14022b99e
cmp eax, 0x16
je 0x14022b998
cmp eax, 0x22
je 0x14022b998
cmp eax, 0x50
je 0x14022b9a4
jmp 0x14022b992
mov eax, edi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
call fcn.140010b1c
int3
mov rbx, qword [rbx + 0x18]
call fcn.14027bdf8
mov r8, rbx
mov ecx, 1
mov edx, dword [rax]
call fcn.14010bea0
int3
call fcn.140010b1c
int3
call fcn.140010b1c
int3
call fcn.140010b94
int3
mov rbx, qword [rbx + 0x18]
call fcn.14027bdf8
mov r8, rbx
mov ecx, 1
mov edx, dword [rax]
call fcn.14010bea0
int3
Function at 0x14023dc4c
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 qword [rax - 0x18], rdi
mov rbx, qword [0x1403f8168]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x14023dc98
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x14023dca1
call fcn.1400198e8
test eax, eax
je 0x14023dcbd
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14023dcc5
xor eax, eax
jmp 0x14023dd26
test rbx, rbx
jne 0x14023dce5
lea rcx, str.FindTextW
call fcn.14005a8f0
mov rbx, rax
test rax, rax
je 0x14023dcf2
mov qword [0x1403f8168], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
test rdi, rdi
sete bl
test ebx, ebx
je 0x14023dd08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14023dd0a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14023dd23
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 0x14023dd3c
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 qword [rax - 0x18], rdi
mov rbx, qword [0x1403f8170]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x14023dd88
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x14023dd91
call fcn.1400198e8
test eax, eax
je 0x14023ddad
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14023ddb5
xor eax, eax
jmp 0x14023de16
test rbx, rbx
jne 0x14023ddd5
lea rcx, str.ReplaceTextW
call fcn.14005a8f0
mov rbx, rax
test rax, rax
je 0x14023dde2
mov qword [0x1403f8170], rax
mov rcx, r14
call rbx
mov rdi, rax
mov qword [rsp + 0x20], rax
xor ebx, ebx
test rdi, rdi
sete bl
test ebx, ebx
je 0x14023ddf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14023ddfa
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14023de13
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 0x14023eda8
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 [0x1403f8188]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x14023edf3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x14023edfc
call fcn.1400198e8
test eax, eax
je 0x14023ee18
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14023ee20
xor eax, eax
jmp 0x14023ee7d
test rbx, rbx
jne 0x14023ee40
lea rcx, str.PageSetupDlgW
call fcn.14005a8f0
mov rbx, rax
test rax, rax
je 0x14023ee4b
mov qword [0x1403f8188], rax
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 0x14023ee60
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14023ee62
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14023ee7b
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 0x14023ee94
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 [0x1403f8180]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x1403ee544]
test eax, eax
je 0x14023eedf
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1403ee544]
test eax, eax
jne 0x14023eee8
call fcn.1400198e8
test eax, eax
je 0x14023ef04
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1403e2448]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x14023ef0c
xor eax, eax
jmp 0x14023ef69
test rbx, rbx
jne 0x14023ef2c
lea rcx, str.PrintDlgW
call fcn.14005a8f0
mov rbx, rax
test rax, rax
je 0x14023ef37
mov qword [0x1403f8180], rax
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 0x14023ef4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x14023ef4e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14023ef67
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 0x140240ab0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140240b41
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140240b41
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140240b41
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140240b25
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140240b1f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140240b27
add rdx, 0x28
jmp 0x140240b04
xor edx, edx
test rdx, rdx
jne 0x140240b30
xor al, al
jmp 0x140240b47
test dword [rdx + 0x24], 0x80000000
je 0x140240b3d
xor al, al
jmp 0x140240b47
mov al, 1
jmp 0x140240b47
xor al, al
jmp 0x140240b47
add rsp, 0x18
ret

Function at 0x140246420
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1403e39c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r12, rcx
xor r15d, r15d
cmp qword [rcx + 0x68], r15
je 0x1402465aa
cmp byte [rcx + 0x72], r15b
je 0x1402465aa
mov rax, qword [rcx]
mov edi, 0xffff
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call fcn.140241b14
movzx edx, di
mov rcx, r12
call rbx
cmp di, ax
jne 0x140246497
xor al, al
jmp 0x1402465ac
mov edx, reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rbp - 0x18], rdx
xor ecx, ecx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], 8
lea rax, [rbp - 0x30]
cmp rdx, 0x10
cmovae rax, rcx
mov byte [rax + 8], r15b
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
lea r9, [rbp - 0x30]
cmp rdx, 0x10
cmovae r9, r8
lea r14, [rbp - 0x30]
cmovae r14, r8
mov rsi, qword [r12 + 0x68]
mov rdx, qword [rsi]
mov rbx, qword [rbp - 0x20]
add rbx, r9
mov rdi, qword [rdx + 0x40]
mov rcx, rdi
call fcn.140241b14
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r14
lea rdx, [r12 + 0x74]
mov rcx, rsi
call rdi
mov ecx, eax
test eax, eax
je 0x14024651b
sub ecx, 1
jne 0x14024658f
jmp 0x140246520
mov byte [r12 + 0x72], r15b
lea rax, [rbp - 0x30]
mov r8, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
cmovae rax, r8
mov rbx, qword [rbp - 0x40]
sub rbx, rax
je 0x14024656b
lea rcx, [rbp - 0x30]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, qword [r12 + 0x80]
mov r8, rbx
mov edx, 1
call fcn.140289ddc
cmp rbx, rax
jne 0x140246597
mov rdx, qword [rbp - 0x18]
mov r8, qword [rbp - 0x30]
cmp byte [r12 + 0x72], r15b
je 0x140246594
test rbx, rbx
jne 0x1402464c6
xor r8d, r8d
lea edx, [rbx + 8]
lea rcx, [rbp - 0x30]
call fcn.1400062b0
jmp 0x1402464be
cmp ecx, 2
jne 0x140246597
mov r15b, 1
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140005f1c
mov al, r15b
jmp 0x1402465ac
mov al, 1
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1402410d0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret