joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b9e8d
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x140111470
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x140111498
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x1401114e2
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14011148d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret

Function at 0x1400bb558
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401c0a80
mov rax, rcx
neg rcx
test rax, 7
je 0x1401c0a9d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401c0af8
test al, 7
jne 0x1401c0a90
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401c0ab1
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401c0b22
test dh, dh
je 0x1401c0b1c
shr rdx, 0x10
test dl, dl
je 0x1401c0b16
test dh, dh
je 0x1401c0b10
shr rdx, 0x10
test dl, dl
je 0x1401c0b0a
test dh, dh
je 0x1401c0b04
shr edx, 0x10
test dl, dl
je 0x1401c0afe
test dh, dh
jne 0x1401c0ab1
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400bb58f
Capabilities:
Query environment variable

Disassembly:
jmp 0x140206de0
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140206960
lea rcx, [rsp + 0x20]
call fcn.1402069b0
movzx eax, al
test eax, eax
jne 0x140206e25
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.140206990
mov rax, qword [rsp + 0x40]
jmp 0x140206f1f
lea rcx, [rsp + 0x20]
call fcn.140206ab0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.140206a50
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, rax
call fcn.1400bb8f5
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400baf04
lea rcx, [rsp + 0x28]
call fcn.1400bbde6
movzx eax, al
test eax, eax
jne 0x140206ebf
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400bd2f9
lea rcx, [rsp + 0x20]
call fcn.140206990
mov rax, qword [rsp + 0x50]
jmp 0x140206f1f
lea rcx, [rsp + 0x20]
call fcn.140206ab0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400be2e9
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400bb841
lea rcx, [rsp + 0x28]
call fcn.1400bec76
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400bd2f9
lea rcx, [rsp + 0x20]
call fcn.140206990
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400bba99
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x1401671b0
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140166b30
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1401671ef
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ab020]
jmp 0x1401671f9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400bbd0a
Capabilities:
Query environment variable

Disassembly:
jmp 0x140206b30
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140206960
lea rcx, [rsp + 0x40]
call fcn.140206ae0
movzx eax, al
test eax, eax
jne 0x140206b78
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140206990
mov rax, qword [rsp + 0x70]
jmp 0x140206d49
lea rcx, [rsp + 0x40]
call fcn.140206ab0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.140206a50
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.140206ab0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400bcf2a
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140206c1e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140206990
mov rax, qword [rsp + 0x80]
jmp 0x140206d49
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400bb8f5
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400bb6fc
lea rcx, [rsp + 0x48]
call fcn.1400bb134
movzx eax, al
test eax, eax
jne 0x140206c85
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9d02
lea rcx, [rsp + 0x40]
call fcn.140206990
mov rax, qword [rsp + 0x88]
jmp 0x140206d49
lea rcx, [rsp + 0x48]
call fcn.1400bc219
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.140206ab0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400bcf2a
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140206d1b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9d02
lea rcx, [rsp + 0x40]
call fcn.140206990
mov rax, qword [rsp + 0xa0]
jmp 0x140206d49
lea rcx, [rsp + 0x48]
call fcn.1400bb6b6
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400b9d02
lea rcx, [rsp + 0x40]
call fcn.140206990
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400bbd23
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x1401670e0
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140166ab0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140167121
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ab020]
jmp 0x140167127
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret

Function at 0x1400bbdf0
Capabilities:
Get geographical location

Disassembly:
jmp 0x1401f9850
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.1401f8780
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1401f98b7
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402ab030]
jmp 0x1401f98d9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400bb0a8
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400bbe04
Capabilities:
Terminate process

Disassembly:
jmp 0x140143f60
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bc1b0
Capabilities:
Print debug messages

Disassembly:
jmp 0x14021ac90
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14028e068]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x14021acb6
jmp 0x14021ad33
mov rcx, qword [rbp + 0x30]
call fcn.1400bb558
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x14021accf
jmp 0x14021ad33
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x14021acec
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400b9f2d
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ba53b
test eax, eax
jne 0x14021ad33
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400bb81e
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400bc606
Capabilities:
Set environment variable

Disassembly:
jmp 0x140208c90
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret

Function at 0x1400bc967
Capabilities:
Parse pe header

Disassembly:
jmp 0x140144cd0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140144cf0
xor al, al
jmp 0x140144d71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140144d03
xor al, al
jmp 0x140144d71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140144d2d
xor al, al
jmp 0x140144d71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140144d41
xor al, al
jmp 0x140144d71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140144d53
xor al, al
jmp 0x140144d71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140144d6f
xor al, al
jmp 0x140144d71
mov al, 1
add rsp, 0x38
ret
Function at 0x1400bd1e6
Capabilities:
Terminate process

Disassembly:
jmp 0x140168180
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1401681ae
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400bdddf
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400bde66
Capabilities:
Print debug messages

Disassembly:
jmp 0x1401f5390
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400bdfd3
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x140167220
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140166b70
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140167269
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402ab020]
jmp 0x140167278
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret
Function at 0x140227030
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b9f2d
sub rsp, rax
mov rax, qword [0x14028e068]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140292bb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140227222
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140227176
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140227176
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14022715b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1402270f8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402271e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140227241
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x14022721d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140227241
jmp 0x1402270ce
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bb81e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1402272f0
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400b9f2d
sub rsp, rax
mov rax, qword [0x14028e068]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x140292bb0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1402274fd
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140227449
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140227449
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140227429
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1402273b8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1402274bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14022751c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x1402274f8
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x14022751c
jmp 0x14022738e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400bb81e
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140199000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1401990d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
mov rsi, qword [rdx + 0x50]
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140199037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14019902d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1401990cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1401990cb
add rax, rdx
mov r8d, dword [rax + 0x20]
add r8, rdx
push rax
mov ecx, dword [rax + 0x18]
jrcxz 0x1401990ca
xor r9, r9
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor rax, rax
ror r9d, 0xd
lodsb al, byte [rsi]
add r9d, eax
cmp al, ah
jne 0x140199081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140199072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140199021
Function at 0x140003d10
Capabilities:
Read .ini file

