joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18003c470
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
mov esi, 1
test edx, edx
je 0x18003c521
cmp edx, esi
jne 0x18003c62e
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
lea rdi, [0x18004dfb0]
mov r8d, 0x200
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x18003c4c0
test rax, rax
je 0x18003c4db
nop
cmp byte [rax + rdi], 0x5c
je 0x18003c50c
sub rax, rsi
jne 0x18003c4d0
xor edi, edi
lea r8, [0x18003c0d0]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
inc rax
cmp rax, 0x200
jae 0x18003c640
mov byte [rax + rdi], 0
jmp 0x18003c4db
xor edi, edi
mov ebx, edi
xor eax, eax
lock cmpxchg dword [0x18004de20], esi
je 0x18003c552
cmp rbx, 0x20
jae 0x18003c53b
xor ecx, ecx
jmp 0x18003c53d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18004de20], esi
jne 0x18003c531
cmp qword [0x18004de28], rdi
je 0x18003c628
xor ecx, ecx
call fcn.180038510
test eax, eax
jne 0x18003c628
mov rcx, qword [0x18004e4e0]
mov qword [0x18004e4e0], rdi
test rcx, rcx
je 0x18003c59a
mov rbx, qword [rcx]
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, rbx
test rbx, rbx
jne 0x18003c581
mov r8, qword [0x18004e4d0]
xor edx, edx
mov rcx, qword [0x18004de28]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x18004de28]
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov qword [0x18004de28], rdi
xor edx, edx
mov qword [0x18004e4d0], rdi
mov qword [0x18004e4d8], rdi
xchg dword [0x18004de20], edi
mov rax, qword [0x18004df28]
mov rcx, qword [rax + 0x40]
call fcn.180038960
test eax, eax
jne 0x18003c62e
mov rax, qword [0x18004df28]
xor edx, edx
mov rcx, qword [rax + 0x68]
call fcn.180038960
test eax, eax
jne 0x18003c62e
mov rax, qword [0x18004dfa8]
xor edx, edx
mov rcx, qword [rax + 0x60]
call fcn.180038960
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
xchg dword [0x18004de20], edi
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
call fcn.18003e364
int3
Function at 0x18003c9a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x18003c9c8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x18003c9ee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x18003c9f0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x18003ca49
test ecx, ecx
jle 0x18003ca29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x18003ca49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x18003ca49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x18003ca70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x18003caa1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x18003cabf
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x18003cadb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18003cadd
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18003cb19
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x18003cbae
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x18003cb54
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x18003cb8e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x18003cbae
cmp rbx, rax
ja 0x18003cb60
test rbx, rbx
je 0x18003cbae
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x18003d010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x18004d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x18003d03d
xor eax, eax
jmp 0x18003d1a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x18003d077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x18003d077
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x18003d1a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x18003d19c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18003d0ba
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x18003d0e5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003d1a1
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18003d154
sub eax, 1
je 0x18003d154
cmp eax, 2
jne 0x18003d19c
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x18003d1a1
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x18003d182
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x18003d19c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x18003d1a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.18003e160
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x18003d4a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18004d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x18003d573
cmp byte [rcx + 0x71], 0
je 0x18003d573
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x18003d56f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18003d534
sub eax, 1
je 0x18003d538
cmp eax, 2
jne 0x18003d56f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003e160
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x18003d566
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x18003d56f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x18003d51c
xor al, al
jmp 0x18003d51c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18003e160
add rsp, 0x60
pop rbx
ret
Function at 0x140004470
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xc8
mov rax, qword [0x14003a068]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 0x68], 0
je 0x1400044ad
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400044b4
mov al, 1
jmp 0x140004649
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x38], 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xd0]
call qword [rsp + 0x68]
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x48], 0xffffffff
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jne 0x140004508
mov dword [rsp + 0x3c], 1
jmp 0x140004510
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x30], al
movzx eax, byte [rsp + 0x30]
test eax, eax
je 0x140004529
xor al, al
jmp 0x140004649
mov qword [rsp + 0x78], 0x20
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xa8]
mov rcx, qword [rsp + 0xd0]
add rcx, 0x74
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x88]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call qword [rsp + 0x70]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400045ae
cmp dword [rsp + 0x34], 1
je 0x1400045ba
cmp dword [rsp + 0x34], 3
je 0x140004637
jmp 0x140004647
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jbe 0x14000460e
mov rax, qword [rsp + 0xd0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
lea rcx, [rsp + 0x88]
call fcn.140011288
cmp qword [rsp + 0x50], rax
je 0x14000460e
xor al, al
jmp 0x140004649
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140004628
mov dword [rsp + 0x40], 1
jmp 0x140004630
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
jmp 0x140004649
mov rax, qword [rsp + 0xd0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140004649
xor al, al
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140009e90
add rsp, 0xc8
ret
Function at 0x1400061b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
sub rsp, 0x1c0
mov rax, qword [0x14003a068]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x70], 0
lea r8, [rsp + 0x70]
lea rdx, [0x140003fd0]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov r8d, 0xff
mov edx, 0xfe
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x78], 0
lea r8, [rsp + 0x78]
lea rdx, [0x140003fd0]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
lea rdx, [0x140003fd0]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x20], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x60], rax
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
cmp eax, 1
je 0x1400063ac
lea rax, [rsp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x118
rep stosb byte [rdi], al
mov edx, 1
lea rcx, [rsp + 0x90]
call fcn.140001e60
nop
mov r9d, 0x40
mov r8d, 0x22
lea rdx, [0x1400283e8]
lea rcx, [rsp + 0x90]
call fcn.1400069c0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x20]
mov r8d, eax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.1400081e0
lea rcx, [rsp + 0x90]
call fcn.140005c10
mov r9d, 1
lea r8, str.C:UsersPublicwallpaper.png
xor edx, edx
mov ecx, 0x14
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
mov ecx, 0x7530
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
lea rax, [rsp + 0x148]
mov rcx, rax
call fcn.140003120
lea rax, [rsp + 0x148]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
lea rcx, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
lea rcx, vtable.std::ios_base.0
mov qword [rax], rcx
mov rcx, qword [rsp + 0x28]
call fcn.1400097bc
nop
jmp 0x1400062b9
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140009e90
add rsp, 0x1c0
pop rdi
ret
Function at 0x140008870
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x48
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400088aa
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call fcn.140008a00
jmp 0x1400089f0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
cmp qword [rax], 0
je 0x1400088d4
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
jmp 0x1400088dc
mov dword [rsp + 0x20], 0
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x70], 0
jle 0x140008999
cmp qword [rsp + 0x28], 0
jle 0x140008999
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 0x70], rax
jge 0x140008914
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x58]
mov ecx, dword [rsp + 0x28]
mov eax, dword [rax]
sub eax, ecx
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x58]
mov dword [rcx], eax
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x60]
mov rcx, qword [rcx + 0x40]
mov qword [rcx], rax
cmp qword [rsp + 0x70], 0
jle 0x1400089e0
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400089e0
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x70]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call fcn.140011288
mov rcx, qword [rsp + 0x70]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rsp, 0x48
pop rdi
pop rsi
ret

