joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006ed2b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1413a08d0]
jne 0x140062cfa
rol rcx, 0x10
test cx, 0xffff
jne 0x140062cf6
repz ret
ror rcx, 0x10
jmp 0x14006ec84
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1413a7410]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x1413a7508]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14006ed09
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1413a7410]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14006ed2b
mov rax, qword [rsp + 0x88]
mov qword [0x1413a7508], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1413a74a8], rax
mov rax, qword [0x1413a7508]
mov qword [0x1413a7380], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1413a7490], rax
mov dword [0x1413a7370], 0xc0000409
mov dword [0x1413a7374], 1
mov rax, qword [0x1413a08d0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1413a08d8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1413a7408], eax
mov ecx, 1
call fcn.140074cf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, str.ps:A
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1413a7408], 0
jne 0x14006edb2
mov ecx, 1
call fcn.140074cf0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400748d4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.140069bd4
xor ebx, ebx
mov rdi, rax
cmp qword [0x1413a7c30], rbx
jne 0x1400749da
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x140074aaf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140074aaf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14009dfc8]
mov rcx, rsi
mov qword [0x1413a7c30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x14009dfb0]
mov rcx, rsi
mov qword [0x1413a7c38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1413a7c40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1413a7c50], rax
test rax, rax
je 0x1400749d1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1413a7c48], rax
jmp 0x1400749e1
mov rax, qword [0x1413a7c48]
jmp 0x1400749e8
mov rax, qword [0x1413a7c48]
mov r11, qword [0x1413a7c50]
cmp rax, rdi
je 0x140074a50
cmp r11, rdi
je 0x140074a50
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1413a7c50]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140074a50
test rax, rax
je 0x140074a50
call rsi
test rax, rax
je 0x140074a4a
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140074a4a
test byte [rsp + 0x38], 1
jne 0x140074a50
bts ebp, 0x15
jmp 0x140074a8e
mov rcx, qword [0x1413a7c38]
cmp rcx, rdi
je 0x140074a8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140074a8e
call rax
mov rbx, rax
test rax, rax
je 0x140074a8e
mov rcx, qword [0x1413a7c40]
cmp rcx, rdi
je 0x140074a8e
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140074a8e
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1413a7c30]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x140074aaf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140074ab1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x2fc4df040
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 0x2fc4dfa42
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc504108]
test eax, eax
je 0x2fc4dfada
lea rax, [0x2fc5040e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc504110]
mov qword [rbp - 8], rax
jmp 0x2fc4dfabe
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 0x2fc4dfab2
cmp qword [rbp - 0x10], 0
je 0x2fc4dfab2
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 0x2fc4dfa78
lea rax, [0x2fc5040e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4dfadb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4dfbe0
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 0x2fc4dfc08
mov eax, 0
jmp 0x2fc4dfc56
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 0x2fc4dfc31
mov eax, 0
jmp 0x2fc4dfc56
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 0x2fc4dfc51
mov eax, 0
jmp 0x2fc4dfc56
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4dfc5c
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 0x2fc4dfcda
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4dfcd1
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 0x2fc4dfcd1
mov rax, qword [rbp - 8]
jmp 0x2fc4dfcef
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 0x2fc4dfca4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140011208
Capabilities:
Terminate process

Disassembly:
jmp 0x140013170
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 0x14001128a
Capabilities:
Convert ip address from string
Initialize winsock library
Resolve dns

Disassembly:
jmp 0x140011970
push rbp
push rdi
sub rsp, 0x478
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xb6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e008]
xor rax, rbp
mov qword [rbp + 0x448], rax
lea rcx, [0x1400240a8]
call fcn.140011389
lea rdx, [rbp + 0xa0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400119d8
lea rcx, str.WSAStartup_failed._n
call fcn.1400111a4
mov eax, 1
jmp 0x140011b0e
xor eax, eax
cmp eax, 1
je 0x140011b06
lea rcx, str.Enter_an_IP_address_or_hostname:
call fcn.1400111a4
lea rdx, [rbp + 0x10]
lea rcx, [0x14001ae10]
call fcn.1400110a5
lea r8, [rbp + 0x274]
lea rdx, [rbp + 0x10]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140011a6c
mov r8d, 2
mov edx, 4
lea rcx, [rbp + 0x274]
call qword [sym.imp.WS2_32.dll_gethostbyaddr]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
jne 0x140011a51
lea rcx, [0x14001ae18]
call fcn.1400111a4
jmp 0x140011a67
mov rax, qword [rbp + 0x258]
mov rdx, qword [rax]
lea rcx, str.Hostname:__s_n
call fcn.1400111a4
jmp 0x140011b01
lea rcx, [rbp + 0x10]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rbp + 0x258], rax
cmp qword [rbp + 0x258], 0
jne 0x140011a95
lea rcx, str.Error:
call fcn.1400111a4
jmp 0x140011b01
mov rax, qword [rbp + 0x258]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x298], rax
mov dword [rbp + 0x2b4], 0
jmp 0x140011ac1
mov eax, dword [rbp + 0x2b4]
inc eax
mov dword [rbp + 0x2b4], eax
movsxd rax, dword [rbp + 0x2b4]
mov rcx, qword [rbp + 0x298]
cmp qword [rcx + rax*8], 0
je 0x140011b01
movsxd rax, dword [rbp + 0x2b4]
mov rcx, qword [rbp + 0x298]
mov rax, qword [rcx + rax*8]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, str.IP_Address:__s_n
call fcn.1400111a4
jmp 0x140011ab3
jmp 0x1400119d8
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ad90]
call fcn.140011320
mov rax, rdi
mov rcx, qword [rbp + 0x448]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x458]
pop rdi
pop rbp
ret
Function at 0x140011294
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144b0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400144d0
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400144e3
xor al, al
jmp 0x140014551
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 0x14001450d
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014521
xor al, al
jmp 0x140014551
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014533
xor al, al
jmp 0x140014551
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001454f
xor al, al
jmp 0x140014551
mov al, 1
add rsp, 0x38
ret
Function at 0x1806ef058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1806ef1df
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 0x1806ef089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806ef06f
add dl, dl
jne 0x1806ef096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806ef0f6
xor eax, eax
add dl, dl
jne 0x1806ef0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1806ef1ad
add dl, dl
jne 0x1806ef0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806ef0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806ef0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806ef0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1806ef0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1806ef07e
mov eax, 1
add dl, dl
jne 0x1806ef106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1806ef113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806ef0fb
sub eax, ebx
mov ebx, 1
jne 0x1806ef14c
mov ecx, 1
add dl, dl
jne 0x1806ef12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806ef13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806ef123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806ef07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1806ef168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1806ef175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1806ef15d
cmp eax, 0x7d00
jae 0x1806ef19b
cmp eax, 0x500
jb 0x1806ef196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806ef07e
cmp eax, 0x7f
ja 0x1806ef19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1806ef07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1806ef1d2
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 0x1806ef07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1805ef058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1805ef1df
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 0x1805ef089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ef06f
add dl, dl
jne 0x1805ef096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ef0f6
xor eax, eax
add dl, dl
jne 0x1805ef0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805ef1ad
add dl, dl
jne 0x1805ef0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ef0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ef0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ef0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805ef0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805ef07e
mov eax, 1
add dl, dl
jne 0x1805ef106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805ef113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ef0fb
sub eax, ebx
mov ebx, 1
jne 0x1805ef14c
mov ecx, 1
add dl, dl
jne 0x1805ef12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ef13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ef123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ef07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805ef168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805ef175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805ef15d
cmp eax, 0x7d00
jae 0x1805ef19b
cmp eax, 0x500
jb 0x1805ef196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ef07e
cmp eax, 0x7f
ja 0x1805ef19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805ef07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805ef1d2
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 0x1805ef07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180042a70
Capabilities:
Encode data using xor

