joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800059f7
Capabilities:
Copy file

Disassembly:
jmp 0x18006a92c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov esi, r8d
xor r15d, r15d
and esi, 0xf
mov r14, rdx
mov rbp, rcx
cmp esi, 2
je 0x18006aae9
lea r8d, [r15 + 1]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x18006a97c
mov byte [rsp + 0x88], 1
mov dword [rsp + 0x8c], r15d
jmp 0x18006a991
mov byte [rsp + 0x88], r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x88]
mov rcx, rax
shr rcx, 0x20
cmp ecx, 0x50
jne 0x18006ab2b
test esi, esi
je 0x18006ab2b
lea edi, [rcx - 0x4d]
mov qword [rsp + 0x30], r15
lea edx, [rcx + 0x31]
mov dword [rsp + 0x28], r15d
mov rcx, rbp
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x18006a9f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18006a9f4
mov byte [rsp + 0x88], r15b
jmp 0x18006ab1c
mov qword [rsp + 0x30], r15
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x82
mov dword [rsp + 0x20], edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18006aa58
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x18006aa58
mov byte [rsp + 0x88], r15b
mov dword [rsp + 0x8c], eax
cmp rbx, 0xffffffffffffffff
je 0x18006ab23
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18006ab45
jmp 0x18006ab23
cmp esi, 1
jne 0x18006aa86
mov dword [rsp + 0x8c], r15d
mov byte [rsp + 0x88], r15b
cmp rdi, 0xffffffffffffffff
je 0x18006aa38
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18006ab45
jmp 0x18006aa38
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.18006a31c
test eax, eax
je 0x18006aaa0
mov dword [rsp + 0x8c], eax
jmp 0x18006aa65
lea rdx, [rsp + 0x88]
mov rcx, rdi
call fcn.18006a31c
test eax, eax
jne 0x18006aa97
mov rax, qword [rsp + 0x88]
cmp qword [rsp + 0x40], rax
jle 0x18006aa5d
cmp rdi, 0xffffffffffffffff
je 0x18006aad6
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18006ab45
cmp rbx, 0xffffffffffffffff
je 0x18006aae9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x18006ab45
xor r8d, r8d
mov rdx, r14
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x18006ab0e
mov byte [rsp + 0x88], 1
mov dword [rsp + 0x8c], r15d
jmp 0x18006ab23
mov byte [rsp + 0x88], r15b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x88]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call fcn.180001375
int3
Function at 0x180005c9a
Capabilities:
Create directory

Disassembly:
jmp 0x18006abd4
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edx, edx
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x18006abf9
and dword [rsp + 0x5c], 0
mov byte [rsp + 0x58], 1
jmp 0x18006ac3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xb7
mov ecx, eax
cmp eax, edi
jne 0x18006ac33
or r9d, 0xffffffff
lea rdx, [rsp + 0x20]
mov r8d, 3
mov rcx, rbx
call fcn.1800029e1
mov ecx, eax
test eax, eax
jne 0x18006ac33
mov eax, dword [rsp + 0x30]
shr eax, 4
test al, 1
cmove ecx, edi
mov byte [rsp + 0x58], 0
mov dword [rsp + 0x5c], ecx
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180005f1f
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1800f235c
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x180135a58]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 6
lea r8, [0x180135a50]
call fcn.1800f18fc
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1800f239c
call qword [0x18016f020]
jmp 0x1800f23a2
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800061bd
Capabilities:
Enumerate pe sections

Disassembly:
jmp 0x180114b60
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180114bd8
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180114bd8
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r11d, word [r8 + 6]
add rcx, rax
mov r10d, dword [r10 + rsi + 0xc]
test r11d, r11d
je 0x180114bd8
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180114bcc
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180114bea
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180114bba
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180114bda
Function at 0x18000655a
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x1800afa48
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, [0x18012f638]
mov edi, ecx
lea rdx, str.FlsSetValue
mov ecx, 3
lea r8, [0x18012f630]
call fcn.1800af4c0
mov rdx, rbx
mov ecx, edi
test rax, rax
je 0x1800afa88
call qword [0x18016f020]
jmp 0x1800afa8e
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000687a
Capabilities:
Parse pe header

