joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140124dac
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov dword [rsp - 0x40], esp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
xchg rdi, rsp
mov qword [rax + 0x18], rsp
xchg rsp, rdi
xchg r12, r11
mov qword [rax + 0x20], r11
xchg r12, r11
nop
sub rsp, 8
mov qword [rsp], rbp
nop
sub rsp, 8
mov qword [rsp], r14
nop
push 0x64373cda
mov qword [rsp], r15
xchg rdx, rsp
mov rbp, rdx
xchg rsp, rdx
sub rsp, 0x60
mov dword [rsp - 0x18], 0x60c1d35d
xchg r15, rdi
mov rdi, qword [rcx + 0xb8]
xchg rdi, r15
lea rax, [rbp - 0x38]
mov rsi, qword [rcx + 0x80]
mov dword [rsp - 0x34], 0x5cfc099e
xorps xmm0, xmm0
mov rbx, rdx
xchg rsi, rax
mov qword [rbp - 0x40], rsi
xchg rsi, rax
lea rcx, [rbp - 0x40]
lea rdx, [r15 + 1]
xchg rdi, rbp
movups xmmword [rdi - 0x38], xmm0
xchg rbp, rdi
movups xmmword [rbp - 0x28], xmm0
xchg rsp, rbp
movups xmmword [rsp - 0x18], xmm0
xchg rsp, rbp
call fcn.140017984
xor edi, edi
mov r14d, 0x397646f8
add r14d, 0x3bff4ec8
xor r14d, 0x2abac384
sub r14d, 0x106df754
mov r8, rax
mov edx, r14d
mov r12d, 0x31da3e2
xor r12d, 0x39b64bd2
add r12d, 0x2dcbec2a
sub r12d, 0x6877d35b
test r15, r15
je 0x140124eda
xchg rcx, r13
mov r13, rax
xchg rcx, r13
sub rsi, rax
mov dword [rsp - 0x34], 0x60e3315f
mov r9, r15
movzx eax, dx
ror edx, 6
ror edx, 2
and ax, r12w
xor ax, word [rsi + rcx]
xchg rsi, rsi
mov word [rcx], ax
lea rcx, [rcx + 2]
sub r9, 1
jne 0x140124eb2
mov r11, r11
mov word [r8 + r15*2], di
mov edx, 0x71bda463
add edx, 0xc0e57ad
sub edx, 0x50c329f9
add edx, 0x157c3ab9
xor edx, 0x42850c8c
xchg rcx, rsp
mov rsp, qword [rbp - 0x40]
xchg rcx, rsp
call fcn.140099930
xchg rcx, rcx
lea rcx, [rbx + 8]
xorps xmm0, xmm0
xchg rbp, rcx
mov qword [rbx], rbp
xchg rbp, rcx
xchg r12, rcx
movups xmmword [r12], xmm0
xchg r12, rcx
xchg r12, rcx
movups xmmword [r12 + 0x10], xmm0
xchg r12, rcx
xchg rcx, r15
movups xmmword [r15 + 0x20], xmm0
xchg rcx, r15
test rax, rax
je 0x140124fc3
xchg rbp, rbp
lea rsi, [rax + 2]
or rdx, 0xffffffffffffffff
inc rdx
mov dword [rsp - 0x14], 0x704b2178
cmp word [rsi + rdx*2], di
jne 0x140124f54
xchg rcx, rbx
mov rbx, rcx
xchg rbx, rcx
xchg rdx, r10
mov qword [rbx + 0x38], r10
xchg r10, rdx
call fcn.140017984
mov rbp, rbp
cmp qword [rbx + 0x38], rdi
jbe 0x140124fcd
sub rsi, rax
xchg r10, r10
movzx ecx, r14w
inc rdi
and cx, r12w
xchg r10, r10
ror r14d, 8
xor cx, word [rsi + rax]
mov word [rax], cx
xchg r9, r9
lea rax, [rax + 2]
cmp rdi, qword [rbx + 0x38]
jb 0x140124f94
jmp 0x140124fcd
xchg r9, rdi
mov qword [rbx + 0x38], r9
xchg rdi, r9
xchg rcx, r9
mov r9, qword [rbp - 0x40]
xchg r9, rcx
lea rax, [rbp - 0x38]
cmp rcx, rax
mov dword [rsp - 0x28], esp
jne 0x14012500f
mov ecx, 0x5588c636
add ecx, 0x2031c531
sub ecx, 0x3d77159f
xor ecx, 0x384375f8
lea rdi, [rbp - 0x38]
xchg r13, r13
xor eax, eax
rep stosb byte [rdi], al
jmp 0x140125014
call fcn.140098770
lea r11, [rsp + 0x60]
xchg rbx, rax
mov rbx, rax
xchg rbx, rax
mov rbx, qword [r11 + 0x20]
mov dword [rsp - 0x14], ebp
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
xchg r12, r14
mov r14, qword [r11 + 0x38]
xchg r14, r12
mov rsp, r11
mov dword [rsp - 0x24], edx
pop r15
nop
add rsp, 8
mov r14, qword [rsp - 8]
pop rbp
ret
Function at 0x140133190
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, dword [0x140142004]
cmp qword [0x140142018], 0
xchg r12, r12
jne 0x14008d3e0
syscall
ret
jmp 0x14008df4b
Function at 0x14013599c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
xchg rsi, r10
mov qword [rsp + 0x10], r10
xchg r10, rsi
mov qword [rsp + 0x18], rdi
nop
sub rsp, 8
mov qword [rsp], rbp
push r10
mov qword [rsp], r12
nop
sub rsp, 8
mov qword [rsp], r14
xchg r11, rbp
mov r11, rsp
xchg rbp, r11
sub rsp, 0x70
xchg r15, r8
mov rdi, r15
xchg r8, r15
xchg rsi, rdx
mov r14, rsi
xchg rdx, rsi
mov rsi, rcx
movabs r12, 0x618d4120748049a6
sub r12, 0x73ece5da
add r12, 0x36bb0e8f
xor r12, 0x38742945
cmp r9d, 0x60001
jne 0x140135ba1
mov dword [rbp - 0x40], 0x24da3e2a
add dword [rbp - 0x40], 0x44354e04
sub dword [rbp - 0x40], 0x64ac95d6
add dword [rbp - 0x40], 0x5b0cff63
xor dword [rbp - 0x40], 0x8542fb21
xor edx, edx
mov dword [rsp - 0x2c], esi
mov dword [rbp - 0x3c], 0x5a2cad8e
xor dword [rbp - 0x3c], 0x2bc7ae86
xor dword [rbp - 0x3c], 0x5d8b0704
sub dword [rbp - 0x3c], 0x2c69b58
mov dword [rbp - 0x38], 0x21b2f49f
xor dword [rbp - 0x38], 0xbe4667a
xor dword [rbp - 0x38], 0x4dec8760
xor dword [rbp - 0x38], 0x8026d615
mov ecx, edx
mov eax, 0x22271ade
xor eax, 0x7f765616
sub eax, 0x1ecd1e9c
add eax, 0x75de0af
rol eax, cl
mov dword [rsp - 0x14], 0x339b088f
xor al, byte [rbp + rdx - 0x40]
mov byte [rbp + rdx - 0x34], al
inc rdx
cmp rdx, 0xc
mov dword [rsp - 0x18], 0x74ee8503
jb 0x140135a78
mov r9d, 0x689311a3
sub r9d, 0x1875f20e
xor r9d, 0x25dbf263
sub r9d, 0x75c6ddf7
mov qword [rsp + 0x20], 0x281706fb
add qword [rsp + 0x20], 0x162503fc
add qword [rsp + 0x20], 0x2e1ea3b9
sub qword [rsp + 0x20], 0x56097256
sub qword [rsp + 0x20], 0x16513c4e
lea r8, [rbp - 0x34]
mov r10, r10
mov rdx, rdi
xchg rcx, r14
mov r14, rcx
xchg r14, rcx
call fcn.140132dd8
xchg r11, rax
mov rbx, r11
xchg r11, rax
lea rdi, [rbp - 0x34]
mov dword [rsp - 0x30], edx
xor eax, eax
lea ecx, [rax + 0xc]
rep stosb byte [rdi], al
mov dword [rsp - 0xc], esi
test rbx, rbx
je 0x140135bf8
lea rdx, [rbp - 0x28]
lea rcx, [rbx + 0xc]
mov dword [rsp - 0x44], edi
call fcn.14008f708
test dword [rbp - 7], 0x1000
jne 0x140135bf8
mov dword [rsp - 0xc], 0x3c28cbac
cmp byte [rbp - 0x1d], 0xe8
jne 0x140135bf8
lea rdx, [rbx + 0xc]
mov rcx, r14
xchg r9, r9
call fcn.140084f70
movzx edx, byte [rbp - 0x28]
add edx, dword [rbp - 0x13]
add edx, eax
mov rdi, rdi
xchg r9, rax
mov r9, qword [rsi + 8]
xchg r9, rax
xor rax, r12
mov rcx, rcx
add rdx, rax
xor rdx, r12
xchg rsp, rdx
mov qword [rsi + 0x20], rsp
xchg rdx, rsp
cmp qword [rsi + 0x20], r12
mov dword [rsp - 0x30], edx
setne al
lea r11, [rsp + 0x70]
xchg rbx, r12
mov r12, qword [r11 + 0x20]
xchg rbx, r12
xchg rsi, r8
mov r8, qword [r11 + 0x28]
xchg r8, rsi
xchg rbx, rdi
mov rbx, qword [r11 + 0x30]
xchg rdi, rbx
mov rsp, r11
mov dword [rsp - 0x44], 0x6ec44c90
nop
add rsp, 8
mov r14, qword [rsp - 8]
nop
add rsp, 8
mov r12, qword [rsp - 8]
nop
mov rbp, qword [rsp]
add rsp, 8
ret
xor al, al
mov dword [rsp - 0x10], 0x2a0a84e2
jmp 0x140135bac
Function at 0x14000a3f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
sub rsp, 0x60
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
xor edi, edi
mov qword [rax + 0x20], rdi
mov r8, rdx
lea rdx, [rax - 0x40]
call fcn.14000a7c0
nop
lea rdx, [rbx + 0x10]
mov r8, rax
lea rcx, [rsp + 0x30]
call fcn.14000ebc0
nop
lea r8, [rsp + 0x98]
mov rdx, rax
call fcn.14000a9a0
test al, al
sete bl
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test bl, bl
je 0x14000a46b
xor al, al
jmp 0x14000a5d2
mov dword [rsp + 0x80], edi
mov r8, rbp
lea rdx, [rsp + 0x38]
call fcn.14000a750
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, dword [rsp + 0x80]
shr eax, 1
test dil, dil
je 0x14000a5c0
test eax, eax
jne 0x14000a4e4
lea rdx, [0x140027858]
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
jmp 0x14000a5c0
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14000c810
nop
mov r8, rbp
lea rdx, [rsp + 0x38]
call fcn.14000a750
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x28], rcx
mov rbx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete dil
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.mfc140u.dll_CMFCControlRendererInfo::CMFCControlRendererInfo]
nop
test rbx, rbx
je 0x14000a5c0
mov rax, qword [rsp + 0x58]
sub rax, rbx
sar rax, 1
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
jbe 0x14000a570
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rax, rax
cmp rax, 0x1000
jb 0x14000a5b7
test bl, 0x1f
je 0x14000a587
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x14000a597
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
sub rbx, rax
cmp rbx, 8
jae 0x14000a5a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cmp rbx, 0x27
jbe 0x14000a5b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rbx, rax
mov rcx, rbx
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonUndo::XElementButtonUndo]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000a5f0
Capabilities:
Set registry value

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x50], 0
mov r8, rdx
lea rdx, [rsp + 0x30]
call fcn.14000a7c0
nop
lea rdx, [rbx + 8]
mov r8, rax
lea rcx, [rsp + 0x68]
call fcn.14000ebc0
nop
lea r8, [rsp + 0x50]
mov rdx, rax
call fcn.14000a830
test al, al
sete bl
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rsp + 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
test bl, bl
je 0x14000a66c
xor al, al
jmp 0x14000a6c4
mov rdi, qword [rdi]
mov ebx, dword [rdi - 0x10]
mov r8, rsi
lea rdx, [rsp + 0x68]
call fcn.14000a750
mov rdx, qword [rax]
lea eax, [rbx*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
lea rcx, [rsp + 0x68]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140012710
Capabilities:
Get memory capacity

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x140043008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rcx
mov dword [rsp + 0x20], 0x40
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rdx, qword [rsp + 0x40]
mov eax, 0x7fffffff
shr rdx, 1
mov ecx, 0x18e6fdb
cmp rdx, rax
cmovbe eax, edx
mov edx, 0x3842494d
mov dword [rdi + 0x14], eax
mov rax, qword [rdi + 0x588]
cmp dword [rax + 0x1064], 0
cmovne ecx, edx
xor eax, eax
mov dword [rdi + 0x398], ecx
lea rcx, [rdi + 0x374]
nop
mov word [rcx], ax
lea rcx, [rcx + 2]
inc eax
cmp eax, 0x10
jl 0x140012780
mov rcx, qword [rdi + 0x588]
lea rdx, [rdi + 0x3cc]
or eax, 0xffffffff
mov byte [rdi + 0x394], 1
mov word [rdi + 0x3a4], ax
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rdi + 0x588]
mov rax, qword [rcx]
lea rbx, [rcx + 0x10b0]
call qword [rax + 0x18]
mov qword [rbx], rax
mov eax, 1
mov qword [rdi + 0x3f4], rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14001f1d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x140015ea0
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.140015ff0
mov rcx, rbx
call fcn.140016120
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
lea rdx, vtable.CdrConvStartupInit.0
cmp rax, rdx
je 0x140015efd
call qword [rax + 0xb8]
test al, al
je 0x140015efd
mov rcx, rbx
call fcn.1400161e0
mov al, 1
jmp 0x140015f03
add rsp, 0x30
pop rbx
ret

