joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140151b70
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x140151c25
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x140151bf1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140151c10
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140151c10
mov rdx, qword [rdi]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp dword [rdi + 8], 0
je 0x140151c10
mov rcx, rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1402c7c38], 0
jne 0x140151c70
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140151c60
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c7c30], rax
mov byte [0x1402c7c38], 1
jmp 0x140151c77
mov rax, qword [0x1402c7c30]
mov byte [0x1402c7c38], 1
jmp 0x140151c77
mov rax, qword [0x1402c7c30]
mov rcx, qword [rbx]
mov rdx, rsi
test rax, rax
je 0x140151bfa
mov r8d, dword [rbx + 8]
xor r9d, r9d
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp rax
Function at 0x140152a20
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1402c5168]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x48], rbp
mov r8, rdx
mov dword [rsp + 0x50], ebp
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x58], rbp
lea rcx, [rsp + 0x48]
call fcn.140152280
mov ebx, eax
test eax, eax
jne 0x140152b37
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140152b11
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140152a20
mov ebx, eax
test eax, eax
jne 0x140152b37
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x40], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140152ac0
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140152b26
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], rbp
mov rdx, rsi
mov dword [rsp + 0x50], ebp
mov rcx, rdi
call fcn.140151b70
mov ebx, eax
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140152b47
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140187450
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140153050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov rax, qword [0x1402c5168]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1401530de
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1401530de
call fcn.1401518b0
mov ebx, eax
jmp 0x140153203
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1401530ff
call fcn.1401518b0
jmp 0x1401531f2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140153122
call fcn.1401518b0
jmp 0x1401531f2
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140153144
mov ebx, 0x8007000e
jmp 0x1401531f4
mov ecx, eax
test eax, eax
je 0x140153179
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14015323b
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140153179
lea rcx, [rsp + 0x70]
call fcn.140151790
jmp 0x140153183
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140153196
cmp qword [rsp + 0x70], 0
jne 0x1401531a5
mov ebx, 0x8007000e
jmp 0x1401531f4
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x1401531cf
call fcn.1401518b0
jmp 0x1401531f2
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.140152b70
mov ebx, eax
test rdi, rdi
je 0x140153203
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x14015321a
lea rcx, [rsp + 0x70]
call fcn.140151d00
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.140187450
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.1401518e0
int3
Function at 0x14018aea0
Capabilities:
Read pipe
Write file on windows
Write pipe

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
lea r14, [rcx + 0x370]
mov r15, rdx
cmp qword [r14 + 0x18], 8
mov rsi, rcx
jb 0x14018aed7
mov r14, qword [r14]
mov edi, dword [rcx + 0x390]
mov ebx, dword [rcx + 0x38]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movups xmm0, xmmword [rsi + 0x28]
mov dword [rbp - 0x5c], eax
lea r9, [rsp + 0x40]
lea rax, [rsi + 0x5c]
mov dword [rbp - 0x58], ebx
xor ebx, ebx
mov qword [rbp - 0x50], rax
lea rax, [rsi + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rbp - 0x48], rax
lea rdx, [rbp - 0x60]
lea rax, [rsi + 0x68]
mov dword [rbp - 0x60], 1
mov qword [rbp - 0x40], rax
lea r8d, [rbx + 0x60]
xor eax, eax
mov qword [rbp - 0x28], rbx
mov qword [rsp + 0x68], rax
mov rcx, r15
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x80]
movups xmmword [rbp - 0x38], xmm0
mov qword [rsp + 0x28], rax
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x60
movdqa xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], edi
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], ebx
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x78], rbx
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov dword [rbp - 0x68], ebx
mov dword [rbp + 0x80], ebx
call qword [sym.imp.KERNEL32.dll_TransactNamedPipe]
test eax, eax
je 0x14018b038
cmp dword [rsp + 0x40], 2
jne 0x14018b038
cmp dword [rsp + 0x44], ebx
je 0x14018b038
cmp qword [rsp + 0x78], rbx
je 0x14018b038
cmp qword [rbp - 0x80], rbx
je 0x14018b038
cmp qword [rbp - 0x78], rbx
je 0x14018b038
xor eax, eax
mov qword [rbp + 4], rbx
xorps xmm0, xmm0
mov qword [rbp + 0x20], rax
lea r9, [rbp + 0x80]
movdqa xmmword [rbp + 0x10], xmm0
lea r8d, [rbx + 0x60]
mov qword [rbp + 0x28], rax
lea rdx, [rbp]
mov qword [rbp + 0x30], rax
mov rcx, r15
movdqa xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x50], rbx
mov dword [rbp + 0x58], ebx
mov dword [rbp], 3
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14018b038
mov rax, qword [rsp + 0x78]
mov qword [rsi + 0x40], rax
mov rax, qword [rbp - 0x80]
mov qword [rsi + 0x48], rax
mov rax, qword [rbp - 0x78]
mov qword [rsi + 0x50], rax
mov eax, dword [rsp + 0x44]
mov dword [rsi + 0x58], eax
mov al, 1
jmp 0x14018b03a
xor al, al
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1401d5dc4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1401d5a8c
Function at 0x1401e0758
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 0x1401e0380
call fcn.140199e20
mov dword [rax], 0x16
call fcn.140199c6c
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 0x1401e0368
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1401e0368
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1401e03b2
lock or dword [rax + 0x14], 0x10
jmp 0x1401e0368
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1401e03cf
mov rcx, qword [rbp + 0x10]
call fcn.1401e27bc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401dcdb4
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401ddda4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1401e0426
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 0x1401e0368
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1401e0492
mov rcx, qword [rbp + 0x10]
call fcn.1401dcdb4
cmp eax, 0xffffffff
je 0x1401e0479
mov rcx, qword [rbp + 0x10]
call fcn.1401dcdb4
cmp eax, 0xfffffffe
je 0x1401e0479
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1401dcdb4
movsxd rdi, eax
lea rsi, [0x1402c9840]
mov rcx, rbx
sar rdi, 6
call fcn.1401dcdb4
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1401e0480
lea rax, [0x1402c5510]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1401e0492
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1401e04c8
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1401e04c4
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1401e04c4
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 0x1401e036b
jmp 0x1401e0338
Function at 0x1400110cd
Capabilities:
Write file on windows

