joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001380
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x278
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
cmp edx, 1
jne 0x180001606
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
mov edx, 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, str.OLEDLG.dll
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.180005be0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, str.ntdll.dll
mov qword [0x18001cc38], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetCurrentPeb
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.VA_X.dll
mov qword [0x18001cc40], rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x18001cc28], rax
mov rcx, rax
test rax, rax
jne 0x180001437
lea rcx, str.VA_X64.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x18001cc28], rax
mov rcx, rax
test rcx, rcx
jne 0x180001481
call qword [0x18001cc40]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx + 0x10]
add rcx, 0x10
cmp rax, rcx
je 0x180001606
mov rdx, qword [0x18001cc50]
nop
cmp qword [rax + 0x30], rdx
je 0x180001473
mov rax, qword [rax]
cmp rax, rcx
jne 0x180001460
jmp 0x180001606
mov rax, qword [rax + 0x60]
mov word [rax], 0x5f
jmp 0x180001606
mov qword [rsp + 0x258], r14
mov rcx, rax
mov qword [rsp + 0x250], r15
call qword [sym.imp.dbghelp.dll_ImageNtHeader]
lea r9, [rsp + 0x20]
mov r8d, 4
mov r15, rax
mov r14d, dword [rax + 0x90]
add r14, qword [0x18001cc28]
mov edx, dword [rax + 0x94]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [r14 + 0xc], 0
je 0x1800015dc
mov qword [rsp + 0x288], rbx
mov qword [rsp + 0x290], rbp
mov rbp, qword [0x18001cc28]
mov qword [rsp + 0x298], rsi
mov qword [rsp + 0x270], rdi
mov qword [rsp + 0x268], r12
lea r12, [0x180001350]
mov qword [rsp + 0x260], r13
lea r13, [0x1800012a0]
cmp dword [r14], 0
je 0x1800015ac
mov ecx, dword [r14 + 0xc]
lea rdx, str.KERNEL32.DLL
add rcx, rbp
call fcn.180005dc8
mov rbp, qword [0x18001cc28]
test eax, eax
jne 0x18000159d
mov eax, dword [r14]
test eax, eax
je 0x18000159d
mov ebx, dword [r14 + 0x10]
lea rdi, [rax + rbp]
mov rax, qword [rax + rbp]
add rbx, rbp
test rax, rax
je 0x18000159d
js 0x18000158c
lea rsi, [rax + rbp]
lea rcx, [rsi + 2]
lea rdx, [0x180018908]
call fcn.18000f110
test eax, eax
jne 0x180001575
mov qword [rbx], r13
lea rdx, [0x180018918]
lea rcx, [rsi + 2]
call fcn.18000f110
test eax, eax
jne 0x18000158c
mov qword [rbx], r12
mov rax, qword [rdi + 8]
add rdi, 8
add rbx, 8
test rax, rax
jne 0x180001558
add r14, 0x14
cmp dword [r14 + 0xc], 0
jne 0x180001515
mov r12, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x270]
mov rsi, qword [rsp + 0x298]
mov rbp, qword [rsp + 0x290]
mov rbx, qword [rsp + 0x288]
mov r13, qword [rsp + 0x260]
mov edx, dword [r15 + 0x94]
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r15, qword [rsp + 0x250]
mov r14, qword [rsp + 0x258]
mov eax, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180001640
add rsp, 0x278
ret
Function at 0x18000982c
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 0x18000985c
xor eax, eax
jmp 0x18000991f
mov rbp, rbx
cmp word [rax], si
je 0x180009881
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180009868
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180009864
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.18000974c
movsxd r14, eax
test eax, eax
jne 0x1800098bf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180009855
mov rcx, r14
call fcn.18000aabc
mov rdi, rax
test rax, rax
jne 0x1800098d8
xor ecx, ecx
call fcn.180007e20
jmp 0x1800098b4
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.18000974c
test eax, eax
jne 0x180009909
mov rcx, rdi
call fcn.180007e20
jmp 0x180009913
xor ecx, ecx
call fcn.180007e20
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 0x18000eee0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000ef08
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18000ef08
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140033bb8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140076b90], eax
call fcn.140033ee0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140076b90], 0
jne case.default.0x140033c0e
mov ecx, 1
call fcn.140033ee0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
int3
Function at 0x140003e30
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140003e64
cmp word [rcx], 0x5a4d
jne 0x140003e64
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140003e64
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003e64
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140003d70
test eax, eax
jne 0x140003e80
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.140003de0
test rax, rax
je 0x140003e75
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.14000462f
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140004530
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400044d0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140004994
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14055f618]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14055f614]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400049e2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400049da
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140004ac9
inc ebx
add rax, 0x28
jmp 0x1400049ba
mov rcx, r12
call fcn.1400051c1
mov rbp, rax
test rax, rax
jne 0x140004a01
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140004930
movsxd rbx, ebx
mov rax, qword [0x14055f618]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000526f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14055f618]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140004a63
mov rax, qword [0x14055f618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140004930
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140004ac3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140004ac3
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 [0x14055f618]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140004ac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140004930
inc dword [0x14055f614]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140004ef0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14055f680]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14055f660]
test rbx, rbx
je 0x140004f3c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140004f36
test eax, eax
jne 0x140004f36
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140004f0e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400050f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140005113
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140005113
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140005114
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000514e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140005145
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140005150
inc r8d
add rax, 0x28
jmp 0x14000512c
xor eax, eax
ret