Disassembly:
jmp 0x1800deb2c
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x1800de8f7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800de8f7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800de8f7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800de8f7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800de8f7
cmp dword [rcx + 0x84], 0xe
jbe 0x1800de8f7
cmp dword [rcx + 0xf8], 0
je 0x1800de8f7
mov ecx, ebx
call fcn.1800dea88
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1800de608
cmp dword [rbp + 0x20], 0
je 0x1800de944
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800de97c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800de890

Function at 0x18000694c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
jmp 0x18006e4ec
jmp 0x18008efc0
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18006e51e
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18006e501
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1800048e0
Function at 0x1800290a0
Capabilities:
Hash data with md5

Disassembly:
jmp 0x1800290a0
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x18015a118]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rcx + 0x10], 0
xor edi, edi
mov qword [rcx + 0x54], rdi
mov rbx, rcx
mov dword [rcx + 0x5c], 0x67452301
mov dword [rcx + 0x60], 0xefcdab89
mov dword [rcx + 0x64], 0x98badcfe
mov dword [rcx + 0x68], 0x10325476
cmp qword [rdx + 0x18], 0x10
mov r8d, dword [rdx + 0x10]
jb 0x1800290f0
mov rdx, qword [rdx]
call fcn.1800030c6
cmp byte [rbx + 0x10], dil
jne 0x1800291db
mov r8d, edi
lea rdx, [rsp + 0x22]
mov r9d, 2
nop dword [rax]
mov eax, r8d
lea rdx, [rdx + 4]
inc r8d
lea rcx, [rbx + rax*4]
movzx eax, byte [rbx + rax*4 + 0x54]
mov byte [rdx - 6], al
movzx eax, byte [rcx + 0x55]
mov byte [rdx - 5], al
movzx eax, byte [rcx + 0x56]
mov byte [rdx - 4], al
movzx eax, byte [rcx + 0x57]
mov byte [rdx - 3], al
sub r9, 1
jne 0x180029110
mov ecx, dword [rbx + 0x54]
lea rdx, [0x18015a060]
shr ecx, 3
mov eax, 0x78
and ecx, 0x3f
mov r8d, 0x38
sub eax, ecx
sub r8d, ecx
cmp ecx, 0x38
mov rcx, rbx
cmovae r8d, eax
call fcn.1800030c6
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.1800030c6
lea rcx, [rbx + 2]
mov r8d, 4
nop dword [rax]
movzx eax, byte [rbx + rdi*4 + 0x5c]
lea rdx, [rbx + rdi*4]
mov byte [rcx - 2], al
lea rcx, [rcx + 4]
movzx eax, byte [rdx + 0x5d]
lea edi, [rdi + 1]
mov byte [rcx - 5], al
movzx eax, byte [rdx + 0x5e]
mov byte [rcx - 4], al
movzx eax, byte [rdx + 0x5f]
mov byte [rcx - 3], al
sub r8, 1
jne 0x180029190
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx + 0x11], xmm0
movups xmmword [rbx + 0x21], xmm0
movups xmmword [rbx + 0x31], xmm0
movups xmmword [rbx + 0x41], xmm0
mov qword [rbx + 0x54], rax
mov byte [rbx + 0x10], 1
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180003bd4
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18003c370
Capabilities:
Encode data using base64

Disassembly:
jmp 0x18003c370
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rbx, rdx
mov r14, rcx
xor ebp, ebp
mov dword [rsp + 0x20], ebp
mov qword [rcx], rbp
mov qword [rcx + 0x10], rbp
mov qword [rcx + 0x18], 0xf
mov byte [rcx], bpl
mov dword [rsp + 0x20], 1
mov rcx, rdx
mov rdx, qword [rdx + 0x18]
cmp rdx, 0x10
jb 0x18003c3c1
mov rcx, qword [rcx]
mov rdi, qword [rbx + 0x10]
add rdi, rcx
mov r15d, ebp
cmp rdx, 0x10
jb 0x18003c3d4
mov rbx, qword [rbx]
cmp rbx, rdi
je 0x18003c471
lea r12, str.________________________________________________456789:_________
movsx rsi, byte [rbx]
mov ecx, esi
call fcn.180003256
test eax, eax
jne 0x18003c465
cmp esi, 0x3d
je 0x18003c465
test esi, esi
js 0x18003c48e
movsx ecx, byte [rsi + r12]
cmp cl, 0x3f
jg 0x18003c48e
shl r15d, 6
or r15d, ecx
add ebp, 6
cmp ebp, 8
jl 0x18003c465
sub ebp, 8
mov edx, r15d
mov ecx, ebp
shr edx, cl
mov rcx, qword [r14 + 0x10]
mov r8, qword [r14 + 0x18]
cmp rcx, r8
jae 0x18003c452
lea rax, [rcx + 1]
mov qword [r14 + 0x10], rax
mov rax, r14
cmp r8, 0x10
jb 0x18003c448
mov rax, qword [r14]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x18003c465
movzx r9d, dl
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call fcn.180004b42
inc rbx
cmp rbx, rdi
jne 0x18003c3e4
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
lea rdx, str.This_contains_characters_not_legal_in_a_base64_encoded_string.
lea rcx, [rsp + 0x28]
call fcn.180002153
lea rdx, [0x180159240]
lea rcx, [rsp + 0x28]
call fcn.180007324
int3
Function at 0x18003c510
Capabilities:
Hash data using sha256

