joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009038
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r9, rcx
xor ecx, ecx
movabs r8, 0xcbf29ce484222325
mov rsi, rdx
movzx eax, byte [rbx + rcx + 0x10]
movabs rdx, 0x100000001b3
xor r8, rax
inc rcx
imul r8, rdx
cmp rcx, 4
jb 0x14000905c
mov rdx, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x18]
and rdx, r8
add rdx, rdx
cmp qword [rcx + rdx*8 + 8], rbx
jne 0x1400090b3
cmp qword [rcx + rdx*8], rbx
jne 0x1400090a8
mov rax, qword [r9 + 8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [r9 + 0x18]
mov rax, qword [r9 + 8]
jmp 0x1400090ac
mov rax, qword [rbx + 8]
mov qword [rcx + rdx*8 + 8], rax
jmp 0x1400090c0
cmp qword [rcx + rdx*8], rbx
jne 0x1400090c0
mov rax, qword [rbx]
mov qword [rcx + rdx*8], rax
mov rax, qword [rbx + 8]
mov rdi, qword [rbx]
mov qword [rax], rdi
mov rcx, qword [rbx]
mov rax, qword [rbx + 8]
mov qword [rcx + 8], rax
dec qword [r9 + 0x10]
mov rdx, qword [rbx + 0x30]
cmp rdx, 8
jb 0x1400090f5
mov rcx, qword [rbx + 0x18]
inc rdx
mov r8d, 2
call fcn.1400020a4
mov edx, 1
mov rcx, rbx
lea r8d, [rdx + 0x37]
call fcn.1400020a4
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov qword [rsi], rdi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000b51c
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_1.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400148a0], eax
call fcn.14000b2a4
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_UnhandledExceptionFilter]
cmp dword [0x1400148a0], 0
jne case.default.0x14000b572
mov ecx, 1
call fcn.14000b2a4
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_TerminateProcess]
jge 0x140020a11
int 0xa5
or byte [rbx + rcx*2 + 0x44ebcff8], ch
pushfq
in al, dx
hlt
in al, dx
pop rbp
imul edi, dword [rsi + 0x78], 0xffffffca
xor ch, bl
invalid
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000a510]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000a520]
mov dword [rax], 1
mov rax, qword [0x14000a530]
mov dword [rax], 1
mov rax, qword [0x14000a4d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14000a500]
mov dword [0x14000d00c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x14000a5e0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x14000a5c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000a450]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x14000a560]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x14000a570]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x14000d008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x14000a4c0]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x14000a550]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x14000d028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x14000d020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x14000d020], rbp
call dbg.__main
mov rax, qword [0x14000a4e0]
mov r8, qword [0x14000d018]
mov ecx, dword [0x14000d028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x14000d020]
call sym.main
mov ecx, dword [0x14000d00c]
mov dword [0x14000d010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x14000d008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x14000a570]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x14000a590]
mov rcx, qword [0x14000a580]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x14000d010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x14000a5b0]
mov rcx, qword [0x14000a5a0]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop

Function at 0x140001b50
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140001bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14000d094]
mov rbx, rcx
test esi, esi
jle 0x140001cf0
mov rax, qword [0x14000d098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001bf0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001d12
mov rax, qword [0x14000d098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14000d098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ca0
add dword [0x14000d094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14000d098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140001c18
mov rax, qword [0x14000d098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002280
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14000d100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14000d0e0]
test rbx, rbx
je 0x1400022dc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400022d3
test rsi, rsi
je 0x1400022d3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022b8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400024f0
Capabilities:
Parse pe header

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

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000256d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002564
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000256f
add rax, 0x28
cmp rax, r9
jne 0x140002550
xor eax, eax
ret

Function at 0x140002570
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002600
mov rdx, qword [0x14000a4d0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400025ee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400025ee
cmp word [rax + 0x18], 0x20b
jne 0x1400025ee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002600
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400025d9
add rbx, 0x28
cmp rbx, rdi
je 0x140002600
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400025d0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x14000a4d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002630
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002638
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002630
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000268d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002684
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002630
add rax, 0x28
cmp rax, r9
jne 0x140002670
xor eax, eax
ret

Function at 0x140002690
Capabilities:
Parse pe header

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

Function at 0x1400026d0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14000a4d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400026f0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400026f8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400026f0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002740
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002737
test rcx, rcx
je 0x1400026f0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002728
xor eax, eax
ret
Function at 0x140002750
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x14000a4d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400027b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400027b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400027b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400027b0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002804
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002810
add rdx, 0x28
cmp r9, rdx
jne 0x1400027f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14000a4d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002842
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002850
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002842
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002842
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002842
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400028a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400028b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002890
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400028c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400028d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400028ae
test ecx, ecx
jg 0x1400028c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002090
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xorps xmm0, xmm0
mov r14, rdx
mov rsi, rcx
movups xmmword [rsp + 0x50], xmm0
test rcx, rcx
je 0x14000218b
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000218b
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000218b
movzx ecx, word [rax + rcx + 0x14]
mov edx, 0xf0
cmp cx, dx
jne 0x140002107
lea rbx, [rsi + 0x18]
add rbx, rax
jmp 0x140002116
mov eax, 0xe0
cmp cx, ax
jne 0x14000218b
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14000218b
mov rbx, qword [rbx + 0x70]
mov ebp, ebx
mov qword [rsp + 0x20], rbx
add rbp, rsi
je 0x14000218b
mov r13d, dword [rbp + 0x1c]
add r13, rsi
je 0x14000218b
mov r12d, dword [rbp + 0x20]
add r12, rsi
je 0x14000218b
mov eax, dword [rbp + 0x24]
add rax, rsi
mov qword [rsp + 0x70], rax
je 0x14000218b
cmp r14, 0x10000
jae 0x14000215e
sub r14w, word [rbp + 0x10]
movzx eax, r14w
jmp 0x1400021c1
xor edi, edi
cmp dword [rbp + 0x18], edi
jbe 0x14000218b
nop word [rax + rax]
mov edx, dword [r12 + rdi*4]
mov rcx, r14
add rdx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x1400021b8
inc edi
cmp edi, dword [rbp + 0x18]
jb 0x140002170
xor eax, eax
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400028c0
mov rbx, qword [rsp + 0x300]
add rsp, 0x2b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rsp + 0x70]
movzx eax, word [rax + rdi*2]
mov edx, dword [r13 + rax*4]
test edx, edx
je 0x14000218b
cmp edx, ebx
jb 0x1400021dc
mov ecx, dword [rsp + 0x24]
add ecx, ebx
cmp edx, ecx
ja 0x1400021dc
mov cl, 1
jmp 0x1400021de
xor cl, cl
mov ebx, edx
add rbx, rsi
test cl, cl
je 0x1400022c4
xor edx, edx
lea rcx, [rsp + 0x190]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rcx, [rsp + 0x190]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x70], 0
lea rdx, [0x140004538]
lea rcx, [rsp + 0x190]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok_s]
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x104
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r8, rbx
lea rcx, [rsp + 0x80]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea r8, str..dll
mov edx, 0x104
lea rcx, [rsp + 0x80]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea rcx, [rsp + 0x80]
call fcn.1400022d0
mov rbx, rax
test rax, rax
je 0x14000218b
mov rdx, qword [rsp + 0x70]
cmp byte [rdx], 0x23
jne 0x1400022b9
lea rcx, [rdx + 1]
mov qword [rsp + 0x70], rcx
mov rcx, rdx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd rdx, eax
mov rcx, rbx
call fcn.140002090
mov rbx, rax
mov rax, rbx
jmp 0x14000218d
Function at 0x1400024c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9d, 0x40
mov dword [rsp + 0x30], 0
mov rsi, r8
lea rax, [rsp + 0x30]
mov rdi, rdx
mov qword [rsp + 0x20], rax
mov rbx, rcx
lea r8d, [r9 - 0x3b]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140002550
mov r9d, 5
mov qword [rsp + 0x20], 0
mov r8, rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140002550
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
mov r8d, 5
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
setne al
jmp 0x140002552
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400028c0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140002570
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, rcx
mov rsi, r9
mov rcx, 0xffffffffffffffff
mov r13, r8
mov r9, rcx
mov r12, rdx
inc r9
cmp byte [rsi + r9], 0
jne 0x1400025a5
inc r9
movabs rax, 0xaaaaaaaaaaaaaaab
mul r9
mov eax, 4
mov rdi, rdx
shr rdi, 1
mul rdi
mov rbx, rax
cmovo rbx, rcx
mov rcx, rbx
call fcn.140002bc4
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r14, rax
call sub.VCRUNTIME140.dll_memset
mov r8, rdi
mov rdx, r14
mov rcx, rsi
call fcn.1400027c0
test al, al
jne 0x14000260d
mov rcx, r14
call fcn.14000291c
xor eax, eax
jmp 0x140002788
xorps xmm0, xmm0
mov qword [rsp + 0xc0], rbp
xor ebp, ebp
xor esi, esi
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
test r13, r13
je 0x140002775
nop dword [rax]
nop dword [rax + rax]
lea rdx, [r12 + rbp]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140002767
cmp dword [rsp + 0x50], 0x1000
jne 0x140002767
cmp dword [rsp + 0x54], 1
je 0x140002767
mov r8, qword [rsp + 0x48]
lea rax, [rsp + 0x60]
mov rdx, qword [rsp + 0x30]
mov r9d, 0x40
mov rcx, r15
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x60], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x140002767
mov rcx, qword [rsp + 0x48]
call fcn.140002bc4
mov r9, qword [rsp + 0x48]
mov r8, rax
mov rdx, qword [rsp + 0x30]
mov rcx, r15
mov rbx, rax
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x14000275f
mov r9d, dword [rsp + 0x60]
lea rax, [rsp + 0x60]
mov r8, qword [rsp + 0x48]
mov rcx, r15
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000275f
mov r10, qword [rsp + 0x48]
sub r10, rdi
je 0x14000275f
xor ecx, ecx
xor eax, eax
xor r9d, r9d
test rdi, rdi
je 0x14000274a
nop dword [rax]
lea r8, [rbx + rcx]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, byte [r8 + rax]
mov edx, dword [r14 + rax*4]
cmp ecx, edx
je 0x140002742
cmp edx, 0xffffffff
jne 0x1400027a5
inc rax
cmp rax, rdi
jb 0x140002730
lea rax, [r9 + rbx]
test rax, rax
je 0x14000275f
mov rsi, r12
sub rsi, rbx
add rsi, rax
add rsi, rbp
mov rcx, rbx
call fcn.14000291c
add rbp, qword [rsp + 0x48]
cmp rbp, r13
jb 0x140002640
mov rcx, r14
call fcn.14000291c
mov rbp, qword [rsp + 0xc0]
mov rax, rsi
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400028c0
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
inc r9
mov rcx, r9
cmp r9, r10
jae 0x14000275f
xor eax, eax
jmp 0x140002720
Function at 0x140003248
Capabilities:
Parse pe header

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

Function at 0x140897058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408971df
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 0x140897089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14089706f
add dl, dl
jne 0x140897096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408970f6
xor eax, eax
add dl, dl
jne 0x1408970a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408971ad
add dl, dl
jne 0x1408970b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408970c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408970d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408970dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408970ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14089707e
mov eax, 1
add dl, dl
jne 0x140897106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140897113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408970fb
sub eax, ebx
mov ebx, 1
jne 0x14089714c
mov ecx, 1
add dl, dl
jne 0x14089712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14089713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140897123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140897168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140897175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14089715d
cmp eax, 0x7d00
jae 0x14089719b
cmp eax, 0x500
jb 0x140897196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089707e
cmp eax, 0x7f
ja 0x14089719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14089707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408971d2
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 0x14089707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20