joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400022c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000aa60]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400022e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400022e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400022e0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000233d
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 0x140002334
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400022e0
add rax, 0x28
cmp rax, r9
jne 0x140002320
xor eax, eax
ret

Function at 0x140002340
Capabilities:
Parse pe header

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

Function at 0x140002400
Capabilities:
Parse pe header

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

Function at 0x1400080c0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
xor edi, edi
mov rsi, rcx
mov rbx, rdx
mov rbp, r8
test r8, r8
je 0x140008121
nop dword [rax + rax]
mov rdx, rsi
mov rcx, rbx
movdqu xmm0, xmmword [rbx]
call fcn.140008860
xor eax, eax
nop dword [rax]
movzx edx, byte [rsi + rax + 0xb0]
xor byte [rbx + rax], dl
add rax, 1
cmp rax, 0x10
jne 0x1400080f8
add rdi, 0x10
movups xmmword [rsi + 0xb0], xmm0
add rbx, 0x10
cmp rdi, rbp
jb 0x1400080e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140008570
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
push rbx
mov rax, rcx
lea r10, [rdx + 0x10]
mov r8, rcx
movzx r9d, byte [rdx]
add rdx, 4
add r8, 4
mov byte [r8 - 4], r9b
movzx r9d, byte [rdx - 3]
mov byte [r8 - 3], r9b
movzx r9d, byte [rdx - 2]
mov byte [r8 - 2], r9b
movzx r9d, byte [rdx - 1]
mov byte [r8 - 1], r9b
cmp r10, rdx
jne 0x14000857c
movzx r10d, byte [rcx + 0xf]
movzx r9d, byte [rcx + 0xe]
lea r11, str.cw
lea rsi, [0x14000abf0]
movzx r8d, byte [rcx + 0xd]
movzx edx, byte [rcx + 0xc]
mov ecx, 4
nop word [rax + rax]
test cl, 3
jne 0x14000860a
movzx r8d, r8b
movzx r9d, r9b
movzx r10d, r10b
movzx edx, dl
movzx ebx, byte [r11 + r8]
movzx r8d, byte [r11 + r9]
movzx r9d, byte [r11 + r10]
movzx r10d, byte [r11 + rdx]
mov edx, ecx
shr edx, 2
xor bl, byte [rsi + rdx]
mov edx, ebx
xor dl, byte [rax]
xor r8b, byte [rax + 1]
add ecx, 1
add rax, 4
xor r9b, byte [rax - 2]
xor r10b, byte [rax - 1]
mov byte [rax + 0xc], dl
mov byte [rax + 0xd], r8b
mov byte [rax + 0xe], r9b
mov byte [rax + 0xf], r10b
cmp ecx, 0x2c
jne 0x1400085d8
pop rbx
pop rsi
ret
Function at 0x140008640
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
xor r10d, r10d
lea rsi, [rcx + 4]
mov r8, rcx
mov rdi, rdx
mov r9, rsi
lea rax, [r9 - 4]
lea rdx, [r10 + rdi]
movzx ecx, byte [rdx]
xor byte [rax], cl
add rax, 1
add rdx, 1
cmp rax, r9
jne 0x140008664
add r10, 4
lea r9, [rax + 4]
cmp r10, 0x10
jne 0x14000865c
lea r11, [rdi + 0x10]
lea rbp, [rdi + 0xa0]
lea rbx, [r8 + 0x10]
lea r10, [r8 + 0x14]
lea r9, str.cw
nop
mov rcx, rbx
lea rax, [rcx - 0x10]
movzx edx, byte [rax]
add rax, 4
movzx edx, byte [r9 + rdx]
mov byte [rax - 4], dl
cmp rax, rcx
jne 0x1400086a7
lea rcx, [rax + 1]
cmp r10, rcx
jne 0x1400086a3
movzx edx, byte [r8 + 2]
movzx eax, byte [r8 + 0xd]
movzx ecx, byte [r8 + 0xa]
movzx r12d, byte [r8 + 1]
mov ah, dl
movzx edx, byte [r8 + 5]
movzx r15d, byte [r8 + 9]
mov word [r8 + 9], ax
movzx eax, r12b
mov dh, cl
movzx ecx, byte [r8 + 0xe]
mov word [r8 + 1], dx
movzx edx, byte [r8 + 6]
mov ah, dl
movzx edx, r15b
mov dh, cl
mov word [r8 + 0xd], ax
movzx eax, byte [r8 + 3]
mov word [r8 + 5], dx
movzx edx, byte [r8 + 0xf]
mov byte [r8 + 3], dl
movzx edx, byte [r8 + 0xb]
mov byte [r8 + 0xf], dl
movzx edx, byte [r8 + 7]
mov byte [r8 + 7], al
mov byte [r8 + 0xb], dl
cmp r11, rbp
je 0x140008823
mov rax, r8
movzx edx, byte [rax]
movzx r14d, byte [rax + 1]
add rax, 4
movzx r13d, byte [rax - 2]
xor r13b, byte [rax - 1]
xor r14d, edx
mov r15d, edx
xor dl, byte [rax - 1]
mov ecx, r14d
mov r12d, r14d
add r14d, r14d
shr cl, 7
xor r12d, r13d
lea ecx, [rcx + rcx*2]
xor r15d, r12d
lea ecx, [rcx + rcx*8]
xor ecx, r15d
movzx r15d, byte [rax - 3]
xor r14d, ecx
mov byte [rax - 4], r14b
movzx r14d, byte [rax - 3]
xor r15d, r12d
xor r14b, byte [rax - 2]
mov ecx, r14d
add r14d, r14d
shr cl, 7
lea ecx, [rcx + rcx*2]
lea ecx, [rcx + rcx*8]
xor ecx, r15d
xor r14d, ecx
mov ecx, r13d
add r13d, r13d
mov byte [rax - 3], r14b
shr cl, 7
movzx r14d, byte [rax - 2]
lea ecx, [rcx + rcx*2]
xor r14d, r12d
lea ecx, [rcx + rcx*8]
xor r12b, byte [rax - 1]
xor ecx, r14d
xor r13d, ecx
mov ecx, edx
add edx, edx
shr cl, 7
mov byte [rax - 2], r13b
lea ecx, [rcx + rcx*2]
lea ecx, [rcx + rcx*8]
xor ecx, r12d
xor edx, ecx
mov byte [rax - 1], dl
cmp rax, rbx
jne 0x140008740
mov r12, rsi
mov r13, r11
lea rax, [r12 - 4]
mov rdx, r13
movzx ecx, byte [rdx]
xor byte [rax], cl
add rax, 1
add rdx, 1
cmp rax, r12
jne 0x1400087fb
lea r12, [rax + 4]
add r13, 4
cmp r10, r12
jne 0x1400087f3
add r11, 0x10
jmp 0x1400086a0
add rdi, 0xb0
lea rax, [rsi - 4]
mov rdx, r11
movzx ecx, byte [rdx]
xor byte [rax], cl
add rax, 1
add rdx, 1
cmp rsi, rax
jne 0x140008831
add r11, 4
add rsi, 4
cmp rdi, r11
jne 0x14000882a
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140008bb0
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push rdi
push rbx
sub rsp, 0xe8
call fcn.1400015f0
lea rdi, [rsp + 0x78]
xor eax, eax
pxor xmm0, xmm0
mov ecx, 0xc
lea rdx, [rsp + 0x70]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x74], 0
mov qword [rsp + 0xd0], 0
rep stosq qword [rdi], rax
lea rax, [rsp + 0x50]
movups xmmword [rsp + 0x50], xmm0
lea rcx, str.C:WindowsSystem32_notepad.exe
mov qword [rsp + 0x40], rdx
xor edx, edx
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0x68
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [rsp + 0x60]
lea rcx, str.____PID:__d__Created_target_process_n
call fcn.1400082d0
call fcn.140008320
call fcn.140007e80
mov rcx, qword [rsp + 0x50]
mov edx, 0x1f4
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword [0x14000abd0]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rax]
mov rax, qword [0x14000abe0]
mov r8, qword [rax]
call fcn.140007c60
mov rcx, qword [rsp + 0x58]
mov rdx, rax
mov rbx, rax
call fcn.140007f50
mov rdx, qword [rsp + 0x58]
mov r8, rbx
lea rcx, str.____0x_x__:__0x_p__APC_queued....resuming_thread_n_n
call fcn.1400082d0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add rsp, 0xe8
pop rbx
pop rdi
ret
Function at 0x140001000
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x140004040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rdx
mov edi, ecx
lea rdx, [rsp + 0x20]
mov r8d, 2
lea rcx, str.VSDBG_PauseOnStartup
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor ebp, ebp
cmp eax, 1
jne 0x140001066
cmp word [rsp + 0x20], 0x31
jne 0x140001066
cmp word [rsp + 0x22], bp
jne 0x140001066
jmp 0x14000105b
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140001050
int3
call qword [sym.imp.vsdbg.dll_Initialize]
mov ebx, eax
test eax, eax
js 0x1400010a2
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
mov ecx, edi
call qword [sym.imp.vsdbg.dll_InitializeSession]
mov ebx, eax
test eax, eax
js 0x1400010a2
cmp eax, 1
je 0x14000109a
call qword [sym.imp.vsdbg.dll_RunMainLoop]
mov ebx, eax
test eax, eax
js 0x1400010a2
call qword [sym.imp.vsdbg.dll_ShutdownSession]
mov ebx, eax
call qword [sym.imp.vsdbg.dll_Shutdown]
sar ebx, 0x1f
mov eax, ebx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400010e0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x140001a64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001aae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001aae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001aae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001aae
cmp dword [rcx + 0x84], 0xe
jbe 0x140001aae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ab0
xor al, al
add rsp, 0x28
ret
Function at 0x140008920
Capabilities:
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov qword [rsp], rax
mov dword [rsp + 8], 0xffffffff
mov dword [rsp + 0xc], 0
jmp 0x140008952
mov eax, dword [rsp + 0xc]
inc eax
mov dword [rsp + 0xc], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0xc], eax
jae 0x1400089fa
mov eax, dword [rsp + 0xc]
mov rcx, qword [rsp]
movzx eax, byte [rcx + rax]
movzx ecx, byte [rsp + 8]
xor eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 8]
shr eax, 8
mov dword [rsp + 8], eax
mov dword [rsp + 0x14], 0
jmp 0x140008996
mov eax, dword [rsp + 0x14]
inc eax
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 8
jge 0x1400089e5
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400089b2
mov dword [rsp + 0x1c], 1
jmp 0x1400089ba
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 0x18], al
mov eax, dword [rsp + 0x10]
shr eax, 1
mov dword [rsp + 0x10], eax
movzx eax, byte [rsp + 0x18]
test eax, eax
je 0x1400089e3
mov eax, dword [rsp + 0x10]
xor eax, 0xedb88320
mov dword [rsp + 0x10], eax
jmp 0x14000898c
mov eax, dword [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 8], eax
jmp 0x140008948
mov eax, dword [rsp + 8]
not eax
add rsp, 0x28
ret
Function at 0x1403eef30
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1403eef3d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1403eef4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1403eef35
lea eax, [rcx + 1]
jmp 0x1403eef5b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1403eef6e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1403eef54
sub eax, 3
jb 0x1403eef8e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1403eefdd
sar eax, 1
movsxd rbp, eax
jb 0x1403eefc4
jmp 0x1403eef9c
add ebx, ebx
jne 0x1403eef9a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1403eefc4
inc ecx
add ebx, ebx
jne 0x1403eefaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1403eefc4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1403eefbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1403eefac
add ecx, 2
jmp 0x1403eefc9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1403eeef2
jmp 0x1403eef3d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x112000
mov dl, 0x22
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1403ef029
cmp rsi, rcx
jae 0x1403ef031
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1403ef010
cmp al, 0x8f
ja 0x1403ef010
cmp byte [rsi - 2], 0xf
je 0x1403ef016
sub al, 0xe8
cmp al, 1
ja 0x1403eeffa
cmp rsi, rcx
jae 0x1403ef031
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1403ef000
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1403ef031
lodsb al, byte [rsi]
jmp 0x1403ef010
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x3eb000]
mov eax, dword [rdi]
or eax, eax
je 0x1403ef09a
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x3ef1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1403ef03e
jns 0x1403ef073
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1403ef07d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1403ef094
mov qword [rbx], rax
add rbx, 8
jmp 0x1403ef05e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1403ef0de
cmp al, 0xef
ja 0x1403ef0c6
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1403ef0a6
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1403ef0b5
mov eax, dword [rdi]
add rdi, 4
jmp 0x1403ef0b5
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x247]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1403ef132
sub rsp, 0xffffffffffffff80
jmp 0x14008ca64
Function at 0x14001943c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400306f8], rbx
je 0x1400194a3
cmp rax, rbx
jne 0x140019496
mov ebx, 1
mov esi, ebx
jmp 0x1400194a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14001947b
mov ebx, 1
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x1400194c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14001952c
mov eax, dword [0x140030700]
test eax, eax
jne 0x140019521
mov dword [0x140030700], ebx
lea r15, [0x14001dcb8]
lea rdi, [0x14001dca0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x140019513
test eax, eax
jne 0x140019517
cmp qword [rdi], r14
je 0x140019508
mov rax, qword [rdi]
mov rcx, qword [0x14001dc18]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x1400194ea
test eax, eax
je 0x140019527
mov eax, 0xff
jmp 0x140019682
mov dword [0x14002ffb4], ebx
mov edi, 0x1f
mov eax, dword [0x140030700]
cmp eax, ebx
jne 0x140019553
lea rdx, [0x14001dc98]
lea rcx, [0x14001dc20]
call sub.msvcrt.dll__initterm
mov dword [0x140030700], 2
test esi, esi
jne 0x140019561
mov rax, r14
xchg qword [0x1400306f8], rax
cmp qword [0x140030718], r14
je 0x140019594
lea rcx, [0x140030718]
call fcn.140019a50
test eax, eax
je 0x140019594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140030718]
mov r9, qword [0x14001dc18]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400195ad
mov eax, 0xff
jmp 0x140019682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140019633
test ax, ax
je 0x1400195c8
test edx, edx
jne 0x140019633
sub ax, bx
cmp ax, di
ja 0x1400195de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400195c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140003e4c
mov dword [0x14002ffb0], eax
cmp dword [0x14002ffd0], r14d
jne 0x14001961c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14002ffb4], r14d
jne 0x140019631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14002ffb0]
jmp 0x140019682
cmp ax, 0x22
jne 0x140019647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400195b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401ae000
add rsp, 0x28
jmp 0x14001943c
Function at 0x140888058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408881df
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 0x140888089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088806f
add dl, dl
jne 0x140888096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408880f6
xor eax, eax
add dl, dl
jne 0x1408880a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408881ad
add dl, dl
jne 0x1408880b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408880c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408880d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408880dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408880ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14088807e
mov eax, 1
add dl, dl
jne 0x140888106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140888113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408880fb
sub eax, ebx
mov ebx, 1
jne 0x14088814c
mov ecx, 1
add dl, dl
jne 0x14088812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14088813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140888123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140888168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140888175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088815d
cmp eax, 0x7d00
jae 0x14088819b
cmp eax, 0x500
jb 0x140888196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088807e
cmp eax, 0x7f
ja 0x14088819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408881d2
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 0x14088807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x417f80
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x41810b
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00949288]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x417fe5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x417ff4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x418013
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x418023
cmp rbx, 0x1000
jae 0x417feb
jmp 0x41808d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x418035
xor edx, edx
jmp 0x418084
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call sym.runtime.stdcall3.abi0
xorps xmm15, xmm15
mov r14, qword [0x00949288]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x418019
jmp 0x418008
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00949288]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call sym.runtime.printlock
lea rax, [0x006aa5d0]
mov ebx, 0x18
nop dword [rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x006aae10]
mov ebx, 0x19
nop dword [rax + rax]
call sym.runtime.printstring
mov rax, qword [rsp + 0x30]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x006aea48]
mov ebx, 0x21
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.runtime.sysUnusedOS
Function at 0x418140
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x418366
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00949288]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 0x60]
mov rcx, rax
cmp qword [rsp + 0x28], rax
je 0x4181b3
mov rbx, qword [rsp + 0x68]
mov rax, rbx
jmp 0x4181c2
add rsp, 0x50
pop rbp
ret
sub rdx, rbx
add rcx, rbx
mov rbx, rdx
test rbx, rbx
jbe 0x4181e5
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rcx
mov rdx, rbx
jmp 0x4181f5
cmp rbx, 0x1000
jae 0x4181b9
nop
jmp 0x418278
add rsp, 0x50
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
nop word [rax + rax]
cmp rbx, 0x1000
jae 0x41820d
xor esi, esi
jmp 0x41826a
mov rax, qword [sym.imp.kernel32.dll_VirtualAlloc]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x1000
mov qword [rsp + 0x20], 4
call sym.runtime.stdcall4.abi0
xorps xmm15, xmm15
mov r14, qword [0x00949288]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x28], 0
sete al
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov esi, eax
mov rax, qword [rsp + 0x68]
test sil, sil
jne 0x4181eb
jmp 0x4181d6
call sym.runtime.getlasterror.abi0
xorps xmm15, xmm15
mov r14, qword [0x00949288]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov dword [rsp + 0x34], eax
cmp eax, 8
jne 0x418300
nop dword [rax + rax]
call sym.runtime.printlock
lea rax, [0x006aae29]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x68]
nop dword [rax + rax]
call sym.runtime.printuint
lea rax, [0x006aae10]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
call sym.runtime.printuint
nop
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x006a5a2e]
mov ebx, 0xd
call sym.runtime.throw
nop dword [rax + rax]
cmp eax, 0x5af
je 0x4182a0
call sym.runtime.printlock
lea rax, [0x006aae29]
mov ebx, 0x19
call sym.runtime.printstring
mov rax, qword [rsp + 0x38]
call sym.runtime.printuint
lea rax, [0x006aae10]
mov ebx, 0x19
call sym.runtime.printstring
mov eax, dword [rsp + 0x34]
nop dword [rax]
call sym.runtime.printuint
call sym.runtime.printnl
call sym.runtime.printunlock
lea rax, [0x006adc5f]
mov ebx, 0x1f
nop dword [rax + rax]
call sym.runtime.throw
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
nop
jmp sym.runtime.sysUsedOS