joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4dae4c
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 0x2fc4daeca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4daec1
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 0x2fc4daec1
mov rax, qword [rbp - 8]
jmp 0x2fc4daedf
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 0x2fc4dae94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e2aa0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4e34a2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc508108]
test eax, eax
je 0x2fc4e353a
lea rax, [0x2fc5080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc508110]
mov qword [rbp - 8], rax
jmp 0x2fc4e351e
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 0x2fc4e3512
cmp qword [rbp - 0x10], 0
je 0x2fc4e3512
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 0x2fc4e34d8
lea rax, [0x2fc5080e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4e353b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4e3640
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 0x2fc4e3668
mov eax, 0
jmp 0x2fc4e36b6
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 0x2fc4e3691
mov eax, 0
jmp 0x2fc4e36b6
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 0x2fc4e36b1
mov eax, 0
jmp 0x2fc4e36b6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e36bc
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 0x2fc4e373a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4e3731
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 0x2fc4e3731
mov rax, qword [rbp - 8]
jmp 0x2fc4e374f
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 0x2fc4e3704
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001000
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x150
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov rdi, qword [rcx + 0x20]
test rdi, rdi
je 0x140001119
mov esi, 0x104
movzx eax, word [rdi + 0x48]
test ax, ax
je 0x140001119
cmp ax, si
jae 0x140001119
mov r10, qword [rdi + 0x50]
xor r8d, r8d
movzx eax, word [r10]
test ax, ax
je 0x1400010b7
xor r9d, r9d
nop dword [rax]
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
test al, al
je 0x14000109f
nop dword [rax]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x14000108c
sub al, 0x20
mov byte [rdx], al
movzx ecx, byte [rdx + 1]
inc rdx
movzx eax, cl
test cl, cl
jne 0x140001080
movzx eax, byte [rsp + 0x20]
inc r8d
mov byte [rsp + r9 + 0x30], al
mov r9d, r8d
movzx ecx, word [r10 + r8*2]
movzx eax, cl
test cx, cx
jne 0x140001070
mov eax, r8d
cmp rax, rsi
jae 0x140001146
lea rcx, [rsp + 0x30]
mov byte [rsp + r8 + 0x30], 0
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
movsxd rdx, eax
test eax, eax
je 0x14000110d
nop
movsx eax, byte [rsp + rcx + 0x30]
inc rcx
add ebx, eax
mov eax, ebx
shr eax, 6
xor ebx, eax
cmp rcx, rdx
jne 0x1400010e0
lea eax, [rbx + rbx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul eax, ecx, 0x8001
cmp eax, 0xf111e22
je 0x140001140
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140001043
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140001b50
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
mov rax, qword [rdi + 0x20]
jmp 0x14000111b
call fcn.140001c78
int3
Function at 0x140001150
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xf0
mov eax, 0x5a4d
mov edi, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x140001294
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001294
movups xmm0, xmmword [rax + 0x18]
lea r8, [rsp]
movups xmm1, xmmword [rax + 0x28]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x38]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x48]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x58]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x68]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x78]
movups xmmword [r8 + 0x50], xmm1
movups xmmword [r8 + 0x60], xmm0
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax + 0x88]
sub rax, 0xffffffffffffff68
movups xmmword [r8 - 0x10], xmm0
movups xmm1, xmmword [rax]
movups xmm0, xmmword [rax + 0x10]
movups xmmword [r8], xmm1
movups xmm1, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm0
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm1
movups xmm1, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm0
movups xmm0, xmmword [rax + 0x50]
movups xmmword [r8 + 0x40], xmm1
movups xmm1, xmmword [rax + 0x60]
movups xmmword [r8 + 0x50], xmm0
movups xmmword [r8 + 0x60], xmm1
mov eax, dword [rsp + 0x70]
xor r8d, r8d
add rax, rcx
mov r9d, dword [rax + 0x20]
mov ebp, dword [rax + 0x1c]
add r9, rcx
mov r10d, dword [rax + 0x24]
add rbp, rcx
mov esi, dword [rax + 0x14]
add r10, rcx
test esi, esi
je 0x140001294
nop word [rax + rax]
movzx eax, word [r10]
mov ecx, dword [r9]
add rcx, r11
mov ebx, dword [rbp + rax*4]
mov eax, 0xbd
add rbx, r11
movsx edx, byte [rcx]
test edx, edx
je 0x140001280
nop dword [rax]
imul eax, eax, 0x21
lea rcx, [rcx + 1]
add eax, edx
movsx edx, byte [rcx]
test edx, edx
jne 0x140001270
cmp edi, eax
je 0x1400012af
inc r8d
add r10, 2
add r9, 4
cmp r8d, esi
jb 0x140001250
xor eax, eax
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, rbx
jmp 0x140001296
Function at 0x140001910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
call section..text
mov edx, 0x8ddf84fd
mov rcx, rax
mov rbp, rax
call fcn.140001150
mov edx, 0x65
xor ecx, ecx
lea r8d, [rdx - 0x5b]
call rax
mov edx, 0x1d659905
mov rcx, rbp
mov rdi, rax
call fcn.140001150
mov rdx, rdi
xor ecx, ecx
call rax
mov edx, 0x54e1d24e
mov rcx, rbp
mov rbx, rax
call fcn.140001150
mov rcx, rbx
call rax
mov edx, 0x8b6db615
mov rcx, rbp
mov rsi, rax
call fcn.140001150
mov rdx, rdi
xor ecx, ecx
call rax
mov edx, 0x25d6263e
mov r14d, eax
mov rcx, rbp
call fcn.140001150
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov dword [rsp + 0x20], r14d
lea r8d, [r9 + 0x40]
lea rcx, [rdx - 1]
call rax
mov edx, 0x634de76b
mov rcx, rbp
mov rbx, rax
call fcn.140001150
xor r9d, r9d
mov qword [rsp + 0x20], r14
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0x22]
call rax
xor r8d, r8d
mov rbx, rax
test r14d, r14d
je 0x140001a15
mov rcx, rax
sub rsi, rax
nop dword [rax]
nop dword [rax + rax]
movzx edx, byte [rcx + rsi]
inc r8d
movsxd rax, r8d
mov byte [rcx], dl
lea rcx, [rcx + 1]
cmp rax, r14
jb 0x140001a00
xorps xmm0, xmm0
mov edx, 0xbf903409
mov rcx, rbp
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.140001150
xor r9d, r9d
mov qword [rsp + 0x28], 0
lea r8, [0x140001750]
mov dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call rax
mov rdi, rax
test rbx, rbx
je 0x140001ae4
test r14d, r14d
je 0x140001ae4
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x40], rdx
cmp dword [rdx], 0x4550
jne 0x140001ae4
movzx eax, word [rdx + 0x16]
movzx ecx, word [rdx + 0x14]
shr eax, 0xd
add rcx, 0x18
and eax, 1
mov dword [rsp + 0x78], eax
add rcx, rdx
lea rax, [rdx + 0x90]
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rax
lea rax, [rdx + 0xb0]
mov qword [rsp + 0x58], rax
lea rax, [rdx + 0xd0]
mov qword [rsp + 0x60], rax
lea rax, [rdx + 0xa0]
mov qword [rsp + 0x68], rax
lea rax, [rdx + 0x88]
mov qword [rsp + 0x70], rax
mov edx, 0x72290272
mov rcx, rbp
call fcn.140001150
mov edx, 0xffffffff
mov rcx, rdi
call rax
lea rcx, [rsp + 0x30]
call fcn.1400012c0
lea r11, [rsp + 0x80]
xor eax, eax
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret

Function at 0x140002538
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002582
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002582
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002582
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002582
cmp dword [rcx + 0x84], 0xe
jbe 0x140002582
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002584
xor al, al
add rsp, 0x28
ret
Function at 0x2fc4d5920
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d6322
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fa108]
test eax, eax
je 0x2fc4d63ba
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fa110]
mov qword [rbp - 8], rax
jmp 0x2fc4d639e
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 0x2fc4d6392
cmp qword [rbp - 0x10], 0
je 0x2fc4d6392
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 0x2fc4d6358
lea rax, [0x2fc4fa0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d63bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d64c0
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 0x2fc4d64e8
mov eax, 0
jmp 0x2fc4d6536
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 0x2fc4d6511
mov eax, 0
jmp 0x2fc4d6536
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 0x2fc4d6531
mov eax, 0
jmp 0x2fc4d6536
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x180972058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1809721df
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 0x180972089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18097206f
add dl, dl
jne 0x180972096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809720f6
xor eax, eax
add dl, dl
jne 0x1809720a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809721ad
add dl, dl
jne 0x1809720b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809720c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809720d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809720dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809720ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18097207e
mov eax, 1
add dl, dl
jne 0x180972106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180972113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809720fb
sub eax, ebx
mov ebx, 1
jne 0x18097214c
mov ecx, 1
add dl, dl
jne 0x18097212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18097213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180972123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18097207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180972168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180972175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18097215d
cmp eax, 0x7d00
jae 0x18097219b
cmp eax, 0x500
jb 0x180972196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18097207e
cmp eax, 0x7f
ja 0x18097219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18097207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809721d2
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 0x18097207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1406c3958
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c3adf
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 0x1406c3989
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c396f
add dl, dl
jne 0x1406c3996
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c39f6
xor eax, eax
add dl, dl
jne 0x1406c39a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c3aad
add dl, dl
jne 0x1406c39b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c39c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c39d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c39dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c39ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c397e
mov eax, 1
add dl, dl
jne 0x1406c3a06
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c3a13
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c39fb
sub eax, ebx
mov ebx, 1
jne 0x1406c3a4c
mov ecx, 1
add dl, dl
jne 0x1406c3a2e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c3a3b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3a23
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c397e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c3a68
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c3a75
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c3a5d
cmp eax, 0x7d00
jae 0x1406c3a9b
cmp eax, 0x500
jb 0x1406c3a96
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c397e
cmp eax, 0x7f
ja 0x1406c3a9e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c397e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c3ad2
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 0x1406c397e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x18065f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18065f1df
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 0x18065f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18065f06f
add dl, dl
jne 0x18065f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18065f0f6
xor eax, eax
add dl, dl
jne 0x18065f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18065f1ad
add dl, dl
jne 0x18065f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18065f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18065f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18065f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18065f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18065f07e
mov eax, 1
add dl, dl
jne 0x18065f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18065f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18065f0fb
sub eax, ebx
mov ebx, 1
jne 0x18065f14c
mov ecx, 1
add dl, dl
jne 0x18065f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18065f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18065f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18065f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18065f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18065f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18065f15d
cmp eax, 0x7d00
jae 0x18065f19b
cmp eax, 0x500
jb 0x18065f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18065f07e
cmp eax, 0x7f
ja 0x18065f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18065f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18065f1d2
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 0x18065f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400113cf
Capabilities:
Terminate process

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

Disassembly:
jmp 0x14001d610
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001d630
xor al, al
jmp 0x14001d6b1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001d643
xor al, al
jmp 0x14001d6b1
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 0x14001d66d
xor al, al
jmp 0x14001d6b1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001d681
xor al, al
jmp 0x14001d6b1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001d693
xor al, al
jmp 0x14001d6b1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001d6af
xor al, al
jmp 0x14001d6b1
mov al, 1
add rsp, 0x38
ret
Function at 0x2fc4d6cc0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d76c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d775a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d773e
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 0x2fc4d7732
cmp qword [rbp - 0x10], 0
je 0x2fc4d7732
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 0x2fc4d76f8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d775b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d7860
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 0x2fc4d7888
mov eax, 0
jmp 0x2fc4d78d6
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 0x2fc4d78b1
mov eax, 0
jmp 0x2fc4d78d6
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 0x2fc4d78d1
mov eax, 0
jmp 0x2fc4d78d6
mov eax, 1
add rsp, 0x20
pop rbp
ret