Function at 0x140016bd0
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 [0x140046f80]
test eax, eax
je 0x140016c11
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140046f80]
test eax, eax
jne 0x140016c1a
call fcn.140016a10
test eax, eax
je 0x140016c30
lea rdx, [rsp + 0x40]
mov rcx, qword [0x140043038]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x140016c34
xor eax, eax
jmp 0x140016c7a
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 0x140016c5e
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 0x140016c77
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 0x140016ee0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx + 0x20], 0
mov rbx, rcx
jne 0x140016fa6
add rcx, 0x38
call fcn.140016fb0
cmp qword [rbx + 0x68], 0
jne 0x140016f40
mov rax, qword [rbx + 0x48]
cmp dword [rax - 0x10], 0
jne 0x140016f12
xor eax, eax
jmp 0x140016f37
mov rcx, qword [rbx + 8]
lea rdx, str.GetUILang
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140016f37
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 0x140016fa6
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, [0x140017090]
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 [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140019290
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0x60
mov rax, qword [0x140043008]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebp, ebp
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov edx, 0x80000000
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x40], ebp
lea r8d, [rbp + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140019408
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
lea r8d, [rbp + 0xe]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140019314
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140019390
mov eax, dword [rsp + 0x4a]
test eax, eax
jne 0x14001932b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x4a], eax
cmp dword [rsp + 0x40], 0xe
jne 0x1400193f7
mov ecx, 0x4d42
cmp word [rsp + 0x48], cx
jne 0x1400193f7
mov qword [rsp + 0x78], rsi
mov edx, 1
lea esi, [rax - 0xe]
mov qword [rsp + 0x80], rdi
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
test rax, rax
jne 0x1400193ab
lea rcx, str.Out_of_memory_loading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001f1d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rbp
ret
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rbp
mov r8d, esi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400193e9
lea rcx, str.Error_reading_welcome_bitmap_file__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140019381
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rdi
jmp 0x140019383
lea rcx, str.Invalid_welcome_bitmap_file_format__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140019390
lea rcx, str.Welcome_bitmap_file_does_not_exist__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x140019390
Function at 0x140019490
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x40
mov rdi, r8
mov rsi, rcx
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rbx
mov eax, dword [0x140046f80]
test eax, eax
je 0x1400194d7
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x140046f80]
test eax, eax
jne 0x1400194e0
call fcn.140016a10
test eax, eax
je 0x1400194f6
lea rdx, [rsp + 0x68]
mov rcx, qword [0x140043038]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x1400194fa
xor eax, eax
jmp 0x140019550
mov qword [rsp + 0x20], rbx
lea r9, [0x140017830]
mov r8, rdi
mov edx, 0x6d47
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateDialogParamW]
mov rsi, rax
mov qword [rsp + 0x30], rax
mov edi, ebx
test rax, rax
sete dil
test edi, edi
je 0x140019534
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rdx, qword [rsp + 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test edi, edi
je 0x14001954d
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x14001aa00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor bl, bl
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
je 0x14001ab13
xor eax, eax
lea rdx, str.CLSID
mov qword [rsp + 0x30], rax
mov r9d, 0x20019
mov qword [rsp + 0x78], rax
xor r8d, r8d
mov qword [rsp + 0x70], rax
mov rcx, 0xffffffff80000000
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aae3
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aae3
mov rcx, qword [rsp + 0x78]
lea rax, [rsp + 0x70]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x140029d48]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001aae3
mov rcx, qword [rsp + 0x70]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rdx, [0x140027858]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov dword [rsp + 0x68], 0x400
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx ebx, bl
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14001aaf3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14001ab03
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14001ab13
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14001f6b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x14001f741
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x14001f741
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001f741
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 0x14001f725
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x14001f71f
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14001f727
add rdx, 0x28
jmp 0x14001f704
xor edx, edx
test rdx, rdx
jne 0x14001f730
xor al, al
jmp 0x14001f747
test dword [rdx + 0x24], 0x80000000
je 0x14001f73d
xor al, al
jmp 0x14001f747
mov al, 1
jmp 0x14001f747
xor al, al
jmp 0x14001f747
add rsp, 0x18
ret
Function at 0x1a1f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1a1f1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1a1f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1a1f06f
add dl, dl
jne 0x1a1f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1a1f0f6
xor eax, eax
add dl, dl
jne 0x1a1f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1a1f1ad
add dl, dl
jne 0x1a1f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1a1f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1a1f07e
mov eax, 1
add dl, dl
jne 0x1a1f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1a1f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1a1f0fb
sub eax, ebx
mov ebx, 1
jne 0x1a1f14c
mov ecx, 1
add dl, dl
jne 0x1a1f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a1f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1a1f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1a1f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1a1f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1a1f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1a1f15d
cmp eax, 0x7d00
jae 0x1a1f19b
cmp eax, 0x500
jb 0x1a1f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1a1f07e
cmp eax, 0x7f
ja 0x1a1f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1a1f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1a1f1d2
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 0x1a1f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20