Function at 0x140015d04
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140015b30
Function at 0x14001e668
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.14016e000
add rsp, 0x28
jmp 0x14001e668
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14003ea80], rbx
je 0x14001e6b2
cmp rax, rbx
jne 0x14001e6c7
mov edi, 1
mov eax, dword [0x14003ea88]
cmp eax, 1
jne 0x14001e6d4
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x14001e741
mov ecx, COleDocument::AddItem
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001e69b
mov eax, dword [0x14003ea88]
test eax, eax
jne 0x14001e737
mov dword [0x14003ea88], 1
lea r14, [0x140022340]
lea rbx, [0x140022328]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x14001e729
test eax, eax
jne 0x14001e72d
cmp qword [rbx], 0
je 0x14001e71e
mov rax, qword [rbx]
mov rcx, qword [case.0x1400038d5.0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x14001e6ff
test eax, eax
je 0x14001e741
mov eax, 0xff
jmp 0x14001e894
mov dword [0x14003e4c8], 1
mov eax, dword [0x14003ea88]
cmp eax, 1
jne 0x14001e769
lea rdx, [0x140022320]
lea rcx, [0x1400222f8]
call sub.msvcrt.dll__initterm
mov dword [0x14003ea88], 2
test edi, edi
jne 0x14001e776
xor eax, eax
xchg qword [0x14003ea80], rax
cmp qword [0x14003eaa0], 0
je 0x14001e7aa
lea rcx, [0x14003eaa0]
call fcn.14001ee60
test eax, eax
je 0x14001e7aa
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14003eaa0]
mov r9, qword [case.0x1400038d5.0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
movzx ecx, byte [rbx]
cmp cl, 0x20
ja 0x14001e836
test cl, cl
je 0x14001e7cd
test edi, edi
jne 0x14001e836
dec cl
cmp cl, 0x1f
ja 0x14001e7e0
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x14001e7cd
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call sub.MFC42.dll_CStatusBar::AllocElements
mov dword [0x14003e4c4], eax
cmp dword [0x14003e4e8], 0
jne 0x14001e81f
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14003e4c8], 0
jne 0x14001e834
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14003e4c4]
jmp 0x14001e894
cmp cl, 0x22
jne 0x14001e848
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x14001e85a
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x14001e7bd
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x1800111c7
Capabilities:
Terminate process

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140040130]
mov dword [rax], 1
mov rax, qword [0x140040140]
mov dword [rax], 1
mov rax, qword [0x140040150]
mov dword [rax], 1
mov rax, qword [0x140040120]
mov dword [rax], 1
mov rax, qword [0x14003fcd0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014de
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x14000150a
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x140001530
cmp eax, 0x20b
je 0x140001557
jmp 0x140001586
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x140001543
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x140001572
mov eax, 0
jmp 0x14000158b
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x14000158b
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001e37
Capabilities:
Write file on windows

Disassembly:
push r13
push r12
sub rsp, 0x28
xor r8d, r8d
mov r13, rcx
mov r12, rdx
test rdx, rdx
je 0x140001e58
mov rcx, rdx
call sub.msvcrt.dll_strlen
mov r8, rax
mov rcx, r12
mov r9, r13
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rcx, r13
add rsp, 0x28
pop r12
pop r13
jmp fcn.140033cb0

Function at 0x140004c65
Capabilities:
Write file on windows

Disassembly:
push r12
sub rsp, 0x40
cmp qword [rcx + 0x10], 0
mov r12, rcx
jne 0x140004c79
mov qword [rcx + 0x10], rdx
lea rcx, [rsp + 0x28]
mov edx, 0x18
call fcn.1400020fd
mov rax, qword [rsp + 0x70]
mov rcx, qword [r12 + 0x20]
lea rdx, [0x140063820]
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rax
call fcn.1400053de
lea rcx, [r12 + 0x20]
mov rdx, rax
call fcn.14000370a
mov rax, qword [r12 + 0x20]
movups xmm0, xmmword [rsp + 0x28]
mov rdx, qword [rax]
lea rcx, [rdx + 1]
imul rdx, rdx, 0x18
mov qword [rax], rcx
mov rcx, r12
add rax, rdx
mov rdx, qword [rsp + 0x38]
movups xmmword [rax + 0x10], xmm0
mov qword [rax + 0x20], rdx
call fcn.1400045b6
nop

Function at 0x140004ceb
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
sub rsp, 0x38
mov edx, 0x30
lea r14, [0x140036318]
mov r13, rcx
lea rcx, [0x140056fc0]
call fcn.14000373b
mov rcx, r13
mov r12, rax
lea rax, [0x140056f80]
mov qword [r12], rax
mov r15, qword [r12 + 0x18]
mov qword [r12 + 0x10], r14
call fcn.14000394f
mov qword [r12 + 0x18], rax
test r15, r15
je 0x140004d44
mov rcx, r15
call fcn.140002045
lea rcx, [r12 + 8]
xor edx, edx
call fcn.140002064
lea r9, [0x140036320]
mov rdx, r14
mov rcx, r12
mov qword [rsp + 0x20], 0x8b
lea r8, str.raiseEIO
call fcn.140004c65
nop