Disassembly:
out dx, eax
lodsb al, byte [rsi]
sbb al, 7
js 0x180042aa6
jmp 0x180042a6e
movabs word [0xc3d680db83536b9f], ax
lahf
imul edx, dword [rbx - 0x7d], 0xffffffdb
adc dh, 0xc3
ret
scasd eax, dword [rdi]
add al, 0xe5
in eax, dx
loope 0x180042a48
jg 0x180042ad5
pop rbp
or edx, dword [rsi + rbx - 0x6ccf3808]
xchg r12, rax
push rbp
xor esp, dword [rbx]
outsd dx, dword [rsi]
mov bh, 0x8c
jb 0x180042a77
outsb dx, byte [rsi]
fist word [rbx - 0x7547b6c5]
invalid
pushfq
invalid
and bh, ch
add ebp, dword [rbp - 0xc2aae7a]
lea edx, [rsi + 0x3b]
mov bh, 0xc
cld
je 0x180042b3f
cmp byte [rbp - 0x35], bl
stc
imul ebp, eax, 0xffffffe7
cwde
sub al, 0x1c
add al, 0x12
mov esp, 0x349ba1d7
or eax, 0x93f57b52
mov esp, 0xfdd3e917
mov r12b, 0x60
sbb ecx, esi
sbb eax, 0x9348f1d5
jmp 0x19f62cdd2
add al, 0x24
call 0x154259d49
loopne 0x180042b0a
invalid

