joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400380c0
Capabilities:
Write file on windows

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

Function at 0x140038d92
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14005f2c8]
test eax, eax
je 0x140038e2a
lea rax, [0x14005f2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14005f2d0]
mov qword [rbp - 8], rax
jmp 0x140038e0e
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 0x140038e02
cmp qword [rbp - 0x10], 0
je 0x140038e02
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 0x140038dc8
lea rax, [0x14005f2a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140038e2b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140038f30
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 0x140038f58
mov eax, 0
jmp 0x140038fa6
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 0x140038f81
mov eax, 0
jmp 0x140038fa6
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 0x140038fa1
mov eax, 0
jmp 0x140038fa6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140038fac
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 0x14003902a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140039021
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 0x140039021
mov rax, qword [rbp - 8]
jmp 0x14003903f
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 0x140038ff4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140215131
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea rbx, [rbx + riz - 0x45]
call 0x140215131
sbb dword [rdx + 0x259a6f08], ebx
jnp 0x140215131
int 0x48
lea esp, [rsp + 2]
lea rsp, [rsp + 2]
lea rsp, [rsp + 2]
jmp 0x1402150ca
mov qword [rsp], rax
mov byte [rsp + 1], al
mov word [rsp + 1], r9w
mov qword [rsp], rbx
xchg qword [rsp + 0x20], rbx
call fcn.14021510b

Function at 0x14021514d
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea r10, [rdx + riz - 0xef]
mov rdi, 0x2e19e67
jmp 0x140215781
bswap r12
call fcn.1402153b3

Function at 0x140216ff2
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea r13, [r14 + r14]
mov byte [rsp + 0xd], r8b
xchg rsi, r9
bswap r11
mov dword [rsp + 2], r11d
jmp 0x14021703d
mov r9w, 0x5c12
neg edx
jge 0x1402170fc
lea rcx, [rbx*8]
jmp 0x140217063
pop rdx
xchg cl, dl
lea rsp, [rsp + 8]
inc r14b
mov esi, dword [rsp]
jmp 0x140217022
lea rdx, [rsi + riz - 0x55]
jmp 0x140217116
mov esi, 0x44797953
bts bp, ax
mov rax, qword [rsp]
jmp 0x14021704d
invalid
sbb si, r15w
call fcn.1402170c7
add ebx, dword [rbp + reloc.IPHLPAPI.DLL_GetInterfaceInfo]
jae 0x140217071
jl 0x1402170a0
test byte [rdi + 0x7f], 0xeb
call 0x108f4b1f4
jmp 0x140217072
ror r8w, cl
jmp 0x1402170a2
jmp 0x14021708a
sub r10b, r14b
lea rax, [r8 + r8]
mov rcx, qword [rsp]
setl bpl
clc
jmp 0x140217656
dec r15
mov r9b, byte [rsp]
pushfq
mov r11w, 0xcab1
jmp 0x1402171a6
lea rcx, [rbx*8]
mov esi, 0x44797953
bts bp, ax
mov rax, qword [rsp]
lea rdx, [rsi + riz - 0x55]
ror r14b, 0
mov cx, 0xd3f1
dec bpl
jbe 0x140217088
sbb si, r15w
jmp 0x140217076
mov r9b, 0xfd
cmc
rdtsc
mov dx, 0x8fa9
btc bp, cx
lea rsi, [rbx + riz - 0x554f]
bsr r13w, r10w
jb 0x14021715e
mov r9b, 0xfd
jmp 0x140217148
jne 0x1402170d9
je 0x1402170d9

Function at 0x1402170c7
Capabilities:
Execute anti-debugging instructions

Disassembly:
setb dl
mov r8w, si
shr r8, cl
ja 0x1402170a0
ror r8w, cl
jmp 0x1402170a2
Function at 0x6d7ec280
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x6d80d5e4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x6d7ec408
mov rax, qword [0x6d80d5e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x6d7ec2cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x6d7ec355
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x6d7ec2b0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x6d7ec43d
mov rax, qword [0x6d80d5e8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6d80d5e8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6d7ec420
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6d7ec34e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6d7ec3b0
add dword [0x6d80d5e4], 1
cmp edi, 8
jae 0x6d7ec383
test dil, 4
jne 0x6d7ec3f4
test edi, edi
je 0x6d7ec378
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x6d7ec40f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x6d7ec378
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x6d7ec39c
jmp 0x6d7ec378
add rsi, qword [0x6d80d5e8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6d7ec34e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x6d7ec378
xor esi, esi
jmp 0x6d7ec2d7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x6d7ec378
mov rax, qword [0x6d80d5e8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x6d7ecb90
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6d80d8c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6d80d8a0]
test rbx, rbx
je 0x6d7ecbe4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6d7ecbdb
test rsi, rsi
je 0x6d7ecbdb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6d7ecbc0
lea rcx, [0x6d80d8c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x6d7ece20
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x6d7ece30
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x6d7ece40
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x6d7ece81
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x6d7ece78
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x6d7ece83
add rax, 0x28
cmp rax, r9
jne 0x6d7ece64
xor eax, eax
ret

Function at 0x6d7ecf20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d80a1f0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x6d7ecf8d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7ecf8d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7ecf8d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7ecf84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7ecf8f
add rax, 0x28
cmp rax, r9
jne 0x6d7ecf70
xor eax, eax
add rsp, 0x28
ret

Function at 0x6d7ed090
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x6d80a1f0]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x6d7ed0b0
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7ed0a8
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x6d7ed10d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x6d7ed104
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x6d7ed114
add rax, 0x28
cmp rax, r9
jne 0x6d7ed0f0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x6d7ed130
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x6d80a1f0]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x6d7ed19e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x6d7ed19e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x6d7ed19e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x6d7ed19e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x6d7ed195
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x6d7ed1a5
add rcx, 0x28
cmp rcx, rax
jne 0x6d7ed180
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x6d7ed1b8
jmp 0x6d7ed19e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x6d7ed1c6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x6d7ed19e
test r9d, r9d
jg 0x6d7ed1b0
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x6d7ed520
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x2fc4d48d0
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 0x2fc4d52d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d536a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d534e
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 0x2fc4d5342
cmp qword [rbp - 0x10], 0
je 0x2fc4d5342
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 0x2fc4d5308
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d536b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5470
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 0x2fc4d5498
mov eax, 0
jmp 0x2fc4d54e6
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 0x2fc4d54c1
mov eax, 0
jmp 0x2fc4d54e6
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 0x2fc4d54e1
mov eax, 0
jmp 0x2fc4d54e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1406bd7b8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406bd93f
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 0x1406bd7e9
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd7cf
add dl, dl
jne 0x1406bd7f6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd856
xor eax, eax
add dl, dl
jne 0x1406bd805
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406bd90d
add dl, dl
jne 0x1406bd816
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd823
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd830
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd83d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406bd84a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406bd7de
mov eax, 1
add dl, dl
jne 0x1406bd866
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406bd873
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd85b
sub eax, ebx
mov ebx, 1
jne 0x1406bd8ac
mov ecx, 1
add dl, dl
jne 0x1406bd88e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd89b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd883
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd7de
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406bd8c8
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406bd8d5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406bd8bd
cmp eax, 0x7d00
jae 0x1406bd8fb
cmp eax, 0x500
jb 0x1406bd8f6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd7de
cmp eax, 0x7f
ja 0x1406bd8fe
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406bd7de
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406bd932
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 0x1406bd7de
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1401c4e90
Capabilities:
Encode data using xor

Disassembly:
wait
lodsd eax, dword [rsi]
mov cl, 0xfc
adc al, byte [rdi - 0x3a]
stosb byte [rdi], al
mov r12b, byte [rcx - 0x36f6a717]
invalid

Function at 0x140d97058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d971df
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 0x140d97089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d9706f
add dl, dl
jne 0x140d97096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d970f6
xor eax, eax
add dl, dl
jne 0x140d970a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d971ad
add dl, dl
jne 0x140d970b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d970c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d970d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d970dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d970ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d9707e
mov eax, 1
add dl, dl
jne 0x140d97106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d97113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d970fb
sub eax, ebx
mov ebx, 1
jne 0x140d9714c
mov ecx, 1
add dl, dl
jne 0x140d9712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d9713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d97123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d9707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d97168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d97175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d9715d
cmp eax, 0x7d00
jae 0x140d9719b
cmp eax, 0x500
jb 0x140d97196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d9707e
cmp eax, 0x7f
ja 0x140d9719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d9707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d971d2
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 0x140d9707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d82d0
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 0x2fc4d8cd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d8d6a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d8d4e
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 0x2fc4d8d42
cmp qword [rbp - 0x10], 0
je 0x2fc4d8d42
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 0x2fc4d8d08
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d8d6b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8e70
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 0x2fc4d8e98
mov eax, 0
jmp 0x2fc4d8ee6
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 0x2fc4d8ec1
mov eax, 0
jmp 0x2fc4d8ee6
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 0x2fc4d8ee1
mov eax, 0
jmp 0x2fc4d8ee6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8eec
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 0x2fc4d8f6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8f61
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 0x2fc4d8f61
mov rax, qword [rbp - 8]
jmp 0x2fc4d8f7f
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 0x2fc4d8f34
mov eax, 0
add rsp, 0x20
pop rbp
ret