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

Disassembly:
test r9, r9
je 0x14004f122
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rbx, r9
mov r15d, 4
mov rdi, r8
mov rsi, rdx
mov r14, rcx
cmp rbx, r15
jb 0x14004f0ed
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r15
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x68]
lea rdx, [rsp + 0x24]
xor eax, dword [rsp + 0x20]
mov r8, r15
mov rcx, r14
mov dword [rsp + 0x24], eax
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
add rsi, r15
add rdi, r15
sub rbp, 1
jne 0x14004f0a2
test rbx, rbx
je 0x14004f10a
sub rsi, rdi
sub r14, rdi
mov al, byte [rsi + rdi]
xor al, byte [rdi]
mov byte [r14 + rdi], al
inc rdi
sub rbx, 1
jne 0x14004f0f8
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret

Function at 0x14004f124
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14004f1d1
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, r8
mov r14d, 4
mov rsi, rdx
mov rdi, rcx
cmp rbx, r14
jb 0x14004f1a9
mov rbp, rbx
shr rbp, 2
imul rax, rbp, 0xfffffffffffffffc
add rbx, rax
mov r8, r14
lea rcx, [rsp + 0x68]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8, r14
lea rcx, [rsp + 0x60]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x60]
lea rdx, [rsp + 0x20]
xor eax, dword [rsp + 0x68]
mov r8, r14
mov rcx, rdi
mov dword [rsp + 0x20], eax
call sub.VCRUNTIME140.dll_memcpy
add rdi, r14
add rsi, r14
sub rbp, 1
jne 0x14004f161
test rbx, rbx
je 0x14004f1bf
sub rsi, rdi
mov al, byte [rsi + rdi]
xor byte [rdi], al
inc rdi
sub rbx, 1
jne 0x14004f1b1
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400550f4
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
mov r9d, 4
shl edx, 2
mov r8, rcx
movdqu xmm0, xmmword [rcx + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rcx + rdx*4], xmm1
add edx, 0xfffffffc
cmp edx, r9d
jbe 0x140055143
aesimc xmm0, xmmword [r8 + rdx*4]
mov ecx, r9d
add r9d, 4
aesimc xmm1, xmmword [r8 + rcx*4]
movdqu xmmword [r8 + rcx*4], xmm0
movdqu xmmword [r8 + rdx*4], xmm1
add edx, 0xfffffffc
cmp r9d, edx
jb 0x14005511a
mov eax, r9d
aesimc xmm0, xmmword [r8 + rax*4]
movdqu xmmword [r8 + rax*4], xmm0
ret