Function at 0x1400051c1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x14055b6f0]
mov r8, rcx
mov rcx, r9
call fcn.1400050f0
test eax, eax
je 0x1400051ed
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.140005114
xor eax, eax
add rsp, 0x28
ret
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140007750]
mov rcx, qword [0x140007700]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140007760]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140007770]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140007740]
mov dword [0x14000a00c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140007820]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140007800]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400076b0]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001360
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
mov word [rbp - 2], 5
mov word [rbp - 4], 5
jmp 0x1400013ea
mov word [rbp - 6], 0
jmp 0x1400013bb
cmp word [rbp - 2], 5
jne 0x140001393
lea rax, section..rdata
jmp 0x14000139a
lea rax, [0x140007002]
movsx edx, word [rbp - 2]
mov r8, rax
lea rax, str._d__s
mov rcx, rax
call sym.printf_char_const__::_
movzx eax, word [rbp - 6]
add eax, 1
mov word [rbp - 6], ax
movzx eax, word [rbp - 6]
cmp ax, word [rbp - 4]
jl 0x140001383
lea rax, [0x140007009]
mov rcx, rax
call sym.printf_char_const__::_
movzx eax, word [rbp - 4]
sub eax, 1
mov word [rbp - 4], ax
movzx eax, word [rbp - 2]
add eax, 5
mov word [rbp - 2], ax
cmp word [rbp - 4], 0
jg 0x14000137b
lea rax, str.pause
mov rcx, rax
call sym.system
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x140001684
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14000a0a8]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14000a0a4]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400016d2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400016ca
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400017b9
inc ebx
add rax, 0x28
jmp 0x1400016aa
mov rcx, r12
call sym.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
jne 0x1400016f1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call sym.__report_error
movsxd rbx, ebx
mov rax, qword [0x14000a0a8]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call sym._GetPEImageBase
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000a0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140001753
mov rax, qword [0x14000a0a8]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400017b3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400017b3
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 [0x14000a0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400017b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
inc dword [0x14000a0a4]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140001be0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14000a100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000a0e0]
test rbx, rbx
je 0x140001c2c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001c26
test eax, eax
jne 0x140001c26
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001bfe
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001de0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001e03
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001e03
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x140001e04
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001e3e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001e35
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001e40
inc r8d
add rax, 0x28
jmp 0x140001e1c
xor eax, eax
ret

Function at 0x140001eb1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140007700]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001edd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x10000129c
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x1000036f8]
lea rdx, [0x100003700]
call qword [sym.imp.API_MS_WIN_Service_Core_L1_1_0.dll_SetServiceStatus]
test eax, eax
jne 0x1000012e6
mov dword [0x100003704], 1
call qword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp qword [0x1000036f8], 0
mov dword [0x10000370c], eax
je 0x1000012dd
call fcn.10000129c
xor ecx, ecx
call qword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_ExitProcess]
inc dword [0x100003714]
add rsp, 0x28
ret

Function at 0x1000014b0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r12
push r13
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor r12d, r12d
xor eax, eax
lock cmpxchg qword [0x100003740], rdi
je 0x1000014fe
cmp rax, rdi
jne 0x1000014f1
mov edi, 1
mov r12d, edi
jmp 0x100001503
mov ecx, 0x3e8
call qword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1000014d5
mov edi, 1
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x100001519
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x100001576
mov eax, dword [0x100003738]
test eax, eax
jne 0x100001570
mov dword [0x100003738], edi
lea r13, [0x1000011a0]
lea rsi, [0x100001188]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], eax
cmp rsi, r13
jae 0x100001562
test eax, eax
jne 0x100001562
mov rcx, qword [rsi]
test rcx, rcx
je 0x100001557
call rcx
mov dword [rsp + 0x20], eax
add rsi, 8
mov qword [rsp + 0x28], rsi
jmp 0x100001540
test eax, eax
je 0x100001576
mov eax, 0xff
jmp 0x100001648
mov dword [0x100003164], edi
mov eax, dword [0x100003738]
cmp eax, edi
jne 0x10000159d
lea rdx, [0x100001180]
lea rcx, [0x100001170]
call sub.msvcrt.dll__initterm
mov dword [0x100003738], 2
test r12d, r12d
jne 0x1000015ab
xor eax, eax
xchg qword [0x100003740], rax
cmp qword [0x100003748], 0
je 0x1000015d4
lea rcx, [0x100003748]
call fcn.10000189c
test eax, eax
je 0x1000015d4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100003748]
mov r8, qword [0x100003148]
mov rdx, qword [0x100003150]
mov ecx, dword [0x100003140]
call fcn.100001440
mov dword [0x100003160], eax
cmp dword [0x100003144], 0
jne 0x100001604
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100003164], 0
jne 0x100001619
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100003160]
jmp 0x100001648
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
add rsp, 0x30
pop r13
ret
sub rsp, 0x28
call fcn.100139000
add rsp, 0x28
jmp 0x1000014b0

