joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400274f0]
mov dword [rax], 1
mov rax, qword [0x140027500]
mov dword [rax], 1
mov rax, qword [0x140027510]
mov dword [rax], 1
mov rax, qword [0x140027480]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
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 0x140001504
mov eax, 0
jmp 0x140001585
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 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140003080
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
movaps xmmword [rsp + 0x60], xmm6
lea rsi, [0x1400250ec]
lea rdi, [0x14003d0e0]
mov rcx, qword [0x14002e0a8]
movq xmm6, rdi
movq xmm0, rsi
punpcklqdq xmm6, xmm0
test rcx, rcx
je 0x1400030d7
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400030f8
mov rcx, qword [0x14002e0a8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003d0c0], 0
jne 0x140003110
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, qword [0x14002e0a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x1400030ca
mov edx, 0x414
lea r12, [rsp + 0x20]
mov qword [rsp + 0x20], 0
mov rbp, qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [rsp + 0x28], 3
mov rcx, r12
mov ebx, 0x14
mov word [rsp + 0x40], dx
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rsi
movaps xmmword [rsp + 0x30], xmm6
call rbp
mov r13, qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov r14, qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400031c4
test al, 0x10
je 0x1400030e0
mov ecx, 0x64
call r14
mov eax, 0x414
mov qword [rsp + 0x50], rsi
mov rcx, r12
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 3
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x48], 0
movaps xmmword [rsp + 0x30], xmm6
call rbp
sub ebx, 1
je 0x1400030e0
mov rcx, rdi
call r13
cmp eax, 0xffffffff
jne 0x140003170
jmp 0x1400030e0
Function at 0x14000f280
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
movabs rdx, 0x27d4eb2f165667c5
mov r10, rcx
lea rcx, [rcx + 0x28]
mov r9d, dword [r10 + 0x48]
mov r8, qword [r10 + 0x18]
mov r11, qword [r10]
add r9, rcx
add rdx, r8
cmp r11, 0x1f
jbe 0x14000f35d
mov rbx, qword [r10 + 0x10]
mov rdx, qword [r10 + 8]
movabs rdi, 0xc2b2ae3d27d4eb4f
mov rax, qword [r10 + 0x20]
mov rsi, rbx
imul rbx, rdi
mov rbp, rdx
rol rdx, 1
rol rsi, 7
imul rbp, rdi
add rdx, rsi
mov rsi, r8
rol rsi, 0xc
imul r8, rdi
add rdx, rsi
mov rsi, rax
rol rbp, 0x1f
rol rsi, 0x12
imul rax, rdi
add rdx, rsi
rol r8, 0x1f
movabs rsi, 0x9e3779b185ebca87
imul rbp, rsi
imul r8, rsi
xor rdx, rbp
mov rbp, rbx
movabs rbx, 0x85ebca77c2b2ae63
imul rdx, rsi
rol rbp, 0x1f
imul rbp, rsi
add rdx, rbx
xor rdx, rbp
imul rdx, rsi
add rdx, rbx
xor r8, rdx
mov rdx, rax
imul r8, rsi
rol rdx, 0x1f
imul rdx, rsi
lea rax, [r8 + rbx]
xor rdx, rax
imul rdx, rsi
add rdx, rbx
lea rsi, [r10 + 0x30]
add rdx, r11
cmp r9, rsi
jb 0x14000f3c9
movabs rbx, 0xc2b2ae3d27d4eb4f
mov rcx, rsi
movabs r8, 0x9e3779b185ebca87
movabs r11, 0x85ebca77c2b2ae63
nop word [rax + rax]
mov rax, qword [rcx - 8]
add rcx, 8
imul rax, rbx
rol rax, 0x1f
imul rax, r8
xor rax, rdx
rol rax, 0x1b
imul rax, r8
lea rdx, [rax + r11]
cmp r9, rcx
jae 0x14000f390
mov rax, r9
sub rax, r10
lea rcx, [rax - 0x30]
and rcx, 0xfffffffffffffff8
add rcx, rsi
lea r8, [rcx + 4]
cmp r9, r8
jb 0x14000f407
mov eax, dword [rcx]
movabs rcx, 0x9e3779b185ebca87
imul rax, rcx
mov rcx, r8
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
rol rax, 0x17
imul rax, rdx
movabs rdx, 0x165667b19e3779f9
add rdx, rax
cmp r9, rcx
jbe 0x14000f43e
movabs r10, 0x27d4eb2f165667c5
movabs r8, 0x9e3779b185ebca87
movzx eax, byte [rcx]
add rcx, 1
imul rax, r10
xor rax, rdx
rol rax, 0xb
imul rax, r8
mov rdx, rax
cmp r9, rcx
jne 0x14000f420
mov rax, rdx
shr rax, 0x21
xor rax, rdx
movabs rdx, 0xc2b2ae3d27d4eb4f
imul rax, rdx
mov rdx, rax
shr rdx, 0x1d
xor rax, rdx
movabs rdx, 0x165667b19e3779f9
imul rax, rdx
mov rdx, rax
shr rdx, 0x20
xor rax, rdx
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x14001aaa0
Capabilities:
Create directory