Disassembly:
jmp 0x18003c510
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x18015a118]
xor rax, rsp
mov qword [rbp], rax
mov r8, qword [rdx + 0x10]
xorps xmm1, xmm1
xor edi, edi
mov qword [rsp + 0x20], rcx
cmp qword [rdx + 0x18], 0x10
xorps xmm0, xmm0
mov rbx, rcx
mov dword [rbp - 0x40], 0x6a09e667
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x3c], 0xbb67ae85
movups xmmword [rbp - 0x10], xmm0
mov dword [rbp - 0x38], 0x3c6ef372
movups xmmword [rsp + 0x40], xmm1
mov dword [rbp - 0x34], 0xa54ff53a
movups xmmword [rsp + 0x50], xmm1
mov dword [rbp - 0x30], 0x510e527f
movups xmmword [rsp + 0x60], xmm1
mov dword [rbp - 0x2c], 0x9b05688c
movups xmmword [rsp + 0x70], xmm1
mov dword [rbp - 0x28], 0x1f83d9ab
movups xmmword [rbp - 0x80], xmm1
mov dword [rbp - 0x24], 0x5be0cd19
movups xmmword [rbp - 0x70], xmm1
mov qword [rsp + 0x38], rdi
movups xmmword [rbp - 0x60], xmm1
mov qword [rsp + 0x30], rdi
movups xmmword [rbp - 0x50], xmm1
jb 0x18003c5c1
mov rdx, qword [rdx]
lea rcx, [rsp + 0x30]
call fcn.180007077
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.180001654
mov qword [rbx], rdi
mov ecx, 0x30
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
call fcn.1800013cf
movups xmm0, xmmword [rbp - 0x20]
mov qword [rbx + 0x10], 0x20
movups xmm1, xmmword [rbp - 0x10]
mov qword [rbx + 0x18], 0x2f
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
mov byte [rax + 0x20], dil
mov qword [rbx], rax
mov rax, rbx
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180003bd4
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x6bac13b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], 0
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x6bac1482
cmp dword [rsp + 0x38], 0x402
jne 0x6bac1482
cmp qword [rsp + 0x40], 0x17
jne 0x6bac1482
cmp qword [rsp + 0x48], 0x2a
jne 0x6bac1482
mov rbx, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rbx
mov ecx, 0x28a
mov esi, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rbx
sub eax, 0x258
sub eax, esi
cmp eax, 0x12b
ja 0x6bac1482
movsxd rbx, dword [0x6bac3024]
lea rsi, [0x6bac3030]
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov rcx, rbx
lea r8, [0x6bac3028]
mov edx, ebx
mov rdi, rax
mov rbp, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.6bac1513
mov rcx, rbp
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.6bac2a00
add rsp, 0x60
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x6bac14a7
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x6bac14db
mov qword [0x6bb09910], rcx
xor r9d, r9d
lea r8, [0x6bac1490]
xor edx, edx
mov qword [rsp + 0x28], 0
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x6bac1513
Capabilities:
Create thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov ebx, edx
mov rsi, rcx
xor edx, edx
mov ecx, 0x40000
mov rdi, r8
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor edx, edx
movsxd r8, ebx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor edx, edx
mov r9, rax
cmp ebx, edx
jle 0x6bac155e
mov rax, rdx
and eax, 3
mov cl, byte [rdi + rax]
xor cl, byte [rsi + rdx]
mov byte [r9 + rdx], cl
inc rdx
jmp 0x6bac1545
mov qword [rsp + 0x28], 0
lea r8, [0x6bac1510]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
ret

