joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ba60
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
mov eax, 0x103d0
call fcn.140021d90
sub rsp, rax
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x103c0], rax
xor ebx, ebx
mov rax, rdx
cmp qword [rdx + 0x18], 8
mov rdi, rcx
mov dword [rsp + 0x20], ebx
jb 0x14000ba9b
mov rax, qword [rdx]
mov r8d, 0x7fff
lea rdx, [rsp + 0x3c0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x7ffe
ja 0x14000bb23
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp word [rsp + 0x3c0], bx
je 0x14000baec
lea rcx, [rsp + 0x3c0]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x14000bae0
mov rbx, rax
mov r8, rbx
lea rdx, [rsp + 0x3c0]
mov rcx, rdi
call fcn.14000405c
mov rax, rdi
mov rcx, qword [rsp + 0x103c0]
xor rcx, rsp
call fcn.140021d40
mov rbx, qword [rsp + 0x103f0]
add rsp, 0x103d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_expand_environment_variables
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.1400046f4
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x30]
call fcn.140023fec
int3

Function at 0x14000bd74
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3c0
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x3b0], rax
xor edi, edi
mov edx, 0x104
mov rbx, rcx
cmp qword [rcx + 0x10], rdx
jb 0x14000bdbf
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x14000bdb3
mov rax, qword [rcx]
jmp 0x14000bdb6
mov rax, rcx
mov word [rax + 0x208], di
jmp 0x14000bdcb
sub rdx, qword [rcx + 0x10]
xor r8d, r8d
call fcn.140003e04
cmp qword [rbx + 0x18], 8
jb 0x14000bdd7
mov rdx, qword [rbx]
jmp 0x14000bdda
mov rdx, rbx
mov eax, 0xffffffff
cmp qword [rbx + 0x18], rax
ja 0x14000be42
mov ecx, dword [rbx + 0x18]
call sub.KERNEL32.dll_GetTempPathW
test eax, eax
je 0x14000be78
movsxd rdx, eax
cmp rdx, qword [rbx + 0x10]
ja 0x14000be12
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14000be0c
mov rbx, qword [rbx]
mov word [rbx + rdx*2], di
jmp 0x14000be21
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140003e04
mov rcx, qword [rsp + 0x3b0]
xor rcx, rsp
call fcn.140021d40
mov rbx, qword [rsp + 0x3d8]
add rsp, 0x3c0
pop rdi
ret
lea rdx, [0x14005c260]
mov dword [rsp + 0x20], 0x5d
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x224], edi
mov word [rsp + 0x328], di
mov word [rsp + 0x228], di
mov word [rsp + 0x24], di
call fcn.140023fec
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Cannot_get_temp_path
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x20]
call fcn.1400045ec
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x20]
call fcn.140023fec
int3
Function at 0x14000beac
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
mov edx, 0x101
xor edi, edi
mov rbx, rcx
mov dword [rsp + 0x20], edx
cmp qword [rcx + 0x10], rdx
jb 0x14000befb
mov qword [rcx + 0x10], rdx
cmp qword [rcx + 0x18], 8
jb 0x14000beef
mov rax, qword [rcx]
jmp 0x14000bef2
mov rax, rcx
mov word [rax + 0x202], di
jmp 0x14000bf07
sub rdx, qword [rcx + 0x10]
xor r8d, r8d
call fcn.140003e04
cmp qword [rbx + 0x18], 8
jb 0x14000bf13
mov rdx, qword [rbx]
jmp 0x14000bf16
mov rdx, rbx
lea r8, [rsp + 0x20]
mov ecx, 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x14000bf77
mov edx, dword [rsp + 0x20]
cmp rdx, qword [rbx + 0x10]
ja 0x14000bf47
mov qword [rbx + 0x10], rdx
cmp qword [rbx + 0x18], 8
jb 0x14000bf41
mov rbx, qword [rbx]
mov word [rbx + rdx*2], di
jmp 0x14000bf56
sub rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, rbx
call fcn.140003e04
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021d40
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_get_current_username.
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.140004670
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x30]
call fcn.140023fec
int3
Function at 0x14001e684
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x400
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
cmp qword [rcx + 0x18], 8
mov rsi, r8
mov dil, dl
mov rbx, rcx
jb 0x14001e6bb
mov rcx, qword [rcx]
lea r8, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x14001e6da
cmp dword [rsp + 0x30], 0xffffffff
je 0x14001e6da
test byte [rsp + 0x30], 0x10
jne 0x14001e6fd
cmp qword [rbx + 0x18], 8
jb 0x14001e6e6
mov rcx, qword [rbx]
jmp 0x14001e6e9
mov rcx, rbx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001e6fd
test dil, dil
jne 0x14001e724
jmp 0x14001e6ff
mov al, 1
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140021d40
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.CreateDirectory_failed_for_directory:__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x60]
mov edx, 0xf
call fcn.140019cec
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x60]
call fcn.140023fec
int3