Disassembly:
push r14
mov eax, 0x2020
push r13
push r12
push rsi
push rbx
call fcn.14001ced0
sub rsp, rax
mov eax, dword [0x14002e0a0]
mov r12, rcx
test eax, eax
je 0x14001ab70
xor ebx, ebx
lea rsi, [0x14003b0c0]
test eax, eax
jg 0x14001aae4
jmp 0x14001ab10
add rbx, 1
cmp dword [0x14002e0a0], ebx
jle 0x14001ab10
mov rdx, qword [rsi + rbx*8]
mov rcx, r12
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x14001aad8
mov eax, 1
add rsp, 0x2020
pop rbx
pop rsi
pop r12
pop r13
pop r14
ret
mov rcx, r12
call sub.msvcrt.dll_wcslen
cmp rax, 2
jne 0x14001ab27
cmp word [r12 + 2], 0x3a
je 0x14001aaf4
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x14001abc0
movsxd rbx, dword [0x14002e0a0]
cmp ebx, 0x3ff
jg 0x14001aaf4
mov rcx, r12
call sub.msvcrt.dll__wcsdup
add dword [0x14002e0a0], 1
mov r8, rax
lea rax, [0x14003b0c0]
mov qword [rax + rbx*8], r8
jmp 0x14001aaf4
lea r13, [rsp + 0x20]
lea r14, str._HOME_
mov r8d, 0x1000
mov rdx, r14
mov rcx, r13
call fcn.14001a310
test al, al
je 0x14001abd8
movsxd rbx, dword [0x14002e0a0]
mov rcx, r13
lea rsi, [0x14003b0c0]
call sub.msvcrt.dll__wcsdup
mov qword [rsi + rbx*8], rax
mov eax, dword [0x14002e0a0]
add eax, 1
mov dword [0x14002e0a0], eax
jmp 0x14001aac6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001ab3a
xor eax, eax
jmp 0x14001aaf9
mov rcx, r14
call fcn.140002140
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x14001bbd0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.140022ad0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140022ad0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x14001c882
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14003f208]
test eax, eax
je 0x14001c91a
lea rax, [0x14003f1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14003f210]
mov qword [rbp - 8], rax
jmp 0x14001c8fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14001c8f2
cmp qword [rbp - 0x10], 0
je 0x14001c8f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14001c8b8
lea rax, [0x14003f1e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14001c91b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14001ca20
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x14001ca48
mov eax, 0
jmp 0x14001ca96
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 0x14001ca71
mov eax, 0
jmp 0x14001ca96
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x14001ca91
mov eax, 0
jmp 0x14001ca96
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14001ca9c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001cb1a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x14001cb11
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x14001cb11
mov rax, qword [rbp - 8]
jmp 0x14001cb2f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x14001cae4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001bef
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14000b058]
jne 0x14000188a
rol rcx, 0x10
test cx, 0xffff
jne 0x140001886
repz ret
ror rcx, 0x10
jmp 0x140001b48
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14000c1a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14000c298]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x140001bcd
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14000c1a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x140001bef
mov rax, qword [rsp + 0x88]
mov qword [0x14000c298], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14000c238], rax
mov rax, qword [0x14000c298]
mov qword [0x14000c110], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14000c220], rax
mov dword [0x14000c100], 0xc0000409
mov dword [0x14000c104], 1
mov rax, qword [0x14000b058]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14000b060]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14000c198], eax
mov ecx, 1
call fcn.140003858
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400082b8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14000c198], 0
jne 0x140001c76
mov ecx, 1
call fcn.140003858
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000246c
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140003f48
nop
cmp dword [0x14000c6c8], 1
je 0x140002418
mov dword [0x14000c6c4], 1
mov byte [0x14000c6c0], r12b
test ebx, ebx
jne 0x140002404
mov rcx, qword [0x14000d178]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400023f1
mov rcx, qword [0x14000d170]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x140002390
call fcn.140003404
cmp qword [rdi], rax
jne 0x140002390
jmp 0x140002376
cmp rdi, rsi
jb 0x1400023f1
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.140003404
mov qword [rdi], rax
call rbx
mov rcx, qword [0x14000d178]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x14000d170]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x1400023cf
cmp r13, rax
je 0x1400023ef
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x140002376
lea rdx, [0x140008258]
lea rcx, [0x140008250]
call fcn.1400021c0
lea rdx, [0x140008268]
lea rcx, [0x140008260]
call fcn.1400021c0
nop
test r12d, r12d
je 0x140002427
mov ecx, 8
call fcn.140003e48
test r12d, r12d
jne 0x140002452
mov dword [0x14000c6c8], 1
lea ecx, [r12 + 8]
call fcn.140003e48
mov ecx, r15d
call fcn.140002154
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x1400022e0

