joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov esi, edx
mov rcx, rbx
call fcn.0040fe90
mov rdi, rax
mov rcx, rdi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42e6bd
mov ecx, eax
test ecx, 0x400
je 0x42e6b2
test sil, sil
jne 0x42e653
mov al, 1
jmp 0x42e6e6
test eax, 0x10
je 0x42e662
xor eax, eax
jmp 0x42e6e6
mov rcx, rdi
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42e6a5
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x42e6e6
call sub.kernel32.dll_GetLastError_2
cmp eax, 0x20
sete al
jmp 0x42e6e6
test eax, 0x10
sete al
jmp 0x42e6e6
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42e6e0
cmp eax, 3
je 0x42e6e0
cmp eax, 0x7b
je 0x42e6e0
mov rcx, rbp
mov rdx, rbx
call fcn.0042e5c0
test al, al
jne 0x42e6e4
xor eax, eax
jmp 0x42e6e6
mov al, 1
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x42e6f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x38
mov ebx, edx
xor esi, esi
call fcn.0040fe90
mov r13, rax
mov rcx, r13
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
cmp edi, 0xffffffff
je 0x42e7de
mov eax, edi
test eax, 0x400
jne 0x42e732
test edi, 0x10
setne sil
jmp 0x42e811
test bl, bl
je 0x42e788
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42e811
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
test edi, 0x10
setne sil
jmp 0x42e811
test edi, 0x10
je 0x42e795
mov sil, 1
jmp 0x42e811
mov rcx, r13
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0x2000000
mov qword [rsp + 0x30], 0
call sub.kernel32.dll_CreateFileW
cmp rax, 0xffffffffffffffff
je 0x42e7d9
mov rcx, rax
call sub.kernel32.dll_CloseHandle_1
xor esi, esi
jmp 0x42e811
mov sil, 1
jmp 0x42e811
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x42e809
cmp eax, 3
je 0x42e809
cmp eax, 0xa1
je 0x42e809
cmp eax, 0x7b
je 0x42e809
cmp eax, 0x35
je 0x42e809
cmp eax, 0x15
je 0x42e809
cmp eax, 0x43
jne 0x42e80e
xor esi, esi
jmp 0x42e811
mov sil, 1
mov eax, esi
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x42f0b0
Capabilities:
Create directory

Disassembly:
sub rsp, 0x28
call fcn.0040fe90
mov rcx, rax
xor edx, edx
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x434db0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
sub rsp, 0x38
mov rbp, rsp
mov ebx, r8d
lea r8, [rbp + 0x2c]
mov r9d, 2
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x434dd7
movzx rax, word [rbp + 0x2c]
jmp 0x434dd9
mov eax, ebx
lea rsp, [rbp + 0x38]
pop rbx
pop rbp
ret
Function at 0x436850
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.00436600
mov ebx, eax
mov rax, qword [0x008afdd0]
cmp byte [rax], 0
je 0x436986
mov rcx, qword [0x008afa20]
call fcn.0040a8e0
call fcn.00409350
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436810]
mov r8d, 1
movsxd r9, esi
call fcn.00411ee0
mov ecx, 1
xor edx, edx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x00436a1c]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x4369cb
mov rcx, qword [0x008b7270]
call fcn.00412680
mov rcx, rax
mov rax, qword [0x008af9a0]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor ecx, ecx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x00436810]
call fcn.004120b0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret
Function at 0x438580
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov qword [rbp + 0x90], r8
mov qword [rbp + 0x98], r9
nop
mov byte [rbp + 0x67], 0
lea rcx, [rbp + 0x58]
mov rdx, qword [rbp + 0x80]
call fcn.0040ed70
lea rcx, [rbp + 0x58]
call fcn.0040efb0
mov rcx, qword [rbp + 0x58]
call fcn.0040fe90
mov rcx, rax
lea rdx, [rbp + 0x50]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x54], eax
cmp dword [rbp + 0x54], 0
je 0x438690
mov ecx, dword [rbp + 0x54]
call fcn.00409030
mov qword [rbp + 0x68], rax
nop
mov rcx, qword [rbp + 0x58]
call fcn.0040fe90
mov rcx, rax
mov edx, dword [rbp + 0x50]
mov r8d, dword [rbp + 0x54]
mov r9, qword [rbp + 0x68]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x438686
mov rcx, qword [rbp + 0x68]
lea rdx, [0x004386e8]
lea r8, [rbp + 0x48]
lea r9, [rbp + 0x44]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x438686
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x10]
mov dword [rbp + 0x40], eax
mov rax, qword [rbp + 0x88]
mov ecx, dword [rbp + 0x40]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov rax, qword [rbp + 0x90]
mov rcx, qword [rbp + 0x48]
movzx ecx, word [rcx + 0x10]
mov dword [rax], ecx
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x14]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x98]
mov ecx, dword [rbp + 0x3c]
shr ecx, 0x10
movzx ecx, cx
mov dword [rax], ecx
mov byte [rbp + 0x67], 1
nop
mov rcx, qword [rbp + 0x68]
call fcn.00409060
nop
lea rcx, [rbp + 0x58]
call fcn.0040e6c0
movzx rax, byte [rbp + 0x67]
lea rsp, [rbp + 0x70]
pop rbp
ret