Function at 0x14001e818
Capabilities:
Check if file exists
Delete file

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x3d0
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x3c0], rax
cmp qword [rcx + 0x18], 8
mov dil, dl
mov rbx, rcx
jb 0x14001e847
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001e89b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x14001e89b
cmp eax, 5
jne 0x14001e88e
mov r8b, dil
lea edx, [rax + 0x7b]
mov rcx, rbx
call fcn.14001f948
cmp qword [rbx + 0x18], 8
jb 0x14001e87b
mov rcx, qword [rbx]
jmp 0x14001e87e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14001e89b
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14001e89b
test dil, dil
jne 0x14001e8be
xor al, al
jmp 0x14001e89d
mov al, 1
mov rcx, qword [rsp + 0x3c0]
xor rcx, rsp
call fcn.140021d40
mov rbx, qword [rsp + 0x3e8]
add rsp, 0x3d0
pop rdi
ret
lea r9, str.failed_to_delete_file__s
mov qword [rsp + 0x20], rbx
mov r8d, eax
lea rcx, [rsp + 0x30]
mov edx, 0xf
call fcn.1400199f8
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x30]
call fcn.140023fec
int3
Function at 0x14001f948
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x3e0
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
cmp qword [rcx + 0x18], 8
mov dil, r8b
mov rbx, rcx
mov dword [rsp + 0x30], edx
jb 0x14001f97b
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x14001f98a
test dil, dil
jne 0x14001f9ab
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021d40
mov rbx, qword [rsp + 0x400]
add rsp, 0x3e0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Cannot_set_file__s_attbutes_to__u
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.140019bb0
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x40]
call fcn.140023fec
int3

Function at 0x14001fc04
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x3e0
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rsp + 0x3d0], rax
mov rcx, qword [rcx + 0x30]
mov bl, r8b
cmp rcx, 0xffffffffffffffff
je 0x14001fc7c
and dword [rsp + 0x30], 0
cmp qword [rdx + 0x18], 0x10
jb 0x14001fc3c
mov rax, qword [rdx]
jmp 0x14001fc3f
mov rax, rdx
mov r8d, dword [rdx + 0x10]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14001fc61
test bl, bl
jne 0x14001fca4
jmp 0x14001fc63
mov al, 1
mov rcx, qword [rsp + 0x3d0]
xor rcx, rsp
call fcn.140021d40
add rsp, 0x3e0
pop rbx
ret
lea r8, str.trying_to_write_to_a_from_a_file_thats_not_open
mov edx, 0x15
lea rcx, [rsp + 0x40]
call fcn.140019da0
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x40]
call fcn.140023fec
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.write_to_file_failed
mov edx, 0xf
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.1400045ec
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x40]
call fcn.140023fec
int3

Function at 0x140021a9c
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140021b2d
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140021b2d
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140021b2d
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140021b11
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140021b0b
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140021b13
add rdx, 0x28
jmp 0x140021af0
xor edx, edx
test rdx, rdx
jne 0x140021b1c
xor al, al
jmp 0x140021b33
test dword [rdx + 0x24], 0x80000000
je 0x140021b29
xor al, al
jmp 0x140021b33
mov al, 1
jmp 0x140021b33
xor al, al
jmp 0x140021b33
add rsp, 0x18
ret
Function at 0x140021de4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]