Function at 0x140002478
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1400022e0
Function at 0x1400048c4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140003404
xor ebx, ebx
mov rdi, rax
cmp qword [0x14000cda8], rbx
jne 0x1400049ca
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140004a9f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140004a9f
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14000cda8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14000cdb0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14000cdb8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14000cdc8], rax
test rax, rax
je 0x1400049c1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14000cdc0], rax
jmp 0x1400049d1
mov rax, qword [0x14000cdc0]
jmp 0x1400049d8
mov rax, qword [0x14000cdc0]
mov r11, qword [0x14000cdc8]
cmp rax, rdi
je 0x140004a40
cmp r11, rdi
je 0x140004a40
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14000cdc8]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140004a40
test rax, rax
je 0x140004a40
call rsi
test rax, rax
je 0x140004a3a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140004a3a
test byte [rsp + 0x38], 1
jne 0x140004a40
bts ebp, 0x15
jmp 0x140004a7e
mov rcx, qword [0x14000cdb0]
cmp rcx, rdi
je 0x140004a7e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140004a7e
call rax
mov rbx, rax
test rax, rax
je 0x140004a7e
mov rcx, qword [0x14000cdb8]
cmp rcx, rdi
je 0x140004a7e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140004a7e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14000cda8]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140004a9f
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140004aa1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1407c2108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407c228f
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 0x1407c2139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c211f
add dl, dl
jne 0x1407c2146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c21a6
xor eax, eax
add dl, dl
jne 0x1407c2155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407c225d
add dl, dl
jne 0x1407c2166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c2173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c2180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c218d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407c219a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407c212e
mov eax, 1
add dl, dl
jne 0x1407c21b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407c21c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c21ab
sub eax, ebx
mov ebx, 1
jne 0x1407c21fc
mov ecx, 1
add dl, dl
jne 0x1407c21de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c21eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c21d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c212e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407c2218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407c2225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407c220d
cmp eax, 0x7d00
jae 0x1407c224b
cmp eax, 0x500
jb 0x1407c2246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c212e
cmp eax, 0x7f
ja 0x1407c224e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407c212e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407c2282
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 0x1407c212e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140011104
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001ca10
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, [0x14003418f]
call fcn.1400118ed
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001ca67
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 0x14001cb73
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 0x14001cb0c
cmp qword [rbp + 0x28], 0
jle 0x14001cb0c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001caac
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.14001186b
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 0x14001cb62
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001cb62
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 0x14001151e
Capabilities:
Terminate process

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

Disassembly:
jmp 0x1400202c0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400202e0
xor al, al
jmp 0x140020361
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400202f3
xor al, al
jmp 0x140020361
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 0x14002031d
xor al, al
jmp 0x140020361
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140020331
xor al, al
jmp 0x140020361
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140020343
xor al, al
jmp 0x140020361
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002035f
xor al, al
jmp 0x140020361
mov al, 1
add rsp, 0x38
ret