joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180059210
Capabilities:
Get hostname

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbx, rcx
mov dword [rsp + 0x20], 0
lea rcx, [rsp + 0x28]
mov dword [rsp + 0x24], 0x10
lea rdx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov r8d, dword [rsp + 0x24]
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.180033a90
mov rax, rbx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800ae8d0
add rsp, 0x50
pop rbx
ret

Function at 0x18005af50
Capabilities:
Create new key via cryptacquirecontext
Decode data using base64 via winapi
Encrypt data using des via winapi

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
lea r8, str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
xor edx, edx
mov rdi, rcx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18005afcb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x18005afb6
mov r9d, 1
mov dword [rsp + 0x20], 8
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x18005afcb
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800ae8d0
add rsp, 0x60
pop rdi
ret
xor eax, eax
mov qword [rsp + 0x78], rbx
mov qword [rdi + 0x10], rax
lea r9, [rdi + 0x1c]
mov qword [rdi + 0x18], rax
lea rcx, str.xR75rUpVhLq
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
mov qword [rdi + 0x30], rax
mov dword [rdi + 0x38], eax
mov qword [rsp + 0x80], rbp
xor ebp, ebp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
lea edx, [rbp + 0xc]
mov qword [rsp + 0x20], rax
lea r8d, [rbp + 1]
mov qword [rsp + 0x88], rsi
mov dword [rdi + 0x14], 0x6601
mov dword [rdi + 0x18], 8
mov dword [rdi + 0x10], 0x208
mov dword [rsp + 0x40], 8
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov rcx, qword [rdi]
lea rsi, [rdi + 8]
mov qword [rsp + 0x28], rsi
lea r8d, [rbp + 0x14]
xor r9d, r9d
mov dword [rsp + 0x20], ebp
lea rdx, [rdi + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rbx, qword [rsp + 0x78]
test eax, eax
je 0x18005b09c
mov rcx, qword [rsi]
lea r8, [rsp + 0x44]
xor r9d, r9d
mov dword [rsp + 0x44], 1
lea edx, [rbp + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x18005b0ab
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, qword [rdi]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x18005b0fc
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov qword [rsp + 0x30], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rbp
lea r9, [rsp + 0x48]
mov dword [rsp + 0x40], 8
lea rcx, str.a3F_1bZDuMg
mov qword [rsp + 0x20], rax
lea r8d, [rdx - 0xb]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov rcx, qword [rsi]
lea r8, [rsp + 0x48]
xor r9d, r9d
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
setne al
mov rbp, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1800ae8d0
add rsp, 0x60
pop rdi
ret
Function at 0x18005b120
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rbp + 0x1f], rax
movzx r15d, r9b
mov r14, r8
mov rbx, rdx
mov r13, rcx
xor r8d, r8d
lea rdx, [0x1800fd01d]
mov rcx, r14
call fcn.180009ff0
mov rdx, rbx
lea rcx, [rbp - 1]
call fcn.180033ea0
nop
lea rsi, [rbp - 1]
cmp qword [rbp + 0x17], 8
cmovae rsi, qword [rbp - 1]
or rdi, 0xffffffffffffffff
inc rdi
cmp word [rsi + rdi*2], 0
jne 0x18005b194
xor r12d, r12d
mov dword [rbp - 0x41], r12d
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [r12 + 1]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x29], r12
mov edx, dword [rbp - 0x41]
lea rcx, [rbp - 0x39]
call fcn.18002d000
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r12
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
mov rbx, qword [rbp - 0x39]
mov r9, rbx
lea r8d, [r12 + 1]
mov edx, edi
mov rcx, rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x18005b2b0
lea rax, [rbp - 0x41]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor edx, edx
lea r8d, [r12 + 1]
mov rcx, qword [r13 + 8]
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x18005b2b0
mov r8d, dword [rbp - 0x41]
mov rdx, rbx
test r15b, r15b
je 0x18005b2a3
shr r8, 1
mov qword [rbp - 9], 7
mov qword [rbp - 0x11], r12
mov word [rbp - 0x21], r12w
lea rcx, [rbp - 0x21]
call fcn.180034b10
nop
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x61]
call fcn.180033c30
mov rdx, rax
mov rcx, r14
call fcn.18000bf30
lea rcx, [rbp - 0x61]
call fcn.1800077c0
nop
mov r8, qword [rbp - 9]
cmp r8, 8
jb 0x18005b2ab
inc r8
mov rdx, qword [rbp - 0x21]
lea rcx, [rbp - 0x21]
call fcn.180031a90
jmp 0x18005b2ab
mov rcx, r14
call fcn.18000a370
mov dil, 1
jmp 0x18005b2b3
xor dil, dil
test rbx, rbx
je 0x18005b308
mov rax, qword [rbp - 0x29]
sub rax, rbx
cmp rax, 0x1000
jb 0x18005b2ff
test bl, 0x1f
je 0x18005b2d2
call fcn.1800c0d4c
int3
mov rax, qword [rbx - 8]
cmp rax, rbx
jb 0x18005b2e1
call fcn.1800c0d4c
int3
sub rbx, rax
cmp rbx, 8
jae 0x18005b2f0
call fcn.1800c0d4c
int3
cmp rbx, 0x27
jbe 0x18005b2fc
call fcn.1800c0d4c
int3
mov rbx, rax
mov rcx, rbx
call fcn.1800af3bc
nop
mov r8, qword [rbp + 0x17]
cmp r8, 8
jb 0x18005b322
inc r8
mov rdx, qword [rbp - 1]
lea rcx, [rbp - 1]
call fcn.180031a90
movzx eax, dil
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800ae8d0
mov rbx, qword [rsp + 0x128]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005e1f0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor eax, eax
mov rbx, rcx
lea rcx, [rbp + 0x17]
mov qword [rbp + 0x17], rax
mov qword [rbp + 0x1f], rax
xor edi, edi
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x2f], rax
call qword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x18005e297
cmp qword [rbp + 0x27], rdi
mov eax, 3
cmovne edi, eax
cmp dword [rbp + 0x17], 0
je 0x18005e2bd
mov rdx, qword [rbp + 0x1f]
xor edi, edi
cmp byte [0x1801495a0], dil
mov byte [rbx + 0x21], 1
je 0x18005e268
test rdx, rdx
je 0x18005e291
mov byte [rbx + 0x21], 1
test rdx, rdx
je 0x18005e2bd
or r8d, 0xffffffff
lea rcx, [rbp - 9]
call fcn.180033a90
lea rcx, [rbx + 0x28]
mov rdx, rax
call fcn.18000bf30
lea rcx, [rbp - 9]
call fcn.1800077c0
jmp 0x18005e2bd
mov byte [rbx + 0x21], dil
jmp 0x18005e2bd
mov rcx, qword [rbp + 0x27]
test rcx, rcx
je 0x18005e2a6
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x18005e2b5
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x27], xmm0
mov r9, qword [rbp + 0x2f]
lea rcx, str.Stardock_Application_Services_1.0
mov r8, qword [rbp + 0x27]
mov edx, edi
mov dword [rsp + 0x20], 0
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov rcx, qword [rbp + 0x27]
mov qword [rbx + 8], rax
test rcx, rcx
je 0x18005e2ef
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0x2f]
test rcx, rcx
je 0x18005e2fe
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0x1f]
test rcx, rcx
je 0x18005e30d
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18005e35e
mov edx, 0x4e20
mov dword [rsp + 0x20], 0x7530
mov r9d, 0x7530
mov r8d, 0xafc8
call qword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
mov rcx, rbx
call fcn.18005e3b0
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1800ae8d0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rax, vtable.std::exception.0
mov byte [rbp + 0x3f], 1
mov qword [rbp - 9], rax
lea rdx, [rbp - 1]
xor eax, eax
lea rcx, [rbp + 0x37]
mov qword [rbp - 1], rax
mov qword [rbp + 7], rax
lea rax, str.EstablishHttpSession::WinHttpOpen_failed
mov qword [rbp + 0x37], rax
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
lea rdx, [0x18013e2c0]
mov qword [rbp - 9], rax
lea rcx, [rbp - 9]
call fcn.1800b26b0
int3
Function at 0x18005e530
Capabilities:
Prepare http request

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x90
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xc0], rbx
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 8], 0
jne 0x18005e570
call fcn.18005e1f0
mov esi, 0x800100
mov eax, 0x100
cmp byte [rbx + 0x20], 0
cmove esi, eax
lea rdx, [rbx + 0x88]
lea rcx, [rsp + 0x68]
call fcn.180033ea0
mov rdi, rax
mov rdx, rbp
lea rcx, [rsp + 0x40]
call fcn.180033ea0
cmp qword [rdi + 0x18], 8
jb 0x18005e5ac
mov rdi, qword [rdi]
cmp qword [rax + 0x18], 8
jb 0x18005e5b6
mov rax, qword [rax]
mov dword [rsp + 0x30], esi
xor esi, esi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rdi
mov rdx, rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 0x18], rax
mov r8, qword [rsp + 0x58]
cmp r8, 8
jb 0x18005e5fa
inc r8
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x40]
call fcn.180031a90
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], rsi
mov word [rsp + 0x40], si
mov r8, qword [rsp + 0x80]
cmp r8, 8
jb 0x18005e62d
inc r8
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.180031a90
cmp qword [rbx + 0x18], 0
jne 0x18005e68a
lea rax, vtable.std::exception.0
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
lea rax, str.InitializeRequest::WinHttpOpenRequest_failed
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x70], 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rsp + 0x40], rax
lea rdx, [0x18013e2c0]
lea rcx, [rsp + 0x40]
call fcn.1800b26b0
int3
mov rcx, rbx
call fcn.18005e6c0
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800ae8d0
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005e7e0
Capabilities:
Set http header

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rbp - 0x10], 7
xor eax, eax
mov qword [rbp - 0x18], rax
mov word [rbp - 0x28], ax
lea r8d, [rax + 0xe]
lea rdx, str.Content_Type:
lea rcx, [rbp - 0x28]
call fcn.180034b10
nop
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.180033ea0
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.180055b40
nop
mov r8, qword [rbp - 0x48]
cmp r8, 8
jb 0x18005e874
inc r8
mov rdx, qword [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.180031a90
lea rdx, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae rdx, qword [rbp - 0x28]
mov r9d, 0x20000000
or r8d, 0xffffffff
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x18005e8e7
lea rax, vtable.std::exception.0
mov qword [rbp - 0x60], rax
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
lea rax, str.SetMimeType::WinHttpAddRequestHeaders_failed
mov qword [rbp - 0x38], rax
mov byte [rbp - 0x30], 1
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.1800b0358
lea rax, vtable.std::runtime_error.0
mov qword [rbp - 0x60], rax
lea rdx, [0x18013e2c0]
lea rcx, [rbp - 0x60]
call fcn.1800b26b0
nop
mov r8, qword [rbp - 0x10]
cmp r8, 8
jb 0x18005e901
inc r8
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x28]
call fcn.180031a90
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800ae8d0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18009ab70
Capabilities:
Generate random numbers via winapi

Disassembly:
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0xb0], rbx
mov rax, qword [0x180141088]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rbx, rdx
call fcn.18009ae90
mov r8, rbx
mov edx, edi
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x18009ac06
mov qword [rsp + 0x40], 0xf
mov qword [rsp + 0x38], 0
mov byte [rsp + 0x28], al
lea r8d, [rax + 0xe]
lea rdx, [0x180109938]
lea rcx, [rsp + 0x28]
call fcn.180009ff0
nop
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x50]
call fcn.18009a740
lea rdx, [0x18013ec50]
lea rcx, [rsp + 0x50]
call fcn.1800b26b0
nop
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800ae8d0
mov rbx, qword [rsp + 0xb0]
add rsp, 0xa0
pop rdi
ret
Function at 0x18009fb50
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
xor r11d, r11d
mov r10, r8
shr r10, 3
mov r9, rcx
mov ebx, r11d
test r10, r10
je 0x18009fc11
cmp r10, 4
jb 0x18009fbe5
add rcx, 0xfffffffffffffff8
lea rax, [rdx - 8]
lea rax, [rax + r10*8]
lea rcx, [rcx + r10*8]
cmp r9, rax
ja 0x18009fb93
cmp rcx, rdx
jae 0x18009fbe5
mov rdi, r10
lea rax, [r9 + 0x10]
and rdi, 0xfffffffffffffffc
mov rcx, rdx
sub rcx, r9
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add rbx, 4
movdqu xmm1, xmmword [rcx + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp rbx, rdi
jb 0x18009fbb0
cmp rbx, r10
jae 0x18009fc11
mov rdi, rdx
lea rcx, [r9 + rbx*8]
sub rdi, r9
sub r10, rbx
add rbx, r10
nop word [rax + rax]
mov rax, qword [rcx + rdi]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub r10, 1
jne 0x18009fc00
lea rbx, [rbx*8]
sub r8, rbx
je 0x18009fd80
add r9, rbx
add rdx, rbx
mov r10, r8
mov rbx, r11
shr r10, 2
test r10, r10
je 0x18009fccf
cmp r10, 8
jb 0x18009fca5
lea rax, [r10 - 1]
lea rax, [rdx + rax*4]
lea rcx, [r10 - 1]
lea rcx, [r9 + rcx*4]
cmp r9, rax
ja 0x18009fc5b
cmp rcx, rdx
jae 0x18009fca5
mov rdi, r10
lea rax, [r9 + 0x10]
and rdi, 0xfffffffffffffff8
mov rcx, rdx
sub rcx, r9
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add rbx, 8
movdqu xmm1, xmmword [rax + rcx - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm2, xmmword [rax + rcx - 0x20]
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
cmp rbx, rdi
jb 0x18009fc70
cmp rbx, r10
jae 0x18009fccf
mov rdi, rdx
lea rcx, [r9 + rbx*4]
sub rdi, r9
sub r10, rbx
add rbx, r10
nop word [rax + rax]
mov eax, dword [rcx + rdi]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r10, 1
jne 0x18009fcc0
lea rbx, [rbx*4]
sub r8, rbx
je 0x18009fd80
add r9, rbx
add rdx, rbx
test r8, r8
je 0x18009fd80
cmp r8, 0x20
jb 0x18009fd53
lea rcx, [r9 - 1]
lea rax, [rdx - 1]
add rcx, r8
add rax, r8
cmp r9, rax
ja 0x18009fd0d
cmp rcx, rdx
jae 0x18009fd53
mov r10, r8
mov rcx, rdx
and r10, 0xffffffffffffffe0
mov rax, r9
sub rcx, r9
nop dword [rax]
movdqu xmm0, xmmword [rax]
add r11, 0x20
movdqu xmm1, xmmword [rax + rcx]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm0, xmmword [rax - 0x10]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x10], xmm1
cmp r11, r10
jb 0x18009fd20
cmp r11, r8
jae 0x18009fd80
sub rdx, r9
lea rcx, [r11 + r9]
sub r8, r11
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rdx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub r8, 1
jne 0x18009fd70
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
ret
Function at 0x1800d25b4
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1800d25d4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800c34f0
or eax, 0xffffffff
jmp 0x1800d25d6
xor eax, eax
add rsp, 0x28
ret

Function at 0x1800d5438
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x1800d52d8
call fcn.1800c3560
mov dword [rax], 0x16
call fcn.1800c0d2c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1800d52c0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x1800d52c0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x1800d530a
lock or dword [rax + 0x14], 0x10
jmp 0x1800d52c0
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x1800d5327
mov rcx, qword [rbp + 0x10]
call fcn.1800d6100
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800ce74c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1800d4d10
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1800d537e
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x1800d52c0
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x1800d53ea
mov rcx, qword [rbp + 0x10]
call fcn.1800ce74c
cmp eax, 0xffffffff
je 0x1800d53d1
mov rcx, qword [rbp + 0x10]
call fcn.1800ce74c
cmp eax, 0xfffffffe
je 0x1800d53d1
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.1800ce74c
movsxd rdi, eax
lea rsi, [0x180148de0]
mov rcx, rbx
sar rdi, 6
call fcn.1800ce74c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x1800d53d8
lea rax, [0x180141440]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x1800d53ea
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1800d5420
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1800d541c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1800d541c
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x1800d52c3
jmp 0x1800d5290
Function at 0x140f7d058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140f7d1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, pe_nt_image_headers64
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140f7d089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f7d06f
add dl, dl
jne 0x140f7d096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f7d0f6
xor eax, eax
add dl, dl
jne 0x140f7d0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140f7d1ad
add dl, dl
jne 0x140f7d0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f7d0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f7d0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f7d0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140f7d0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140f7d07e
mov eax, 1
add dl, dl
jne 0x140f7d106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140f7d113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f7d0fb
sub eax, ebx
mov ebx, 1
jne 0x140f7d14c
mov ecx, 1
add dl, dl
jne 0x140f7d12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f7d13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f7d123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7d07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140f7d168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140f7d175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140f7d15d
cmp eax, 0x7d00
jae 0x140f7d19b
cmp eax, 0x500
jb 0x140f7d196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7d07e
cmp eax, 0x7f
ja 0x140f7d19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140f7d07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140f7d1d2
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 0x140f7d07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x1400077c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.1400085d0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.1400085d0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140007830
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400110a4]
mov rbx, rcx
test esi, esi
jle 0x140007960
mov rax, qword [0x1400110a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000787b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140007905
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140007860
mov rcx, rbx
call fcn.1400082b0
mov rdi, rax
test rax, rax
je 0x140007982
mov rax, qword [0x1400110a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400083f0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400110a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140007967
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400078fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140007910
add dword [0x1400110a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400110a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400078fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400077c0
nop dword [rax]
xor esi, esi
jmp 0x140007888
mov rax, qword [0x1400110a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400077c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400077c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140007f20
Capabilities:
Get thread local storage value

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