Function at 0x14005668c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400566d6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400566d6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400566d6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400566d6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400566d6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400566d8
xor al, al
add rsp, 0x28
ret
Function at 0x10000f7e0
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x40]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rsi
mov ax, word [0x1000382c0]
cmp ax, 0xcb
je 0x10000f924
cmp ax, 0xcc
je 0x10000f924
mov rax, qword [0x10004c260]
test rax, rax
je 0x10000f829
mov ecx, dword [0x10004c050]
call rax
mov rbx, rax
jmp 0x10000f830
lea rbx, [0x10004c058]
cmp word [0x10004c040], 0
jle 0x10000f858
lea rcx, [0x10004c010]
call fcn.10000fb20
mov rcx, rbx
call fcn.10000f200
mov rcx, rbx
call fcn.10000f2b0
nop
mov rsi, qword [rbx]
jmp 0x10000f881
mov rdi, qword [rsi + 8]
mov rax, qword [rsi]
and rax, 1
jne 0x10000f87a
mov rdx, rsi
mov rcx, rbx
call fcn.10000e350
jmp 0x10000f87e
and qword [rsi], 0xfffffffffffffffe
mov rsi, rdi
test rsi, rsi
jne 0x10000f860
mov qword [rbx], 0
mov dword [rbx + 0x90], 0
cmp word [0x10004c040], 0
jle 0x10000f924
lea rdx, [0x10004bf20]
mov rcx, rbx
call fcn.10000e500
mov rsi, rax
test rax, rax
je 0x10000f8f0
mov rax, qword [0x10004bfc0]
mov qword [rsi + 0x18], rax
cmp qword [0x10004bfc0], 0
je 0x10000f8e0
mov rax, qword [0x10004bfc0]
mov qword [rax + 0x10], rsi
nop dword [rax]
mov rax, qword [rbx + 0xa0]
mov qword [0x10004bfc0], rax
nop
sub word [0x10004c040], 1
cmp word [0x10004c040], 0
sete bl
lea rcx, [0x10004c010]
call fcn.10000fb40
test bl, bl
je 0x10000f924
lea rcx, [0x10004c010]
call fcn.10000fb00
nop dword [rax]
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret
Function at 0x100013760
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x160]
mov qword [rbp - 0x138], rbx
mov qword [rbp - 0x130], rdi
mov qword [rbp - 0x128], rsi
mov qword [rbp - 0x120], r12
mov qword [rbp - 0x118], r13
mov qword [rbp - 0x110], r14
xor esi, esi
mov qword [0x10004bc30], 0
mov dword [rbp - 4], 0
lea rdx, [rbp - 0x108]
mov r8d, 0x104
xor ecx, ecx
call sub.kernel32.dll_GetModuleFileNameA
mov ebx, eax
and eax, eax
mov byte [rbp + rax - 0x108], 0
mov r8d, ebx
xor edx, edx
mov rcx, rbp
call fcn.100013980
movsxd rax, ebx
lea r8, [rax + 1]
mov rax, qword [0x10004bc30]
mov rdx, qword [rax]
lea rcx, [rbp - 0x108]
call fcn.100004730
call sub.kernel32.dll_GetCommandLineA
mov qword [0x100038330], rax
mov r14, rax
jmp 0x10001390f
add r14, 1
movzx eax, byte [r14]
sub eax, 1
cmp eax, 0x20
jb 0x100013810
cmp byte [r14], 0
je 0x100013919
nop
xor dil, dil
mov r12, r14
xor ebx, ebx
jmp 0x100013878
mov al, byte [r14]
cmp al, 1
jb 0x100013870
sub al, 0x20
jbe 0x10001384c
sub al, 2
je 0x100013858
jmp 0x100013870
test dil, dil
je 0x10001387e
add ebx, 1
jmp 0x100013874
cmp byte [r14 + 1], 0x22
je 0x100013868
test dil, dil
sete dil
jmp 0x100013874
add r14, 1
jmp 0x100013874
add ebx, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x100013838
test esi, esi
je 0x10001390c
mov r8d, ebx
mov edx, esi
mov rcx, rbp
call fcn.100013980
xor dil, dil
mov r14, r12
mov rdx, qword [0x10004bc30]
movsxd rax, esi
mov r13, qword [rdx + rax*8]
jmp 0x100013900
mov al, byte [r14]
cmp al, 1
jb 0x1000138f0
sub al, 0x20
jbe 0x1000138c4
sub al, 2
je 0x1000138d8
jmp 0x1000138f0
test dil, dil
je 0x100013906
mov al, byte [r14]
mov byte [r13], al
add r13, 1
jmp 0x1000138fc
cmp byte [r14 + 1], 0x22
je 0x1000138e8
test dil, dil
sete dil
jmp 0x1000138fc
add r14, 1
jmp 0x1000138fc
mov al, byte [r14]
mov byte [r13], al
add r13, 1
nop
add r14, 1
cmp byte [r14], 0
jne 0x1000138b0
mov byte [r13], 0
nop
add esi, 1
cmp byte [r14], 0
jne 0x100013814
mov dword [0x10004bc20], esi
movsxd rax, esi
lea rdx, [rax + 1]
shl rdx, 3
lea rcx, [0x10004bc30]
call fcn.10000f580
mov rax, qword [0x10004bc30]
movsxd rsi, esi
mov qword [rax + rsi*8], 0
mov rbx, qword [rbp - 0x138]
mov rdi, qword [rbp - 0x130]
mov rsi, qword [rbp - 0x128]
mov r12, qword [rbp - 0x120]
mov r13, qword [rbp - 0x118]
mov r14, qword [rbp - 0x110]
lea rsp, [rbp]
pop rbp
ret