Function at 0x439ac0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r13
push rdi
push rsi
push rbx
sub rsp, 0x240
mov rbp, rsp
mov rbx, rcx
mov rcx, rbx
call fcn.0040ee90
mov r13d, eax
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call fcn.004163b0
mov esi, eax
cmp esi, 0x104
jbe 0x439b1c
mov ecx, esi
add ecx, ecx
mov ecx, ecx
call fcn.00409030
mov rdi, rax
jmp 0x439b20
lea rdi, [rbp + 0x38]
mov ecx, 0xfde9
xor edx, edx
mov r8, rbx
mov r9d, r13d
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
call fcn.004163b0
mov rcx, rdi
call sub.user32.dll_CharUpperW
xor ebx, ebx
xor ecx, ecx
mov edx, esi
sub edx, 1
mov eax, ecx
cmp eax, edx
jg 0x439b77
sub edx, ecx
add edx, 1
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movsxd rcx, eax
movzx ecx, word [rdi + rcx*2]
xor ebx, ecx
add eax, 1
sub edx, 1
test edx, edx
jne 0x439b58
nop
lea rax, [rbp + 0x38]
cmp rdi, rax
je 0x439b89
mov rcx, rdi
call fcn.00409060
mov eax, ebx
lea rsp, [rbp + 0x240]
pop rbx
pop rsi
pop rdi
pop r13
pop rbp
ret
Function at 0x77c670
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
movzx rax, byte [rax + 0x19]
movzx rcx, byte [rbp + 0x2f]
or al, cl
test al, al
je 0x77c702
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x77c702
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x40], 0
jne 0x77c702
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x77c72c
lea rcx, [rbp + 0x38]
mov rdx, qword [0x008afd28]
call fcn.004162e0
mov rcx, qword [0x00747110]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.00436a40
mov rcx, rax
call fcn.0040d940
jmp 0x77c72c
lea rcx, [rbp + 0x30]
mov rdx, qword [0x008afd28]
call fcn.004162e0
mov rcx, qword [0x00747110]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.00436a40
mov rcx, rax
call fcn.0040d940
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e7a0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77d2a0
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0077c4b0
jmp 0x77d2fb
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x77d320
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0077c4b0
cmp esi, 1
jne 0x77d34a
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x813dd0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor edx, edx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x813dd7
nop
ret