Disassembly:
jmp 0x1400196e0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14003005f]
call fcn.1400117a3
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x140019737
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x140019843
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x1400197dc
cmp qword [rbp + 0x28], 0
jle 0x1400197dc
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001977c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.140011730
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x140019832
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x140019832
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x140011442
Capabilities:
Terminate process

Disassembly:
jmp 0x14001c1d0
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 0x140011555
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001cd00
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001cd20
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001cd33
xor al, al
jmp 0x14001cda1
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 0x14001cd5d
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001cd71
xor al, al
jmp 0x14001cda1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001cd83
xor al, al
jmp 0x14001cda1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001cd9f
xor al, al
jmp 0x14001cda1
mov al, 1
add rsp, 0x38
ret
Function at 0x14001178a
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016220
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140029040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003005f]
call fcn.1400117a3
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x140016286
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001628d
mov al, 1
jmp 0x1400163dd
call fcn.14001122b
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.14001122b
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.140011613
movzx eax, al
test eax, eax
je 0x1400162de
xor al, al
jmp 0x1400163dd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x140016343
cmp dword [rbp + 0x154], 1
je 0x14001634e
cmp dword [rbp + 0x154], 3
je 0x1400163cc
jmp 0x1400163db
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001639e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001639e
xor al, al
jmp 0x1400163dd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400163b9
mov dword [rbp + 0x154], 1
jmp 0x1400163c3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x1400163dd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x1400163dd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1400245f0]
call fcn.140011663
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.14001139d
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x1400111f4
Capabilities:
Hide graphical window