Function at 0x1000176a0
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
mov dx, 0xffff
add dx, 1
movsx eax, dx
mov ecx, eax
xor r8w, r8w
nop
add r8w, 1
mov eax, ecx
and eax, 1
je 0x1000176d2
mov eax, ecx
shr eax, 1
xor eax, 0xedb88320
mov ecx, eax
jmp 0x1000176d4
shr ecx, 1
cmp r8w, 8
jl 0x1000176b8
movzx eax, dx
lea r9, [0x100155050]
mov dword [r9 + rax*4], ecx
cmp dx, 0xff
jl 0x1000176a8
lea rsp, [rbp]
pop rbp
ret
Function at 0x100017700
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x40]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rsi
mov ebx, ecx
mov rsi, rdx
mov edi, r8d
cmp dword [0x100155054], 0
jne 0x10001772c
call fcn.1000176a0
nop
mov eax, ebx
not eax
cmp edi, 1
jl 0x100017764
xor edx, edx
nop
add edx, 1
mov cl, al
xor cl, byte [rsi]
and ecx, 0xff
mov r8d, eax
shr r8d, 8
lea r9, [0x100155050]
xor r8d, dword [r9 + rcx*4]
mov eax, r8d
add rsi, 1
cmp edi, edx
jg 0x100017738
nop
not eax
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret

Function at 0x10002fba0
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x50]
mov qword [rbp - 0x30], rbx
mov qword [rbp - 0x28], rdi
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], r12
mov qword [rbp - 0x10], r13
mov rsi, rcx
mov edi, edx
mov r12d, r8d
mov r13, r9
mov qword [rbp - 8], 0
nop
mov edx, r12d
mov ecx, edi
xor r9d, r9d
xor r8, r8
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
test ebx, ebx
jle 0x10002fc21
movsxd rdx, ebx
sub rdx, 1
lea rcx, [rbp - 8]
call fcn.10000bc20
cmp ebx, 1
jle 0x10002fc10
mov r8, qword [rbp - 8]
mov r9d, ebx
mov edx, r12d
mov ecx, edi
call sub.kernel32.dll_GetLocaleInfoW
mov ebx, eax
nop
mov rcx, rsi
mov rdx, qword [rbp - 8]
xor r8d, r8d
call fcn.10000b810
jmp 0x10002fc2c
mov rcx, rsi
mov rdx, r13
call fcn.100009920
nop
mov rcx, rbp
call fcn.10002fb80
mov rbx, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
mov r12, qword [rbp - 0x18]
mov r13, qword [rbp - 0x10]
lea rsp, [rbp]
pop rbp
ret