Function at 0x835a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x80], rcx
mov qword [rbp + 0x88], rdx
mov rcx, qword [rbp + 0x88]
call fcn.0040e870
nop
mov qword [rbp + 0x58], 0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rbp + 0x80]
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rax + rcx]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
cmp dword [rax + 0x88], 0
je 0x835b97
mov rax, qword [rbp + 0x50]
mov eax, dword [rax + 0x88]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x48], rax
xor eax, eax
mov rcx, qword [rbp + 0x48]
mov ebx, dword [rcx + 0x18]
sub ebx, 1
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], ebx
jg 0x835b96
sub ebx, eax
add ebx, 1
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x20]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x28]
mov rdx, qword [rbp + 0x38]
xor r8, r8
call fcn.0040f270
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x28]
call fcn.0040f860
test eax, eax
jne 0x835b87
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x24]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
movsxd rcx, dword [rbp + 0x44]
movzx eax, word [rax + rcx*2]
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x48]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov ecx, dword [rbp + 0x34]
mov eax, dword [rax + rcx*4]
mov rcx, qword [rbp + 0x80]
lea rax, [rax + rcx]
mov qword [rbp + 0x58], rax
jmp 0x835b96
add dword [rbp + 0x44], 1
sub ebx, 1
test ebx, ebx
jne 0x835af5
nop
nop
lea rcx, [rbp + 0x28]
call fcn.0040e710
lea rcx, [rbp + 0x88]
call fcn.0040e710
mov rax, qword [rbp + 0x58]
lea rsp, [rbp + 0x68]
pop rbx
pop rbp
ret
Function at 0x835bf0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rbx
sub rsp, 0x88
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0xa0], rcx
nop
lea rcx, [0x00835de0]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x58]
lea rdx, [0x00835dfa]
xor r8, r8
call fcn.0040f270
mov rcx, rbx
mov rdx, qword [rbp + 0x58]
call fcn.00835a60
mov qword [0x008a74c8], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040faf0
mov rcx, rax
call qword [0x008a74c8]
mov dword [rbp + 0x78], eax
cmp dword [rbp + 0x78], 0xffffffff
je 0x835d7e
mov eax, dword [rbp + 0x78]
test eax, 0x400
je 0x835d6d
mov eax, dword [rbp + 0x78]
test eax, 0x10
je 0x835c96
mov byte [rbp + 0x7f], 0
jmp 0x835da2
lea rcx, [0x00835de0]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x50]
lea rdx, [0x00835e0d]
xor r8, r8
call fcn.0040f270
mov rcx, rbx
mov rdx, qword [rbp + 0x50]
call fcn.00835a60
mov qword [0x008a74c0], rax
mov rcx, qword [rbp + 0xa0]
call fcn.0040faf0
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9, r9
mov dword [rsp + 0x20], 3
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
call qword [0x008a74c0]
mov qword [rbp + 0x70], rax
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp qword [rbp + 0x70], 0xffffffffffffffff
je 0x835d61
lea rcx, [0x00835de0]
call sub.kernel32.dll_GetModuleHandleW_2
mov rbx, rax
lea rcx, [rbp + 0x48]
lea rdx, [0x00835e19]
xor r8, r8
call fcn.0040f270
mov rcx, rbx
mov rdx, qword [rbp + 0x48]
call fcn.00835a60
mov qword [0x008a74b8], rax
mov rcx, qword [rbp + 0x70]
call qword [0x008a74b8]
mov byte [rbp + 0x7f], 1
jmp 0x835da2
cmp dword [rbp + 0x6c], 0x20
sete al
mov byte [rbp + 0x7f], al
jmp 0x835da2
mov eax, dword [rbp + 0x78]
test eax, 0x10
sete al
mov byte [rbp + 0x7f], al
jmp 0x835da2
call sub.kernel32.dll_GetLastError_2
mov dword [rbp + 0x6c], eax
cmp dword [rbp + 0x6c], 2
je 0x835d98
cmp dword [rbp + 0x6c], 3
je 0x835d98
cmp dword [rbp + 0x6c], 0x7b
jne 0x835d9c
xor eax, eax
jmp 0x835d9e
mov al, 1
mov byte [rbp + 0x7f], al
nop
lea rcx, [rbp + 0x48]
mov edx, 3
call fcn.0040e7d0
movzx rax, byte [rbp + 0x7f]
lea rsp, [rbp + 0x88]
pop rbx
pop rbp
ret