Disassembly:
jmp 0x1400151a0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x1d0
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x2c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1f8]
mov rax, qword [0x14002a028]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003011f]
call fcn.14001173f
lea rax, [rbp + 0x118]
mov rdi, rax
xor eax, eax
mov ecx, 0x48
rep stosb byte [rdi], al
mov rax, qword [rbp + 0x190]
lea rcx, [rbp + 0x118]
lea rdi, [rax + 8]
mov rsi, rcx
mov ecx, 0x48
rep movsb byte [rdi], byte [rsi]
xor ecx, ecx
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, qword [rbp + 0x190]
mov qword [rcx + 0x38], rax
mov edx, 0x7f00
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.USER32.dll_LoadCursorA]
mov rcx, qword [rbp + 0x190]
mov qword [rcx + 0x30], rax
mov edx, 0x7f00
mov rcx, qword [rbp + 0x198]
call qword [sym.imp.USER32.dll_LoadIconA]
mov rcx, qword [rbp + 0x190]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x190]
mov rcx, qword [rbp + 0x198]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x190]
lea rcx, [0x14001141f]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x190]
mov qword [rax + 0x40], 0
mov rax, qword [rbp + 0x190]
lea rcx, str.peter
mov qword [rax + 0x48], rcx
mov rax, qword [rbp + 0x190]
mov dword [rax + 8], 3
mov rax, qword [rbp + 0x190]
add rax, 8
mov rcx, rax
call qword [sym.imp.USER32.dll_RegisterClassA]
mov rax, qword [rbp + 0x1a0]
mov eax, dword [rax + 0xc]
cdq
sub eax, edx
sar eax, 1
sub eax, 0x1c2
mov dword [rbp + 0x164], eax
mov rcx, qword [rbp + 0x1a0]
mov eax, dword [rcx + 8]
cdq
sub eax, edx
sar eax, 1
sub eax, 0xe1
mov qword [rsp + 0x58], 0
mov rcx, qword [rbp + 0x198]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x384
mov dword [rsp + 0x30], 0x1c2
mov ecx, dword [rbp + 0x164]
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
mov r9d, 0xcf0000
lea r8, str.the_window
lea rdx, str.peter
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExA]
mov rcx, qword [rbp + 0x190]
mov qword [rcx], rax
mov rax, qword [rbp + 0x190]
mov dword [rax + 0x50], 0x1c2
mov rax, qword [rbp + 0x190]
mov dword [rax + 0x54], 0x384
mov edx, 1
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax]
call qword [sym.imp.USER32.dll_ShowWindow]
xor r9d, r9d
xor r8d, r8d
mov rax, qword [rbp + 0x190]
mov rdx, qword [rax]
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x1400153d5
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 8]
call qword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x1400153a1
mov rax, qword [rbp + 0x190]
mov rdi, rax
lea rcx, [rbp - 0x60]
lea rdx, [0x140025520]
call fcn.14001161d
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.140011384
lea rsp, [rbp + 0x170]
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001140b
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d8f0
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 0x140011528
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001c7b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001c7d0
xor al, al
jmp 0x14001c851
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001c7e3
xor al, al
jmp 0x14001c851
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 0x14001c80d
xor al, al
jmp 0x14001c851
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001c821
xor al, al
jmp 0x14001c851
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001c833
xor al, al
jmp 0x14001c851
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001c84f
xor al, al
jmp 0x14001c851
mov al, 1
add rsp, 0x38
ret
Function at 0x141d22058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141d221df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x141d22089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d2206f
add dl, dl
jne 0x141d22096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d220f6
xor eax, eax
add dl, dl
jne 0x141d220a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141d221ad
add dl, dl
jne 0x141d220b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d220c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d220d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d220dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141d220ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141d2207e
mov eax, 1
add dl, dl
jne 0x141d22106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141d22113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d220fb
sub eax, ebx
mov ebx, 1
jne 0x141d2214c
mov ecx, 1
add dl, dl
jne 0x141d2212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d2213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d22123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d2207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141d22168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141d22175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141d2215d
cmp eax, 0x7d00
jae 0x141d2219b
cmp eax, 0x500
jb 0x141d22196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d2207e
cmp eax, 0x7f
ja 0x141d2219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141d2207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141d221d2
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 0x141d2207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20