Function at 0x10002fe10
Capabilities:
Get geographical location

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x60]
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rsi
mov qword [rbp - 0x18], 0
nop
xor ebx, ebx
nop dword [rax]
add ebx, 1
mov eax, ebx
lea rdx, [0x100157ed0]
lea rcx, [rdx + rax*8 - 8]
xor edx, edx
call fcn.100009920
mov eax, ebx
lea rdx, [0x100157f10]
mov dword [rdx + rax*4 - 4], 0xffffffff
cmp ebx, 7
jl 0x10002fe30
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
lea r8, [rbp - 0xc]
mov ecx, esi
mov r9d, 0xb
mov edx, 0x100b
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x10002fee4
nop
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0xc]
xor r9d, r9d
mov r8d, 0xa
lea rcx, [rbp - 0x18]
call fcn.10000a4e0
mov rcx, qword [rbp - 0x18]
mov edx, 1
call fcn.10002bd70
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x10002fee4
lea rcx, [0x10002fcb0]
mov r8d, ebx
mov edx, esi
mov r9d, 4
call sub.kernel32.dll_EnumCalendarInfoA
lea rcx, [0x10002fd60]
mov r8d, ebx
mov edx, esi
mov r9d, 3
call sub.kernel32.dll_EnumCalendarInfoA
nop dword [rax]
nop
mov rcx, rbp
call fcn.10002fdf0
mov rbx, qword [rbp - 0x28]
mov rsi, qword [rbp - 0x20]
lea rsp, [rbp]
pop rbp
ret
Function at 0x1000305a0
Capabilities:
Check os version

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0xc0]
mov qword [0x100157f50], 0
mov dword [rbp - 0x94], 0x94
lea rcx, [rbp - 0x94]
call sub.kernel32.dll_GetVersionExA
mov eax, dword [rbp - 0x84]
mov dword [0x100157d90], eax
mov eax, dword [rbp - 0x90]
mov dword [0x100157da0], eax
mov eax, dword [rbp - 0x8c]
mov dword [0x100157db0], eax
mov eax, dword [rbp - 0x88]
mov dword [0x100157dc0], eax
lea rdx, [0x100157dd1]
lea rcx, [rbp - 0x80]
mov r8d, pe_nt_image_headers64
call fcn.100004730
lea rcx, [rbp - 0x80]
call fcn.100005550
mov byte [0x100157dd0], al
lea rcx, str.kernel32
call sub.kernel32.dll_GetModuleHandleA
mov qword [0x100157f60], rax
test rax, rax
je 0x100030654
mov rcx, qword [0x100157f60]
lea rdx, str.GetDiskFreeSpaceExA
call sub.kernel32.dll_GetProcAddress
mov qword [0x100157f50], rax
cmp dword [0x100157da0], 6
jae 0x100030668
mov dword [0x100039220], 0
nop
cmp dword [0x100157da0], 6
jb 0x100030684
cmp dword [0x100157db0], 1
jb 0x100030684
mov dword [0x100039230], 2
nop
lea rsp, [rbp]
pop rbp
ret
Function at 0x100035010
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
lea rsp, [rsp - 0x80]
mov qword [rbp - 0x18], rbx
mov qword [rbp - 0x10], rdi
mov qword [rbp - 8], rsi
xor ebx, ebx
cmp byte [0x100039d30], 0
je 0x1000351aa
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0
mov rax, qword [0x10004bcd0]
mov qword [rsp + 0x48], rax
movsx edx, word [0x100158150]
lea rax, [0x100039d40]
add edx, dword [rax + 4]
add edx, dword [rax + 0xc]
lea esi, [edx + 1]
mov ecx, 0x21
call sub.user32.dll_GetSystemMetrics
shl eax, 1
add esi, eax
mov ecx, 4
call sub.user32.dll_GetSystemMetrics
add eax, esi
mov dword [rsp + 0x30], eax
movsx edx, word [0x100158140]
lea rax, [0x100039d40]
add edx, dword [rax]
add edx, dword [rax + 8]
lea esi, [edx + 1]
mov ecx, 0x20
call sub.user32.dll_GetSystemMetrics
shl eax, 1
add eax, esi
mov dword [rsp + 0x28], eax
mov r8d, dword [0x10015d9d0]
or r8, 0x2cf0000
mov rdx, qword [str.Graph_window_application]
mov r9d, 0x80000000
lea rcx, str.FPCGraphWindowMain
call fcn.100017c10
mov qword [0x100158010], rax
test rax, rax
je 0x100035268
mov rcx, qword [0x100158010]
mov edx, 5
call sub.user32.dll_ShowWindow
mov rcx, qword [0x100158010]
call sub.user32.dll_UpdateWindow
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov rax, qword [0x10004bcd0]
mov qword [rsp + 0x48], rax
mov rax, qword [0x100158010]
mov qword [rsp + 0x38], rax
mov eax, dword [0x100039d44]
mov dword [rsp + 0x20], eax
movsx eax, word [0x100158150]
add eax, 1
mov dword [rsp + 0x30], eax
movsx eax, word [0x100158140]
add eax, 1
mov dword [rsp + 0x28], eax
mov r9d, dword [0x100039d40]
mov r8d, 0x40000000
xor edx, edx
lea rcx, str.FPCGraphWindowChild
call fcn.100017c10
mov rsi, rax
test rax, rax
je 0x100035268
mov rcx, rsi
mov edx, 5
call sub.user32.dll_ShowWindow
mov rcx, rsi
call sub.user32.dll_UpdateWindow
mov rbx, rsi
jmp 0x100035268
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x20], 0
mov rax, qword [0x10004bcd0]
mov qword [rsp + 0x48], rax
movsx eax, word [0x100158150]
lea edi, [eax + 1]
mov ecx, 0x21
call sub.user32.dll_GetSystemMetrics
shl eax, 1
add edi, eax
mov ecx, 4
call sub.user32.dll_GetSystemMetrics
add eax, edi
mov dword [rsp + 0x30], eax
movsx eax, word [0x100158140]
lea edi, [eax + 1]
mov ecx, 0x20
call sub.user32.dll_GetSystemMetrics
shl eax, 1
add eax, edi
mov dword [rsp + 0x28], eax
mov r8d, dword [0x10015d9d0]
or r8d, 0xcf0000
mov rdx, qword [str.Graph_window_application]
mov r9d, 0x80000000
lea rcx, str.FPCGraphWindow
call fcn.100017c10
mov rsi, rax
test rax, rax
je 0x100035268
mov rcx, rsi
mov edx, 5
call sub.user32.dll_ShowWindow
mov rcx, rsi
call sub.user32.dll_UpdateWindow
mov rbx, rsi
nop
mov rax, rbx
mov rbx, qword [rbp - 0x18]
mov rdi, qword [rbp - 0x10]
mov rsi, qword [rbp - 8]
lea rsp, [rbp]
pop rbp
ret
Function at 0x45d620
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x45d701
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x004656a0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.0046b240
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
nop
ret
call fcn.0046b3a0
jmp fcn.0045d620

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x140014008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x140014008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x140014008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140014008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x141209058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1412091df
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 0x141209089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14120906f
add dl, dl
jne 0x141209096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412090f6
xor eax, eax
add dl, dl
jne 0x1412090a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1412091ad
add dl, dl
jne 0x1412090b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412090c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412090d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1412090dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1412090ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14120907e
mov eax, 1
add dl, dl
jne 0x141209106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141209113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1412090fb
sub eax, ebx
mov ebx, 1
jne 0x14120914c
mov ecx, 1
add dl, dl
jne 0x14120912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14120913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141209123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14120907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141209168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141209175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14120915d
cmp eax, 0x7d00
jae 0x14120919b
cmp eax, 0x500
jb 0x141209196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14120907e
cmp eax, 0x7f
ja 0x14120919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14120907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1412091d2
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 0x14120907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001aac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001af6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001af6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001af6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001af6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001af6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001af8
xor al, al
add rsp, 0x28
ret
Function at 0x1400037f0
Capabilities:
Encode data using xor