Function at 0x83a500
Capabilities:
Get disk information

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov qword [rsp + 0x40], rcx
xor ebx, ebx
cmp qword [rsp + 0x40], 0
je 0x83a577
mov rcx, qword [rsp + 0x40]
call fcn.0083a8a0
test al, al
je 0x83a577
mov rcx, qword [rsp + 0x40]
call fcn.0083a5f0
mov esi, eax
call sub.kernel32.dll_GetLogicalDrives
mov rcx, qword [rsp + 0x40]
sub esi, 1
movsxd rsi, esi
movzx rcx, word [rcx + rsi*2]
mov edx, ecx
mov r8d, ecx
sub r8w, 0x61
cmp r8w, 0x1a
jae 0x83a55b
mov edx, ecx
and dx, 0xffdf
mov ecx, edx
cmp cx, 0x41
jb 0x83a577
cmp cx, 0x5a
ja 0x83a577
sub cl, 0x41
shr eax, cl
and eax, 1
cmp eax, 1
sete bl
mov eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x86cfb0
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x40
mov qword [rsp + 0x38], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x40], 0
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x64], 0
mov rcx, qword [rsp + 0x38]
mov qword [rcx + 0x28], 0
mov rcx, qword [rsp + 0x38]
call fcn.0086d090
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x34], 0x100
jae 0x86d089
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x2c], 0
cmp dword [rsp + 0x2c], 8
jge 0x86d063
mov eax, dword [rsp + 0x30]
shr eax, 1
mov ecx, dword [rsp + 0x30]
and ecx, 1
sub ecx, 1
xor ecx, 0xffffffff
and ecx, 0xedb88320
xor eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2c]
add eax, 1
mov dword [rsp + 0x2c], eax
jmp 0x86d01a
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + rcx*4 + 0x8c], eax
mov eax, dword [rsp + 0x34]
add eax, 1
mov dword [rsp + 0x34], eax
jmp 0x86cffc
mov rsp, rbp
pop rbp
ret

Function at 0x870530
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x60
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x48], r8
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x44]
mov rax, rsp
mov qword [rax + 0x28], rdx
mov dword [rax + 0x20], 0
xor r9d, r9d
mov qword [rsp + 0x38], rcx
mov ecx, r9d
mov edx, r9d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], r8
mov r8, rax
mov r9, qword [rsp + 0x30]
call sub.msvcrt.dll__beginthreadex
movsxd r8, eax
mov r9, qword [rsp + 0x58]
mov qword [r9], r8
mov r8, qword [rsp + 0x58]
mov rcx, qword [r8]
call fcn.008703f0
mov rsp, rbp
pop rbp
ret
Function at 0x87af60
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
and rsp, 0xfffffffffffffff8
sub rsp, 0x20
mov qword [rsp + 0x18], rcx
mov dword [rsp + 0x14], edx
mov qword [rsp + 8], r8
mov dword [rsp + 4], 0
mov edx, dword [rsp + 0x14]
or edx, 0x100
mov dword [rsp + 0x14], edx
mov eax, dword [rsp + 0x14]
shr eax, 8
mov ecx, eax
mov rdx, qword [rsp + 0x18]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 0x14]
shr r8d, 7
and r8d, 1
mov r9d, 0
sub r9d, r8d
and r9d, 0x7ff
xor eax, r9d
shr eax, 4
mov ecx, eax
mov rdx, qword [rsp + 8]
mov eax, dword [rdx + rcx*4]
mov r8d, dword [rsp + 4]
add r8d, eax
mov dword [rsp + 4], r8d
mov eax, dword [rsp + 0x14]
shl eax, 1
mov dword [rsp + 0x14], eax
cmp dword [rsp + 0x14], 0x10000
jb 0x87af93
mov eax, dword [rsp + 4]
mov rsp, rbp
pop rbp
ret

Function at 0x140889058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408891df
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 0x140889089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14088906f
add dl, dl
jne 0x140889096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408890f6
xor eax, eax
add dl, dl
jne 0x1408890a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408891ad
add dl, dl
jne 0x1408890b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408890c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408890d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408890dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408890ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14088907e
mov eax, 1
add dl, dl
jne 0x140889106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140889113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408890fb
sub eax, ebx
mov ebx, 1
jne 0x14088914c
mov ecx, 1
add dl, dl
jne 0x14088912e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14088913b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140889123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088907e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140889168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140889175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14088915d
cmp eax, 0x7d00
jae 0x14088919b
cmp eax, 0x500
jb 0x140889196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088907e
cmp eax, 0x7f
ja 0x14088919e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14088907e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408891d2
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 0x14088907e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rdi, rdx
mov rbx, rcx
test r8b, r8b
je 0x1400059c5
mov eax, 1
lea r9, [rsp + 0x58]
lea r8d, [rsi + 2]
lea rdx, [rsp + 0x50]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x50], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005a8b
cmp dword [rsp + 0x58], 2
jne 0x140005a8b
test byte [rbx + 0x818], 0x40
mov eax, esi
lea r9, [rsp + 0x58]
setne al
lea rdx, [rsp + 0x50]
mov r8d, 2
inc ax
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x50], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005a8b
cmp dword [rsp + 0x58], 2
jne 0x140005a8b
movzx eax, word [rbx + 0x800]
lea r9, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov r8d, 2
mov rcx, rdi
mov qword [rsp + 0x20], rsi
mov word [rsp + 0x50], ax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005a8b
cmp dword [rsp + 0x58], 2
jne 0x140005a8b
mov r8d, dword [rbx + 0x800]
mov rdx, qword [rbx + 0x808]
lea r9, [rsp + 0x58]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x140005a8b
mov eax, dword [rbx + 0x800]
cmp dword [rsp + 0x58], eax
jne 0x140005a8b
mov rdx, rdi
mov rcx, rbx
call fcn.140007d50
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, 8
add rsp, 0x30
pop rdi
ret
Function at 0x140005f40
Capabilities:
Check if file exists
Get file attributes
Persist via run registry key
Query environment variable
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x140066360]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
lea rdx, [rsp + 0x40]
lea rcx, str.allusersprofile
mov r8d, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140005fb1
lea r9, [rsp + 0x40]
lea r8, [0x14004f650]
lea rcx, [rdi + 0x58]
mov edx, 0x400
call fcn.140007f20
test eax, eax
js 0x140005fb1
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14000611f
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000606a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.Common_AppData
xor r8d, r8d
mov dword [rsp + 0x34], 0x20a
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006057
cmp dword [rsp + 0x30], 1
jne 0x140006057
lea r9, [rsp + 0x40]
lea r8, [0x14004f650]
lea rcx, [rdi + 0x58]
mov edx, 0x400
call fcn.140007f20
test eax, eax
js 0x140006055
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140006055
mov ebx, 1
jmp 0x140006057
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000611f
lea rax, [rsp + 0x38]
lea rdx, str.SOFTWARENVIDIA_CorporationGlobalDrsPath
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140006127
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, str.NVDRS_PATH
xor r8d, r8d
mov dword [rsp + 0x30], 0x20a
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140006110
cmp dword [rsp + 0x34], 1
jne 0x140006110
lea r9, [rsp + 0x40]
lea r8, [0x14004f650]
lea rcx, [rdi + 0x58]
mov edx, 0x400
call fcn.140007f20
test eax, eax
js 0x14000610e
lea rcx, [rdi + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000610e
mov ebx, 1
jmp 0x140006110
xor ebx, ebx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x140006127
or dword [rdi + 0x50], 0x20
xor eax, eax
jmp 0x14000612c
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400220e0
mov rbx, qword [rsp + 0x278]
add rsp, 0x260
pop rdi
ret