joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae458
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f66c0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400ae4af
cmp word [rdx], r13w
jne 0x1400ae4af
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400ae4b4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400ae5d9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400ae5fa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400ae4ed
mov rdx, r9
mov word [rbx], cx
jmp 0x1400ae514
cmp r9, r8
jae 0x1400ae524
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400ae4ce
jmp 0x1400ae5d9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400ae5ce
cmp dword [rsp + 0x80], esi
je 0x1400ae5ce
lea r8, [0x1400f66c0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400ae5a6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400ae576
mov word [rbx], r13w
jmp 0x1400ae5d6
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400ae583
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400ae5d6
cmp word [rsp + 0x70], r13w
jne 0x1400ae5b3
cmp rbx, r14
je 0x1400ae570
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ac9d0
cmp word [rsp + 0x70], r13w
je 0x1400ae5d9
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f66c0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400ae5d3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400ae5d9
Function at 0x1400b42f0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400b4306
mov al, 1
jmp 0x1400b4366
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400b4317
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400b4364
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400b4d04
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b4364
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400b4364
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400b4364
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400b4366
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400b4e14
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400ac9d0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400ac9d0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b4f64
cmp rax, 0xffffffffffffffff
je 0x1400b4f64
xor edi, edi
test rbp, rbp
jle 0x1400b4f0f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400b0dd0
mov rbx, rax
test rax, rax
jne 0x1400b4e9c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b4f05
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ae090
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400af810
cmp eax, 0xffffffff
je 0x1400b4ee5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b4eac
mov edx, r15d
mov ecx, r14d
call fcn.1400ae090
jmp 0x1400b4f05
cmp byte [rsi + 0x38], dil
je 0x1400b4efc
cmp dword [rsi + 0x34], 5
jne 0x1400b4efc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400b4f05
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400b0e48
jmp 0x1400b4f78
jns 0x1400b4f78
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400ac9d0
cmp rax, 0xffffffffffffffff
jne 0x1400b4f30
cmp byte [rsi + 0x30], dil
je 0x1400b4f78
mov edi, dword [rsi + 0x2c]
jmp 0x1400b4f78
mov ecx, r14d
call fcn.1400b4d04
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b4f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400b4f78
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b4f71
mov eax, dword [rsi + 0x2c]
jmp 0x1400b4f76
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400ac9d0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400b87f4
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 0x1400b8824
xor eax, eax
jmp 0x1400b88e7
mov rbp, rbx
cmp word [rax], si
je 0x1400b8849
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400b8830
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400b882c
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.1400b57b0
movsxd r14, eax
test eax, eax
jne 0x1400b8887
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400b881d
mov rcx, r14
call fcn.1400b1a2c
mov rdi, rax
test rax, rax
jne 0x1400b88a0
xor ecx, ecx
call fcn.1400b0e48
jmp 0x1400b887c
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.1400b57b0
test eax, eax
jne 0x1400b88d1
mov rcx, rdi
call fcn.1400b0e48
jmp 0x1400b88db
xor ecx, ecx
call fcn.1400b0e48
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 0x1400b8904
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400b898b
mov rsi, rbx
cmp word [rax], bp
je 0x1400b894a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b8934
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b8930
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b1a2c
mov rdi, rax
test rax, rax
je 0x1400b8978
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400c0050
mov rbp, rdi
xor ecx, ecx
call fcn.1400b0e48
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400ba08c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400ba0ac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a1b7c
or eax, 0xffffffff
jmp 0x1400ba0ae
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400bc9f8
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400ee700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400bca42
call fcn.1400a1be8
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400a1c08
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.14009ed70
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140096610
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400bca4d
lea eax, [rbx + 1]
jmp 0x1400bca2f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400bca2d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400bca2f
Function at 0x1400bde94
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400a1c28
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400bdf1e
cmp byte [rbp - 0x21], r15b
je 0x1400bdf19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400bdf54
call fcn.1400b10f0
test eax, eax
jne 0x1400bdf40
cmp byte [rbp - 0x21], r15b
je 0x1400bdf38
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400bdf54
cmp byte [rbp - 0x21], r15b
je 0x1400bdf51
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1400aa478
test eax, eax
jne 0x1400bdff4
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400a1c28
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400bdf93
cmp byte [rbp - 0x21], r15b
je 0x1400bdfc8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400bdfc8
call fcn.1400b10f0
test eax, eax
jne 0x1400bdfb4
cmp byte [rbp - 0x21], r15b
je 0x1400bdfad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400bdfc8
cmp byte [rbp - 0x21], r15b
je 0x1400bdfc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1400aa478
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400bdff4
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400bdff7
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400be005
mov rcx, rdi
call fcn.1400b0e48
cmp byte [rbp + 0x3f], r15b
je 0x1400be014
mov rcx, qword [rbp + 0x27]
call fcn.1400b0e48
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x10001be0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
lea rax, str.YWpQ7yIWiJmX0_N_j6_qUwsnkK_a8XCAX86y0pC0_XUFiRn
mov qword [rsp + 0x20], rax
lea rcx, str.4096
call fcn.1001d320
mov dword [rsp + 0x34], eax
lea rcx, str.8192
call fcn.1001d320
mov ecx, dword [rsp + 0x34]
or ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x58]
mov r9d, 0x40
mov r8d, eax
mov rdx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x10001c4f
xor eax, eax
jmp 0x10001cb5
mov dword [rsp + 0x30], 0
jmp 0x10001c64
mov eax, dword [rsp + 0x30]
add eax, 1
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], eax
jae 0x10001cb0
movsxd rax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x30]
cdq
mov ecx, 0x32
idiv ecx
mov eax, edx
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x38]
xor ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov byte [rdx + rcx], al
jmp 0x10001c59
mov rax, qword [rsp + 0x28]
add rsp, 0x48
ret

Function at 0x10001cc0
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x60
cmp qword [rsp + 0x80], 0
jne 0x10001ceb
xor al, al
jmp 0x10001dda
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 1
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10001d30
xor al, al
jmp 0x10001dda
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
add eax, 1
mov eax, eax
mov rcx, rax
call fcn.1001cf80
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x10001d5b
xor al, al
jmp 0x10001dda
mov rax, qword [rsp + 0x78]
mov eax, dword [rax]
add eax, 1
mov eax, eax
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x40], rax
mov rdi, qword [rsp + 0x40]
xor eax, eax
mov rcx, qword [rsp + 0x50]
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov r9, qword [rax]
mov r8d, 1
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x10001dd8
xor al, al
jmp 0x10001dda
mov al, 1
add rsp, 0x60
pop rdi
ret
Function at 0x100176b8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x10017712
call fcn.1000ff58
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x10017712
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x10017734
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.10017138
test rdi, rdi
mov esi, eax
je 0x10017732
test rbx, rbx
je 0x10017732
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x100203d7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x10092038]
jne 0x1001cf5a
rol rcx, 0x10
test cx, 0xffff
jne 0x1001cf56
repz ret
ror rcx, 0x10
jmp 0x10020330
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x10097960]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x10097a58]
mov qword [rsp + 0x58], rax
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 0x100203b5
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, [0x10097960]
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 0x100203d7
mov rax, qword [rsp + 0x88]
mov qword [0x10097a58], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x100979f8], rax
mov rax, qword [0x10097a58]
mov qword [0x100978d0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x100979e0], rax
mov dword [0x100978c0], 0xc0000409
mov dword [0x100978c4], 1
mov rax, qword [0x10092038]
mov qword [rsp + 0x68], rax
mov rax, qword [0x10092040]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x10097958], eax
mov ecx, 1
call fcn.1002caf0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x10081ad8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x10097958], 0
jne 0x1002045e
mov ecx, 1
call fcn.1002caf0
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 0x1002cb00
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.10021310
xor ebx, ebx
cmp qword [0x10098630], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x1002cc31
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x1002cb63
xor eax, eax
jmp 0x1002cd11
lea rdx, [0x10082460]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1002cb5c
mov rcx, rax
call fcn.100212a0
lea rdx, [0x10082450]
mov rcx, rbp
mov qword [0x10098630], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
lea rdx, [0x10082438]
mov rcx, rbp
mov qword [0x10098638], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
lea rcx, [rsp + 0x30]
mov qword [0x10098640], rax
call fcn.1001eb30
test eax, eax
je 0x1002cbe7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10020490
cmp dword [rsp + 0x30], 2
jne 0x1002cc31
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
test rax, rax
mov qword [0x10098650], rax
je 0x1002cc31
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.100212a0
mov qword [0x10098648], rax
mov rcx, qword [0x10098648]
cmp rcx, rsi
je 0x1002ccc3
cmp qword [0x10098650], rsi
je 0x1002ccc3
call fcn.10021370
call rax
test rax, rax
mov rbp, rax
je 0x1002cc8e
mov rcx, qword [0x10098650]
call fcn.10021370
lea rcx, [rsp + 0x38]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x1002cc8e
test byte [rsp + 0x48], 1
jne 0x1002ccc3
lea rcx, [rsp + 0x34]
call fcn.1001eb80
test eax, eax
je 0x1002ccb0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.10020490
cmp dword [rsp + 0x34], 4
jb 0x1002ccbd
bts edi, 0x15
jmp 0x1002ccf7
bts edi, 0x12
jmp 0x1002ccf7
mov rcx, qword [0x10098638]
cmp rcx, rsi
je 0x1002ccf7
call fcn.10021370
call rax
test rax, rax
mov rbx, rax
je 0x1002ccf7
mov rcx, qword [0x10098640]
cmp rcx, rsi
je 0x1002ccf7
call fcn.10021370
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x10098630]
call fcn.10021370
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x140e3a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140e3a1df
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 0x140e3a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e3a06f
add dl, dl
jne 0x140e3a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e3a0f6
xor eax, eax
add dl, dl
jne 0x140e3a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140e3a1ad
add dl, dl
jne 0x140e3a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e3a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e3a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e3a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140e3a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140e3a07e
mov eax, 1
add dl, dl
jne 0x140e3a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140e3a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e3a0fb
sub eax, ebx
mov ebx, 1
jne 0x140e3a14c
mov ecx, 1
add dl, dl
jne 0x140e3a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e3a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e3a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e3a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140e3a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140e3a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140e3a15d
cmp eax, 0x7d00
jae 0x140e3a19b
cmp eax, 0x500
jb 0x140e3a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e3a07e
cmp eax, 0x7f
ja 0x140e3a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140e3a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140e3a1d2
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 0x140e3a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20