Function at 0x14002aef4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.14002df84
test al, al
je 0x14002af2c
mov rax, qword gs:[0x60]
mov edx, dword [rax + 0xbc]
shr edx, 8
test dl, 1
jne 0x14002af2c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, ebx
call fcn.14002af40
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x14002b024
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x14002adf8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002adf8
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002adf8
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002adf8
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002adf8
cmp dword [rcx + 0x84], 0xe
jbe 0x14002adf8
cmp dword [rcx + 0xf8], esi
je 0x14002adf8
mov ecx, r14d
call fcn.14002af40
mov ecx, 2
call fcn.14002a308
nop
cmp byte [0x140071d18], 0
jne 0x14002aec2
mov r15d, 1
mov eax, r15d
xchg dword [0x140071d08], eax
test ebx, ebx
jne 0x14002ae6b
mov rdi, qword [0x14006f820]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140071d10]
cmp rcx, rax
je 0x14002ae62
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14000ee54]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140071d58]
jmp 0x14002ae77
cmp ebx, r15d
jne 0x14002ae7d
lea rcx, [0x140071d70]
call fcn.14002b568
nop
test ebx, ebx
jne 0x14002ae94
lea rdx, [0x14003e618]
lea rcx, [0x14003e5f0]
call fcn.14002acb8
lea rdx, [0x14003e628]
lea rcx, [0x14003e620]
call fcn.14002acb8
movzx eax, byte [0x140071d18]
test esi, esi
cmove eax, r15d
mov byte [0x140071d18], al
jmp 0x14002aec2
mov ecx, 2
call fcn.14002a360
test esi, esi
jne 0x14002aed9
mov ecx, r14d
call fcn.14002aef4
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14002ad88
Function at 0x1400368f4
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x308]
sub rsp, 0x3f0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006f820]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
mov r14, rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
jne 0x140036986
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r9, str.CommandLineToArgvW_failed
lea edx, [rbx + 0xf]
lea rcx, [rsp + 0x50]
call fcn.1400355ec
lea rdx, [0x14005c260]
lea rcx, [rsp + 0x50]
call fcn.140023fec
int3
mov esi, r15d
cmp dword [rsp + 0x20], r15d
jle 0x1400369fb
mov rdi, rax
mov rdx, qword [rdi]
mov qword [rsp + 0x48], 7
mov qword [rsp + 0x40], r15
mov word [rsp + 0x30], r15w
cmp word [rdx], r15w
jne 0x1400369b5
mov r8, r15
jmp 0x1400369c3
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x1400369b9
lea rcx, [rsp + 0x30]
call fcn.14000405c
nop
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140036b7c
nop
nop dword [rax]
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.140003af4
inc esi
add rdi, 8
cmp esi, dword [rsp + 0x20]
jl 0x140036993
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.140021d40
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400370ac
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
and dword [rsp + 0x40], 0
mov rsi, rdx
mov rbx, rcx
call fcn.14000b9c0
test al, al
jne 0x1400370d3
xor al, al
jmp 0x140037128
cmp qword [rbx + 0x18], 8
jb 0x1400370df
mov rcx, qword [rbx]
jmp 0x1400370e2
mov rcx, rbx
lea rdx, [rsp + 0x40]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test eax, eax
je 0x1400370cf
mov edx, edi
mov rcx, rsi
call fcn.140036734
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
neg rax
sbb r9, r9
and r9, qword [rsi]
cmp qword [rbx + 0x18], 8
jb 0x140037116
mov rbx, qword [rbx]
mov r8d, edi
xor edx, edx
mov rcx, rbx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
setne al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400384e8
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea r8, str._MSIExecute
xor edx, edx
mov ecx, 0x100000
call qword [sym.imp.KERNEL32.dll_OpenMutexW]
mov rdi, rax
test rax, rax
jne 0x14003851d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x14003851d
xor bl, bl
jmp 0x14003852d
mov bl, 1
test rdi, rdi
je 0x14003852d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140001f50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov r11, rsp
push rbp
sub rsp, 0x90
mov rax, qword [0x14006c010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [r11 - 0x10], rbx
xorps xmm0, xmm0
mov qword [r11 - 0x18], rsi
xor eax, eax
mov qword [r11 - 0x20], rdi
mov rbx, r9
mov qword [r11 - 0x28], r12
mov rdi, rdx
mov edx, dword [rdx + 0x20]
mov qword [r11 - 0x30], r14
mov r14, rcx
movups xmmword [rsp + 0x38], xmm0
lea rcx, [r11 - 0x60]
mov qword [r11 - 0x38], r15
mov qword [r11 - 0x50], rax
call fcn.140005e50
mov r8, qword [rsp + 0x38]
xor r12d, r12d
mov esi, r12d
cmp qword [rsp + 0x40], r8
je 0x140002062
mov r15, qword [rdi + 0x18]
mov edi, r12d
nop dword [rax]
nop word [rax + rax]
mov rbp, r15
mov qword [rsp + 0x20], r12
sub rbp, rdi
lea r8, [rsp + 0x30]
sub rbp, 0x10000
mov r9d, 1
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x140002042
mov r8, qword [rsp + 0x38]
mov r9, rbx
mov rdx, rbp
mov qword [rsp + 0x20], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test rbx, rbx
je 0x140002042
mov r8, qword [rsp + 0x38]
mov eax, 1
mov rcx, rax
cmp byte [r8 + rax - 1], r12b
jne 0x140002047
cmp rax, rbx
je 0x1400020ca
inc rax
cmp rcx, rbx
jb 0x140002025
jmp 0x140002047
mov r8, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
inc rsi
sub rax, r8
add rdi, 0x10000
cmp rsi, rax
jb 0x140001fd0
mov rbp, r12
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
test r8, r8
je 0x14000216f
mov rdx, qword [rsp + 0x48]
mov rax, r8
sub rdx, r8
cmp rdx, 0x1000
jb 0x140002167
mov r8, qword [r8 - 8]
add rdx, 0x27
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002167
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
movsxd rdi, dword [rsp + 0xc0]
cmp edi, 1
jle 0x14000211c
lea rsi, [rdi*4 + 0xffc]
add rsi, rbp
nop dword [rax]
nop word [rax + rax]
sub rsi, 4
mov dword [rsp + 0x20], 0x40
mov rdx, rsi
mov r9d, 0x3000
mov r8d, 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
dec edi
test edi, edi
jg 0x1400020f0
jmp 0x140002140
lea rdx, [rbp + 0x1000]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 4
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov r8, rbx
mov rdx, rbp
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8, qword [rsp + 0x38]
jmp 0x140002065
mov rcx, r8
call fcn.140059254
mov rax, rbp
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140058ed0
add rsp, 0x90
pop rbp
ret
Function at 0x140003020
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.14005a0f0
sub rsp, rax
mov rax, qword [0x14006c010]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
cmp ecx, edx
mov edi, ecx
mov ebx, edx
cmovle ebx, ecx
cmovle edi, edx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov edx, 1
mov dword [rsp + 0x24], eax
mov r9d, 0x270
nop dword [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x24], eax
inc rdx
cmp rdx, r9
jb 0x140003080
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], r9d
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 0x140003140
lea r8, [rsp + 0x28]
nop dword [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 r9, 1
jne 0x1400030d0
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 0x14000317e
lea rcx, [rsp + 0x20]
inc ebx
call fcn.140006820
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x14000317a
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x14000317a
lea rcx, [rsp + 0x20]
call fcn.140006820
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140003166
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.140058ed0
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
Function at 0x140006820
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x140006881
lea r8, [r10 + 8]
nop dword [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 r9, 1
jne 0x140006840
mov ecx, dword [r10]
jmp 0x14000696a
cmp ecx, 0x4e0
jb 0x14000696a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400068a0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1400068f0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
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 eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140008e10
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x140008e6d
lea rbx, [0x14005d9d0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140008e54
cmp r10, 2
jb 0x140008e54
cmp byte [r9], r8b
jne 0x140008e54
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140008e30
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140008eaf
lea rbx, [0x14005d9d0]
cmp r8b, 0x23
jne 0x140008e93
cmp byte [r9], r8b
jne 0x140008e93
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140008e80
mov rbx, qword [rsp + 8]
not eax
ret