joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004c4a0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18004c4b6
mov al, 1
jmp 0x18004c516
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18004c4c7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18004c514
mov ecx, dword [rcx + 0x18]
nop
call fcn.18005489c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18004c514
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18004c514
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18004c514
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18004c516
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18004c990
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18004c9b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180040588
or eax, 0xffffffff
jmp 0x18004c9b2
xor eax, eax
add rsp, 0x28
ret
Function at 0x18004fbec
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18004fc1c
xor eax, eax
jmp 0x18004fcdf
mov rbp, rbx
cmp word [rax], si
je 0x18004fc41
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18004fc28
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18004fc24
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18004e2d4
movsxd r14, eax
test eax, eax
jne 0x18004fc7f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18004fc15
mov rcx, r14
call fcn.1800457ac
mov rdi, rax
test rax, rax
jne 0x18004fc98
xor ecx, ecx
call fcn.180045770
jmp 0x18004fc74
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18004e2d4
test eax, eax
jne 0x18004fcc9
mov rcx, rdi
call fcn.180045770
jmp 0x18004fcd3
xor ecx, ecx
call fcn.180045770
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x18005403c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.1800471a4
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1800540dd
cmp ebx, dword [rsp + 0x30]
je 0x1800540d6
test esi, esi
je 0x1800540d6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800540b1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800540be
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18005409b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800540c2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800540df
mov eax, 1
jmp 0x1800540df
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180057500
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.18004a304
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18004a304
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180057650
cmp rax, 0xffffffffffffffff
je 0x180057650
xor edi, edi
test rbp, rbp
jle 0x1800575fb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18004916c
mov rbx, rax
test rax, rax
jne 0x180057588
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800575f1
mov edx, 0x8000
mov ecx, r14d
call fcn.180057384
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.18004c0a0
cmp eax, 0xffffffff
je 0x1800575d1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180057598
mov edx, r15d
mov ecx, r14d
call fcn.180057384
jmp 0x1800575f1
cmp byte [rsi + 0x38], dil
je 0x1800575e8
cmp dword [rsi + 0x34], 5
jne 0x1800575e8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
cmp byte [rsi + 0x30], dil
je 0x1800575f1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180045770
jmp 0x180057664
jns 0x180057664
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18004a304
cmp rax, 0xffffffffffffffff
jne 0x18005761c
cmp byte [rsi + 0x30], dil
je 0x180057664
mov edi, dword [rsi + 0x2c]
jmp 0x180057664
mov ecx, r14d
call fcn.18005489c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180057664
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], recv
jmp 0x180057664
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18005765d
mov eax, dword [rsi + 0x2c]
jmp 0x180057662
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18004a304
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x180058060
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180058088
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180058088
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x181092c90
Capabilities:
Encode data using xor

Disassembly:
jmp 0x181092c9a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x181092cc3
pop rbp
sub rbp, 0x33
sub rbp, 0x1092c90
cmp edx, 1
je 0x181092d06
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x181092d16
mov rax, 0x1092c90
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x4cda02c8
xor byte [rax], dl
inc rax
dec rcx
jne 0x181092d35
jmp 0x181092d4c
add byte [rcx + 0x21], 0x43
hlt
Function at 0x24ca41500
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
pxor xmm0, xmm0
mov qword [rcx + 0x10], 0
mov rsi, rcx
movups xmmword [rcx], xmm0
mov ecx, 0x149000
call fcn.24ca61c20
lea rdi, [rax + 0x149000]
mov qword [rsi], rax
mov rcx, rax
mov rbx, rax
mov qword [rsi + 0x10], rdi
mov rdx, qword [sym.payload.dll_globalByteArray]
mov r8d, 0x149000
call sub.msvcrt.dll_memcpy
mov qword [rsi + 8], rdi
mov rbp, qword [sym.payload.dll_encryptionKey]
lea rdi, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
mov rcx, rbp
call sub.msvcrt.dll_strlen
cmp rax, 1
je 0x24ca41610
test rax, rax
jne 0x24ca415e0
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov byte [rsp + rax + 0x30], 0
mov r8, qword [rsp + 0x28]
nop word [rax + rax]
mov rax, rcx
xor edx, edx
div r8
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + rdx]
xor byte [rbx + rcx], al
add rcx, 1
mov rbx, qword [rsi]
mov rax, qword [rsi + 8]
sub rax, rbx
cmp rcx, rax
jb 0x24ca41590
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
je 0x24ca415cf
mov rax, qword [rsp + 0x30]
lea rdx, [rax + 1]
call fcn.24ca61c10
mov rax, rsi
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov r8, rdi
mov rdx, rbp
cmp eax, 8
jae 0x24ca41620
xor ecx, ecx
test al, 4
jne 0x24ca41660
test al, 2
jne 0x24ca41648
test al, 1
je 0x24ca41576
movzx edx, byte [rdx + rcx]
mov byte [r8 + rcx], dl
jmp 0x24ca41576
movzx edx, byte [rbp]
mov byte [rsp + 0x30], dl
jmp 0x24ca41576
mov r8d, eax
xor edx, edx
and r8d, 0xfffffff8
mov ecx, edx
add edx, 8
mov r9, qword [rbp + rcx]
mov qword [rdi + rcx], r9
cmp edx, r8d
jb 0x24ca41629
lea r8, [rdi + rdx]
add rdx, rbp
jmp 0x24ca415eb
movzx r9d, word [rdx + rcx]
mov word [r8 + rcx], r9w
add rcx, 2
test al, 1
je 0x24ca41576
jmp 0x24ca415fd
mov ecx, dword [rdx]
mov dword [r8], ecx
mov ecx, 4
test al, 2
je 0x24ca415f5
jmp 0x24ca41648
Function at 0x24ca575e0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.24ca5f4c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.24ca5f4c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x24ca57650
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x24cbb2064]
mov rbx, rcx
test esi, esi
jle 0x24ca57780
mov rax, qword [0x24cbb2068]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x24ca5769b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x24ca57725
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x24ca57680
mov rcx, rbx
call fcn.24ca57f70
mov rdi, rax
test rax, rax
je 0x24ca577a2
mov rax, qword [0x24cbb2068]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.24ca580b0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x24cbb2068]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x24ca57787
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x24ca5771e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x24ca57730
add dword [0x24cbb2064], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x24cbb2068]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x24ca5771e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.24ca575e0
nop dword [rax]
xor esi, esi
jmp 0x24ca576a8
mov rax, qword [0x24cbb2068]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.24ca575e0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.24ca575e0
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x24ca57c60
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp edx, 2
je 0x24ca57d90
ja 0x24ca57ca8
test edx, edx
je 0x24ca57d28
mov eax, dword [0x24cbb2088]
test eax, eax
je 0x24ca57e10
mov dword [0x24cbb2088], 1
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp edx, 3
jne 0x24ca57c95
mov eax, dword [0x24cbb2088]
test eax, eax
je 0x24ca57c95
lea r12, [0x24cbb20a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x24cbb2080]
test rbx, rbx
je 0x24ca57d14
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x24ca57e38
test eax, eax
jne 0x24ca57e38
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24ca57ce8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x24ca57c95
mov eax, dword [0x24cbb2088]
test eax, eax
jne 0x24ca57da8
mov eax, dword [0x24cbb2088]
cmp eax, 1
jne 0x24ca57c95
mov rbx, qword [0x24cbb2080]
test rbx, rbx
je 0x24ca57d61
nop dword [rax]
mov rcx, rbx
mov rbx, qword [rbx + 0x10]
call fcn.24ca60000
test rbx, rbx
jne 0x24ca57d50
lea rcx, [0x24cbb20a0]
mov qword [0x24cbb2080], 0
mov dword [0x24cbb2088], 0
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp 0x24ca57c95
call fcn.24ca58240
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea r12, [0x24cbb20a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x24cbb2080]
test rbx, rbx
je 0x24ca57dfc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop word [rax + rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x24ca57e28
test rsi, rsi
je 0x24ca57e28
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24ca57dd8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x24ca57d32
lea rcx, [0x24cbb20a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x24ca57c8b
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24ca57dd8
jmp 0x24ca57dfc
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x24ca57ce8
jmp 0x24ca57d14

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

Disassembly:
mov r8, qword [0x24cbaf220]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x24ca57f90
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x24ca57f98
ret
cmp word [rdx + 0x18], 0x20b
jne 0x24ca57f90
movzx eax, word [rdx + 0x14]
sub rcx, r8
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x24ca57fe5
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x24ca57fdc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x24ca57f90
add rax, 0x28
cmp rax, r9
jne 0x24ca57fc8
xor eax, eax
ret
Function at 0x24ca57ff0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x24cbaf220]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x24ca5800f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x24ca58018
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x24ca5800f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x24ca580b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x24cbaf220]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x24ca580cf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x24ca580d8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x24ca58360
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x24ca58390
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp 0x24ca601b0
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x24ca601c0
xor eax, eax
ret
jmp fcn.24ca57b60

Function at 0x24ca583d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x24ca58400
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x24ca58418
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400087bc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140008808
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140008800
cmp dword [rcx + 0x3c], edx
jl 0x140008800
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140008800
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140008808
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1408a3058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408a31df
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 0x1408a3089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a306f
add dl, dl
jne 0x1408a3096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a30f6
xor eax, eax
add dl, dl
jne 0x1408a30a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408a31ad
add dl, dl
jne 0x1408a30b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a30c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a30d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a30dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408a30ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1408a307e
mov eax, 1
add dl, dl
jne 0x1408a3106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408a3113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a30fb
sub eax, ebx
mov ebx, 1
jne 0x1408a314c
mov ecx, 1
add dl, dl
jne 0x1408a312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408a313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a3123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1408a3168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1408a3175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408a315d
cmp eax, 0x7d00
jae 0x1408a319b
cmp eax, 0x500
jb 0x1408a3196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a307e
cmp eax, 0x7f
ja 0x1408a319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1408a307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408a31d2
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 0x1408a307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140012850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
cmp qword [rsp + 0x90], 0
jne 0x1400128a4
xor eax, eax
jmp 0x140012a54
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x60]
lea rax, [rcx + rax + 0x88]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, 0xffff0000
mov rcx, qword [rsp + 0x98]
and rcx, rax
mov rax, rcx
test rax, rax
jne 0x1400129ad
mov rax, qword [rsp + 0x98]
and rax, 0xffff
mov rcx, qword [rsp + 0x38]
mov ecx, dword [rcx + 0x10]
sub rax, rcx
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140012a4f
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x18]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x28]
dec eax
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x50], 0
je 0x140012a4f
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call fcn.140010ac0
test eax, eax
jne 0x140012a2e
mov rax, qword [rsp + 0x48]
movzx eax, word [rax]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax*4]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140012a4f
mov rax, qword [rsp + 0x40]
add rax, 4
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
jmp 0x1400129b9
mov rax, qword [rsp + 0x58]
add rsp, 0x88
ret
Function at 0x140021650
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x14005b080]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x140021684
xor eax, eax
jmp 0x14002187a
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x1400216b5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.1400218c0
jmp 0x14002187a
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000b3c0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140021763
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140004040
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.14000e7c0
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.14000ce60
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.14001dde0
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14002186a
mov rcx, qword [rsp + 0x80]
call fcn.14001b2b0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x140021818
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002dd64
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x140021813
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14002187a
jmp 0x14002178f
cmp qword [rsp + 0x50], 0
jbe 0x14002186a
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.14002dd64
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400237e0
add rsp, 0x78
ret

Function at 0x14002411c
Capabilities:
Parse pe header

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

Function at 0x140030f44
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140030d34