Function at 0x18004c050
Capabilities:
Check for software breakpoints

Disassembly:
jbe 0x18004c077
sub byte [rbx], al
rcl dword [rcx]
repne cmpsb byte [rsi], byte [rdi]
push 0xffffffff9e8a5be1
imul ecx, dword [rbx + 0x7261fcab], 0x47
xchg ebp, eax
invalid
cmp dl, byte [rbx - 0x590fbd88]
jno 0x18004c0ea
xor ebx, dword [rbx + 0x6f]
jmp 0x18004c052
cmc
in al, dx
in al, dx
and eax, 0xcb61bc70
jns 0x18004c0f3
invalid
jns 0x18004c0e8
jae 0x18004c114
adc eax, 0xbdcf2f8e
and byte [rax + 0x48720324], ch
fidiv word [rdx]
cmp ecx, ebx
sbb esp, 0x1901dd6c
add ch, bh
and eax, 0xfccfa6d7
lahf
mov edi, 0x2ce4cd10
add ebx, dword [rcx - 0x221ba007]
sbb byte [rdx], bh
xchg edx, eax
fist word [rbx + 0x12bbb058]
lea edi, [rdx - 0x50]
retf
Function at 0x18070f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x18070f1df
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 0x18070f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18070f06f
add dl, dl
jne 0x18070f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18070f0f6
xor eax, eax
add dl, dl
jne 0x18070f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18070f1ad
add dl, dl
jne 0x18070f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18070f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18070f07e
mov eax, 1
add dl, dl
jne 0x18070f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18070f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18070f0fb
sub eax, ebx
mov ebx, 1
jne 0x18070f14c
mov ecx, 1
add dl, dl
jne 0x18070f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18070f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18070f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18070f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18070f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18070f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18070f15d
cmp eax, 0x7d00
jae 0x18070f19b
cmp eax, 0x500
jb 0x18070f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18070f07e
cmp eax, 0x7f
ja 0x18070f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18070f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18070f1d2
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 0x18070f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d8f30
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 0x2fc4d9932
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fe108]
test eax, eax
je 0x2fc4d99ca
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fe110]
mov qword [rbp - 8], rax
jmp 0x2fc4d99ae
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 0x2fc4d99a2
cmp qword [rbp - 0x10], 0
je 0x2fc4d99a2
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 0x2fc4d9968
lea rax, [0x2fc4fe0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d99cb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d9ad0
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 0x2fc4d9af8
mov eax, 0
jmp 0x2fc4d9b46
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 0x2fc4d9b21
mov eax, 0
jmp 0x2fc4d9b46
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 0x2fc4d9b41
mov eax, 0
jmp 0x2fc4d9b46
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d9b4c
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 0x2fc4d9bca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d9bc1
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 0x2fc4d9bc1
mov rax, qword [rbp - 8]
jmp 0x2fc4d9bdf
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 0x2fc4d9b94
mov eax, 0
add rsp, 0x20
pop rbp
ret