Function at 0x100001908
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100001955
cmp rcx, 0xffffffffffffffff
je 0x100001955
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x10000194d
cmp dword [rcx + 0x3c], edx
jl 0x10000194d
cmp dword [rcx + 0x3c], 0x10000000
jae 0x10000194d
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 0x100001955
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140c17058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c171df
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 0x140c17089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c1706f
add dl, dl
jne 0x140c17096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c170f6
xor eax, eax
add dl, dl
jne 0x140c170a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c171ad
add dl, dl
jne 0x140c170b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c170c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c170d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c170dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c170ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c1707e
mov eax, 1
add dl, dl
jne 0x140c17106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c17113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c170fb
sub eax, ebx
mov ebx, 1
jne 0x140c1714c
mov ecx, 1
add dl, dl
jne 0x140c1712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c1713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c17123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c1707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c17168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c17175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c1715d
cmp eax, 0x7d00
jae 0x140c1719b
cmp eax, 0x500
jb 0x140c17196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c1707e
cmp eax, 0x7f
ja 0x140c1719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c1707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c171d2
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 0x140c1707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140025d10
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x140025e0c
mov qword [rsp + 0x10], rbx
xchg rbp, r12
mov qword [rsp + 0x18], r12
xchg rbp, r12
nop
mov qword [rsp - 8], rsi
sub rsp, 8
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
xchg rbx, r14
mov r14, rdx
xchg rbx, r14
xchg rcx, rbx
mov rdi, rbx
xchg rcx, rbx
mov esi, r8d
sub rdi, rdx
xchg rcx, rbp
mov rcx, rbp
xchg rcx, rbp
add rdi, 0x2cdd2799
sub rdi, 0x2cdd26a9
dec rsi
shr rsi, 2
shr rsi, 1
shr rsi, 1
inc rsi
nop dword [rax]
movups xmm0, xmmword [rbx]
xchg rdx, rbp
mov rbp, rdx
xchg rdx, rbp
mov rcx, rbx
call fcn.140026330
mov ecx, 0x10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140025da4
nop
sub rdi, 0x191ae84b
add rdi, 0x191ae83b
xchg r15, rbp
movups xmmword [r15 + 0xf0], xmm0
xchg r15, rbp
sub rsi, 1
jne 0x140025d7e
xchg r8, rdi
mov r8, qword [rsp + 0x30]
xchg r8, rdi
xchg rbx, rcx
mov rcx, qword [rsp + 0x38]
xchg rcx, rbx
xchg rbp, r13
mov r13, qword [rsp + 0x40]
xchg r13, rbp
add rsp, 0x20
nop
mov rsi, qword [rsp]
add rsp, 8
ret

Function at 0x140025e10
Capabilities:
Encode data using xor

Disassembly:
xchg r8, rbx
mov qword [rsp + 8], r8
xchg r8, rbx
xchg r9, rbp
mov qword [rsp + 0x10], r9
xchg rbp, r9
xchg rsi, rbx
mov qword [rsp + 0x18], rbx
xchg rbx, rsi
push rdi
sub rsp, 0x20
mov edi, r8d
xchg rbx, rbp
mov rbp, rdx
xchg rbx, rbp
lea r9, [rcx + 0xf0]
xchg r10, rsi
mov r10, rcx
xchg rsi, r10
test r8d, r8d
je 0x140025ecf
dec rdi
shr rdi, 1
shr rdi, 2
shr rdi, 1
inc rdi
nop dword [rax]
nop word [rax + rax]
xchg rdi, rax
mov rdi, rbx
xchg rdi, rax
sub r9, rbx
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r9 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140025e8c
xchg rdx, r14
mov r14, rsi
xchg rdx, r14
mov rcx, rbx
call fcn.140025f70
xchg r15, rbx
mov r9, r15
xchg r15, rbx
neg rbx
add rbx, 0xfffffffffffffff0
neg rbx
sub rdi, 1
jne 0x140025e78
xchg r15, r9
movups xmm0, xmmword [r15]
xchg r9, r15
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
xchg r9, rsi
movups xmmword [r9 + 0xf0], xmm0
xchg rsi, r9
xchg rsi, rcx
mov rcx, qword [rsp + 0x40]
xchg rcx, rsi
add rsp, 0x20
nop
add rsp, 8
xchg qword [rsp - 8], rdi
ret