Disassembly:
push rsi
push rdi
push r14
mov eax, 0x2460
call fcn.14000af50
sub rsp, rax
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2490], rbx
mov qword [rsp + 0x2498], rbp
mov rax, qword [0x140019008]
xor rax, rsp
mov qword [rsp + 0x2450], rax
mov rsi, rcx
mov qword [rsp + 0x40], rcx
call fcn.140002720
nop
lea rax, vtable.CDupWizSelectPrinterPage.0
mov qword [rsi], rax
lea r14, [rsi + 0x2b0]
mov qword [rsp + 0x48], r14
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CPropertyPage::CPropertyPage]
lea rax, vtable.CTypedPtrArray_class_CPtrArray__struct_CDupWizSelectPrinterPage::PrinterData____ptr64_.0
mov qword [r14], rax
xor ebp, ebp
mov dword [rsi + 0x2d8], ebp
mov dword [rsp + 0x20], 0x1000
lea r9, [rsp + 0x450]
lea r8, [0x14000d758]
xor edx, edx
lea rcx, str.Devices
call qword [sym.imp.KERNEL32.dll_GetProfileStringW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.CrlUtl.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_DLL_wchar_t__class_ATL::ChTraitsCRT_wchar_t______cdecl_INIGetCorelPrnIniFile_void_]
nop
mov ecx, ebp
lea rdx, str.PagePath_Section
nop word [rax + rax]
movzx eax, word [rcx + rdx]
mov word [rsp + rcx + 0x250], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140003dd0
mov word [rsp + 0x50], bp
lea rbx, [rsp + 0x450]
cmp word [rsp + 0x450], ax
je 0x140003e9d
mov ecx, InitCommonControls
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonLinkCtrl::XElementButtonLinkCtrl]
mov rdi, rax
test rax, rax
je 0x140003e1e
mov rcx, rax
call qword [sym.imp.mfc140u.dll_Ordinal_296]
jmp 0x140003e21
mov rdi, rbp
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x100
lea r9, [rsp + 0x50]
lea r8, [0x14000d758]
mov rdx, rbx
lea rcx, [rsp + 0x250]
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, ebp
cmp word [rsp + 0x50], ax
setne al
mov dword [rdi + 8], eax
mov r8, rdi
mov rdx, qword [r14 + 0x10]
mov rcx, r14
call qword [sym.imp.mfc140u.dll_CWinApp::RunEmbedded]
or rcx, 0xffffffffffffffff
nop dword [rax]
lea rcx, [rcx + 1]
cmp word [rbx + rcx*2], 0
jne 0x140003e80
lea rbx, [rbx + rcx*2]
add rbx, 2
cmp word [rbx], 0
jne 0x140003e00
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
mov rax, rsi
mov rcx, qword [rsp + 0x2450]
xor rcx, rsp
call fcn.140009ea0
lea r11, [rsp + 0x2460]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005480
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
mov r8b, 1
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.CrlUtils.dll_public:_void___cdecl_CrlUtils::CommandLine::SetCommandLine_wchar_t_const____ptr64__bool____ptr64]
mov rcx, rbx
call fcn.1400055a0
mov rcx, rbx
call fcn.1400056d0
mov al, 1
jmp 0x1400054be
add rsp, 0x30
pop rbx
ret
Function at 0x1400060e0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
xor ebx, ebx
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x40], rbx
mov eax, dword [0x14001aab0]
test eax, eax
je 0x140006121
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14001aab0]
test eax, eax
jne 0x14000612a
call fcn.140005f20
test eax, eax
je 0x140006140
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140019038]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x140006144
xor eax, eax
jmp 0x14000618a
lea rcx, str.crlutl.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
mov qword [rsp + 0x20], rax
mov esi, ebx
test rax, rax
sete sil
test esi, esi
je 0x14000616e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test esi, esi
je 0x140006187
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rdi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400063f0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov rbx, rcx
jne 0x1400064b6
add rcx, 0x38
call fcn.1400064c0
cmp qword [rbx + 0x68], 0
jne 0x140006450
mov rax, qword [rbx + 0x48]
cmp dword [rax - 0x10], 0
jne 0x140006422
xor eax, eax
jmp 0x140006447
mov rcx, qword [rbx + 8]
lea rdx, str.GetUILang
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140006447
call rax
mov rdx, qword [rbx + 0x48]
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x78]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x1400064b6
lea rcx, [rbx + 0x60]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::DrawButton]
movzx eax, byte [rbx + 0xb0]
xor r9d, r9d
xor r8d, r8d
mov byte [rbx + 0x10], al
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x28], rax
mov r9, rbx
lea r8, [0x1400065a0]
xor edx, edx
lea rax, [rbx + 0x30]
xor ecx, ecx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [rbx + 0x28]
or edx, 0xffffffff
mov qword [rbx + 0x20], rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x30
pop rbx
ret
add byte [rdi - 0x24], bl
invalid