Function at 0x6bac1900
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.6bac2ba0
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.6bac2ba0
mov rdx, rbx
mov r8, rsi
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x6bac1970
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x6bb095e4]
mov rsi, rcx
mov rbp, rdx
mov rbx, r8
test edi, edi
jle 0x6bac1b10
mov rax, qword [0x6bb095e8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x6bac19bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x6bac1a49
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x6bac19a0
mov rcx, rsi
call fcn.6bac26b0
mov r12, rax
test rax, rax
je 0x6bac1b45
mov rax, qword [0x6bb095e8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.6bac27e0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x6bb095e8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x6bac1b54
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x6bac1a42
sub eax, 0x40
and eax, 0xffffffbf
jne 0x6bac1ac2
add dword [0x6bb095e4], 1
cmp ebx, 8
jae 0x6bac1a75
test bl, 4
jne 0x6bac1b20
test ebx, ebx
je 0x6bac1a6a
movzx eax, byte [rbp]
mov byte [rsi], al
test bl, 2
jne 0x6bac1b34
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rbp]
lea rcx, [rsi + 8]
and rcx, 0xfffffffffffffff8
mov qword [rsi], rax
mov eax, ebx
mov rdx, qword [rbp + rax - 8]
mov qword [rsi + rax - 8], rdx
sub rsi, rcx
add ebx, esi
sub rbp, rsi
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x6bac1a6a
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rbp + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x6bac1aa5
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x6bb095e8]
mov r9, rdi
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x6bac1a42
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.6bac1900
nop word cs:[rax + rax]
xor edi, edi
jmp 0x6bac19c7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rsi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rsi + rbx - 4], eax
jmp 0x6bac1a6a
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rsi + rbx - 2], ax
jmp 0x6bac1a6a
mov rdx, rsi
lea rcx, str.Address__p_has_no_image_section
call fcn.6bac1900
mov rax, qword [0x6bb095e8]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.6bac1900
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x6bac2300
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x6bb098c0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x6bb098a0]
test rbx, rbx
je 0x6bac2354
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x6bac234b
test rsi, rsi
je 0x6bac234b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x6bac2330
lea rcx, [0x6bb098c0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x6bac26b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x6bb061f0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x6bac271f
mov rcx, r9
call fcn.6bac2580
test eax, eax
je 0x6bac271f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x6bac271d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x6bac2714
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x6bac271f
add rdx, 0x28
cmp rdx, r9
jne 0x6bac2700
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x141b8f058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x141b8f1df
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 0x141b8f089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b8f06f
add dl, dl
jne 0x141b8f096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b8f0f6
xor eax, eax
add dl, dl
jne 0x141b8f0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x141b8f1ad
add dl, dl
jne 0x141b8f0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b8f0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b8f0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b8f0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x141b8f0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x141b8f07e
mov eax, 1
add dl, dl
jne 0x141b8f106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x141b8f113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b8f0fb
sub eax, ebx
mov ebx, 1
jne 0x141b8f14c
mov ecx, 1
add dl, dl
jne 0x141b8f12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b8f13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b8f123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b8f07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x141b8f168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x141b8f175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x141b8f15d
cmp eax, 0x7d00
jae 0x141b8f19b
cmp eax, 0x500
jb 0x141b8f196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b8f07e
cmp eax, 0x7f
ja 0x141b8f19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x141b8f07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x141b8f1d2
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 0x141b8f07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001320
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13c0
call fcn.140008740
sub rsp, rax
mov rax, qword [0x14000c008]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
mov ebx, ecx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r9d, 1
mov dword [rsp + 0x24], eax
mov r10d, 0x270
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, r10
jb 0x140001374
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], r10d
mov ebp, 0x80000000
cmp ebx, ebp
lea esi, [rbx + rbp]
cmovae esi, eax
lea ebx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x140001440
lea r8, [rsp + 0x28]
nop word [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400013d0
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + rax*4 + 0x24]
mov eax, edx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x14000147e
lea rcx, [rsp + 0x20]
inc ebx
call fcn.140007740
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x14000147a
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x14000147a
lea rcx, [rsp + 0x20]
call fcn.140007740
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140001466
shr rcx, 0x20
lea edx, [rsi + rcx]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400078e0
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret