joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180031710
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 0x180031740
xor eax, eax
jmp 0x180031803
mov rbp, rbx
cmp word [rax], si
je 0x180031765
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18003174c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180031748
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.18002a004
movsxd r14, eax
test eax, eax
jne 0x1800317a3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180031739
mov rcx, r14
call fcn.180029f14
mov rdi, rax
test rax, rax
jne 0x1800317bc
xor ecx, ecx
call fcn.180029ed8
jmp 0x180031798
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.18002a004
test eax, eax
jne 0x1800317ed
mov rcx, rdi
call fcn.180029ed8
jmp 0x1800317f7
xor ecx, ecx
call fcn.180029ed8
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 0x180032f54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180032f6a
mov al, 1
jmp 0x180032fca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180032f7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180032fc8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800380cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180032fc8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180032fc8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180032fc8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180032fca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180033900
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, [0x180059510]
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 0x180033957
cmp word [rdx], r13w
jne 0x180033957
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18003395c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180033a81
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180033aa2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180033995
mov rdx, r9
mov word [rbx], cx
jmp 0x1800339bc
cmp r9, r8
jae 0x1800339cc
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 0x180033976
jmp 0x180033a81
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 0x180033a76
cmp dword [rsp + 0x80], esi
je 0x180033a76
lea r8, [0x180059510]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180033a4e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180033a1e
mov word [rbx], r13w
jmp 0x180033a7e
mov ecx, 0xd
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 0x180033a2b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180033a7e
cmp word [rsp + 0x70], r13w
jne 0x180033a5b
cmp rbx, r14
je 0x180033a18
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.180030a40
cmp word [rsp + 0x70], r13w
je 0x180033a81
mov ecx, 0xd
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, [0x180059510]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180033a7b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180033a81
Function at 0x180037c58
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18002a144
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180037cf9
cmp ebx, dword [rsp + 0x30]
je 0x180037cf2
test esi, esi
je 0x180037cf2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180037ccd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180037cda
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180037cb7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180037cde
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180037cfb
mov eax, 1
jmp 0x180037cfb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18003bc10
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.18001c588
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x18003bc9a
cmp byte [rbp - 0x21], r15b
je 0x18003bc95
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x18003bcd0
call fcn.18002c3e8
test eax, eax
jne 0x18003bcbc
cmp byte [rbp - 0x21], r15b
je 0x18003bcb4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x18003bcd0
cmp byte [rbp - 0x21], r15b
je 0x18003bccd
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.18001c624
test eax, eax
jne 0x18003bd70
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18001c588
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18003bd0f
cmp byte [rbp - 0x21], r15b
je 0x18003bd44
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x18003bd44
call fcn.18002c3e8
test eax, eax
jne 0x18003bd30
cmp byte [rbp - 0x21], r15b
je 0x18003bd29
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x18003bd44
cmp byte [rbp - 0x21], r15b
je 0x18003bd41
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.18001c624
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18003bd70
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18003bd73
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18003bd81
mov rcx, rdi
call fcn.180029ed8
cmp byte [rbp + 0x3f], r15b
je 0x18003bd90
mov rcx, qword [rbp + 0x27]
call fcn.180029ed8
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 0x18003c5d0
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.180030a40
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.180030a40
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18003c720
cmp rax, 0xffffffffffffffff
je 0x18003c720
xor edi, edi
test rbp, rbp
jle 0x18003c6cb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18002ce1c
mov rbx, rax
test rax, rax
jne 0x18003c658
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18003c6c1
mov edx, 0x8000
mov ecx, r14d
call fcn.18003c454
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.1800320c4
cmp eax, 0xffffffff
je 0x18003c6a1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18003c668
mov edx, r15d
mov ecx, r14d
call fcn.18003c454
jmp 0x18003c6c1
cmp byte [rsi + 0x38], dil
je 0x18003c6b8
cmp dword [rsi + 0x34], 5
jne 0x18003c6b8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18003c6c1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180029ed8
jmp 0x18003c734
jns 0x18003c734
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.180030a40
cmp rax, 0xffffffffffffffff
jne 0x18003c6ec
cmp byte [rsi + 0x30], dil
je 0x18003c734
mov edi, dword [rsi + 0x2c]
jmp 0x18003c734
mov ecx, r14d
call fcn.1800380cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18003c734
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x18003c734
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18003c72d
mov eax, dword [rsi + 0x2c]
jmp 0x18003c732
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.180030a40
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 0x140001000
Capabilities:
Create process on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x14001b008]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
call fcn.1400012d0
movzx eax, al
test eax, eax
jne 0x140001050
xor eax, eax
jmp 0x140001175
mov ecx, dword [rsp + 0xc8]
call fcn.1400013d0
mov qword [0x14001bb20], rax
cmp qword [0x14001bb20], 0
jne 0x140001074
xor eax, eax
jmp 0x140001175
movzx eax, byte [0x14001bb2c]
test eax, eax
jne 0x14000108b
mov byte [0x14001bb2c], 1
call fcn.1400011a0
lea rcx, [rsp + 0x70]
call fcn.1400019a0
lea rcx, [rsp + 0x70]
call sub.sider.dll_bool___cdecl_get_start_game_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64_
movzx eax, al
test eax, eax
je 0x1400010f4
lea rcx, [rsp + 0x70]
call fcn.140002220
mov rdx, rax
lea rcx, str.start.game:__s_n
call sub.sider.dll_void___cdecl_open_log__wchar_t_const____ptr64_
call sub.sider.dll_void___cdecl_close_log__void_
lea rcx, [rsp + 0x70]
call fcn.140002220
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, rax
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetMessageW]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14000115f
cmp dword [rsp + 0x30], 0xffffffff
jne 0x140001131
mov dword [rsp + 0x34], 0
lea rcx, [rsp + 0x70]
call fcn.140001be0
mov eax, dword [rsp + 0x34]
jmp 0x140001175
lea rdx, [rsp + 0x40]
mov rcx, qword [0x14001bb20]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x14000115d
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x1400010f4
mov dword [rsp + 0x38], 0
lea rcx, [rsp + 0x70]
call fcn.140001be0
mov eax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140002600
add rsp, 0xa8
ret
Function at 0x140061da4
Capabilities:
Hash data using fnv

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x18
cmp dword [rsp + 0x28], 0
jne 0x140061dbc
xor eax, eax
jmp 0x140061e0d
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax]
xor eax, 0x4b9ace2f
imul eax, eax, 0x1000193
mov dword [rsp + 4], eax
mov dword [rsp], 1
jmp 0x140061de4
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp], eax
jae 0x140061e09
mov eax, dword [rsp]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
xor eax, dword [rsp + 4]
imul eax, eax, 0x1000193
mov dword [rsp + 4], eax
jmp 0x140061ddc
mov eax, dword [rsp + 4]
add rsp, 0x18
ret

Function at 0x140062214
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 0x14]
mov rcx, qword [rsp + 0x30]
lea rax, [rcx + rax + 0x18]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x20], 0
jmp 0x140062275
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x20], eax
jae 0x14006230c
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x45474150
je 0x1400622cb
mov rax, qword [rsp + 0x28]
mov r8d, 5
lea rdx, [0x140062fb0]
mov rcx, rax
call fcn.1400624e0
test eax, eax
jne 0x140062307
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0xc]
mov rcx, qword [rsp + 0x60]
add rcx, rax
mov rax, rcx
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx + 8]
mov rcx, rax
call fcn.14006218c
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140062307
jmp 0x14006230c
jmp 0x14006226b
mov rax, qword [rsp + 0x38]
add rsp, 0x58
ret
Function at 0x140062318
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x178
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x24], 0
lea r9, [rsp + 0x24]
xor r8d, r8d
xor edx, edx
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xc0000004
je 0x140062369
mov rax, qword [rsp + 0x38]
jmp 0x14006246f
mov eax, dword [rsp + 0x24]
mov r8d, 0x6e556353
mov edx, eax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140062394
mov rax, qword [rsp + 0x38]
jmp 0x14006246f
xor r9d, r9d
mov r8d, dword [rsp + 0x24]
mov rdx, qword [rsp + 0x30]
mov ecx, 0xb
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x1400623ce
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x38]
jmp 0x14006246f
mov dword [rsp + 0x20], 0
jmp 0x1400623e2
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
cmp dword [rsp + 0x20], eax
jae 0x14006245d
mov eax, dword [rsp + 0x20]
imul rax, rax, 0x128
lea rcx, [rsp + 0x40]
mov rdx, qword [rsp + 0x30]
mov rdi, rcx
lea rsi, [rdx + rax + 8]
mov ecx, 0x128
rep movsb byte [rdi], byte [rsi]
lea rcx, [rsp + 0x68]
call fcn.140061d0c
mov rdx, qword [rsp + 0x190]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_strstr]
test rax, rax
je 0x140062458
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x198], 0
je 0x140062456
mov rax, qword [rsp + 0x198]
mov ecx, dword [rsp + 0x58]
mov dword [rax], ecx
jmp 0x14006245d
jmp 0x1400623d8
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rax, qword [rsp + 0x38]
add rsp, 0x178
pop rdi
pop rsi
ret
Function at 0x140876058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408761df
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 0x140876089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14087606f
add dl, dl
jne 0x140876096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408760f6
xor eax, eax
add dl, dl
jne 0x1408760a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408761ad
add dl, dl
jne 0x1408760b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408760c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408760d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408760dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408760ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14087607e
mov eax, 1
add dl, dl
jne 0x140876106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140876113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408760fb
sub eax, ebx
mov ebx, 1
jne 0x14087614c
mov ecx, 1
add dl, dl
jne 0x14087612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14087613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140876123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14087607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140876168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140876175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14087615d
cmp eax, 0x7d00
jae 0x14087619b
cmp eax, 0x500
jb 0x140876196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14087607e
cmp eax, 0x7f
ja 0x14087619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14087607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408761d2
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 0x14087607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140013a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov r11, qword [rdx + 0x20]
mov r10, qword [rdx + 0x28]
lea rcx, [r10 + 1]
mov qword [rdx + 0x28], rcx
mov al, 1
cmp rcx, r11
jae 0x140013ad2
mov rax, qword [rdx + 0x18]
movzx edi, byte [rax + rcx]
mov al, 1
cmp edi, 0x2b
je 0x140013ac7
cmp edi, 0x2d
jne 0x140013ad2
xor eax, eax
add r10, 2
mov qword [rdx + 0x28], r10
mov rcx, r10
cmp rcx, r11
jae 0x140013c7a
mov rdi, qword [rdx + 0x18]
movzx r10d, byte [rdi + rcx]
lea rbx, [rcx + 1]
mov qword [rdx + 0x28], rbx
add r10b, 0xd0
cmp r10b, 0xa
jae 0x140013c85
movzx r10d, r10b
cmp rbx, r11
jae 0x140013b80
mov ebx, 1
sub rbx, r11
add rcx, 2
jmp 0x140013b3c
movzx r11d, r11b
lea r10d, [r10 + r10*4]
lea r10d, [r11 + r10*2]
lea r11, [rbx + rcx]
inc r11
inc rcx
cmp r11, 2
je 0x140013b80
movzx r11d, byte [rdi + rcx - 1]
add r11b, 0xd0
cmp r11b, 0xa
jae 0x140013b80
mov qword [rdx + 0x28], rcx
cmp r10d, 0xccccccb
jle 0x140013b20
cmp r10d, 0xccccccc
jne 0x140013b68
cmp r11b, 7
jbe 0x140013b20
test r9, r9
sete r9b
mov byte [rsp + 0x20], al
mov rcx, rsi
call fcn.140267e90
jmp 0x140013c67
mov ecx, dword [rsp + 0x80]
test al, al
je 0x140013b9c
lea eax, [rcx + r10]
sar eax, 0x1f
add eax, 0x80000000
add ecx, r10d
jmp 0x140013bac
xor eax, eax
cmp ecx, r10d
setns al
add eax, 0x7fffffff
sub ecx, r10d
cmovo ecx, eax
movq xmm1, r9
punpckldq xmm1, xmmword [0x140277c10]
subpd xmm1, xmmword [0x140277c20]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x135
jb 0x140013c18
xorpd xmm1, xmm1
movsd xmm2, qword [0x140277c30]
nop word [rax + rax]
ucomisd xmm0, xmm1
jne 0x140013bf8
jnp 0x140013c50
test ecx, ecx
jns 0x140013cab
divsd xmm0, xmm2
add ecx, 0x134
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, 0x134
ja 0x140013bf0
mov eax, eax
mov r9, qword [0x14031b5d8]
movsd xmm1, qword [r9 + rax*8]
test ecx, ecx
js 0x140013c6f
mulsd xmm0, xmm1
movq rax, xmm0
movabs rcx, 0x7fffffffffffffff
and rcx, rax
movabs rax, 0x7ff0000000000000
cmp rcx, rax
je 0x140013cab
test r8b, r8b
jne 0x140013c5d
xorpd xmm0, xmmword [0x140277c40]
movsd qword [rsi + 8], xmm0
xor eax, eax
mov qword [rsi], rax
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
divsd xmm0, xmm1
test r8b, r8b
je 0x140013c55
jmp 0x140013c5d
mov qword [rsp + 0x28], 5
jmp 0x140013c8e
mov qword [rsp + 0x28], 0xd
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140267f30
mov qword [rsi + 8], rax
mov qword [rsi], 1
jmp 0x140013c67
mov qword [rsp + 0x28], 0xe
lea rax, [rsp + 0x28]
mov rcx, rdx
mov rdx, rax
call fcn.140267f30
mov qword [rsi + 8], rax
mov eax, 1
jmp 0x140013c64
Function at 0x140017ff0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 0x98
movaps xmmword [rsp + 0x80], xmm14
movaps xmmword [rsp + 0x70], xmm13
movaps xmmword [rsp + 0x60], xmm12
movaps xmmword [rsp + 0x50], xmm11
movaps xmmword [rsp + 0x40], xmm10
movaps xmmword [rsp + 0x30], xmm9
movaps xmmword [rsp + 0x20], xmm8
movaps xmmword [rsp + 0x10], xmm7
movaps xmmword [rsp], xmm6
aesimc xmm0, xmmword [rdx + 0x10]
aesimc xmm1, xmmword [rdx + 0x20]
aesimc xmm2, xmmword [rdx + 0x30]
aesimc xmm3, xmmword [rdx + 0x40]
aesimc xmm4, xmmword [rdx + 0x50]
aesimc xmm5, xmmword [rdx + 0x60]
aesimc xmm6, xmmword [rdx + 0x70]
aesimc xmm7, xmmword [rdx + 0x80]
aesimc xmm8, xmmword [rdx + 0x90]
aesimc xmm9, xmmword [rdx + 0xa0]
aesimc xmm10, xmmword [rdx + 0xb0]
aesimc xmm11, xmmword [rdx + 0xc0]
aesimc xmm12, xmmword [rdx + 0xd0]
movaps xmm13, xmmword [rdx]
movaps xmm14, xmmword [rdx + 0xe0]
movaps xmmword [rcx], xmm13
movdqa xmmword [rcx + 0x10], xmm0
movdqa xmmword [rcx + 0x20], xmm1
movdqa xmmword [rcx + 0x30], xmm2
movdqa xmmword [rcx + 0x40], xmm3
movdqa xmmword [rcx + 0x50], xmm4
movdqa xmmword [rcx + 0x60], xmm5
movdqa xmmword [rcx + 0x70], xmm6
movdqa xmmword [rcx + 0x80], xmm7
movdqa xmmword [rcx + 0x90], xmm8
movdqa xmmword [rcx + 0xa0], xmm9
movdqa xmmword [rcx + 0xb0], xmm10
movdqa xmmword [rcx + 0xc0], xmm11
movdqa xmmword [rcx + 0xd0], xmm12
movaps xmmword [rcx + 0xe0], xmm14
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
movaps xmm14, xmmword [rsp + 0x80]
add rsp, 0x98
ret