Disassembly:
push rsi
sub rsp, 0x80
xor eax, eax
mov dword [rsp + 0x6c], 0x6669cab2
mov r9d, dword [rsp + 0x6c]
xor r9d, 0x6669cab2
mov r10d, r8d
xor r10d, 0xffffffff
mov dword [rsp + 0x7c], r10d
cmp r8d, r9d
mov qword [rsp + 0x60], rdx
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x50], rcx
mov dword [rsp + 0x4c], eax
je 0x1400038a4
mov eax, dword [rsp + 0x4c]
lea rcx, [0x1400252c0]
mov edx, eax
and edx, 0xf
mov edx, edx
mov r8d, edx
mov edx, dword [rsp + 0x6c]
xor edx, 0x6669cab3
mov r9, qword [rsp + 0x50]
mov qword [rsp + 0x40], rcx
mov rcx, r9
mov r10, qword [rsp + 0x60]
mov dword [rsp + 0x3c], edx
mov rdx, r10
mov qword [rsp + 0x30], r8
mov r8d, eax
mov r11, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x30]
movzx r9d, byte [r11 + rsi]
mov dword [rsp + 0x2c], eax
call sym.MFC42u.dll_Ordinal_771
mov eax, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x3c]
add eax, r8d
mov r8d, dword [rsp + 0x5c]
cmp eax, r8d
mov dword [rsp + 0x4c], eax
jne 0x140003832
add rsp, 0x80
pop rsi
ret

Function at 0x140003980
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x48
mov eax, 0x173a69d7
mov edx, 0x4223d576
mov dword [rsp + 0x3c], 0x25b1be8b
sub edx, dword [rsp + 0x3c]
mov dword [rsp + 0x38], edx
mov edx, dword [rsp + 0x38]
add edx, 0x496e9615
mov r8d, dword [rcx + 0x3c]
mov qword [rsp + 0x40], 0x3a880ee1
movsxd r9, r8d
mov r10, rcx
add r10, r9
mov r8d, dword [rcx + r9]
cmp eax, edx
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x2c], r8d
jae 0x1400039f3
xor eax, eax
mov ecx, dword [rsp + 0x2c]
sub ecx, 0x4550
mov edx, eax
mov r8, qword [rsp + 0x30]
cmove rdx, r8
mov rax, rdx
mov dword [rsp + 0x28], ecx
add rsp, 0x48
ret
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x3a59ad19
call rax
xor ecx, ecx
mov eax, ecx
add rsp, 0x48
ret