joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401ec138
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x1402ab2d0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1401ec18e
cmp word [rdx], r9w
jne 0x1401ec18e
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1401ec193
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1401ec312
mov r11d, SafeArrayGetDim
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1401ec2dd
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1401ec1db
cmp rcx, r8
jae 0x1401ec1fb
cmp word [rcx], r9w
jne 0x1401ec1db
add rax, 4
mov edx, r9d
jmp 0x1401ec1de
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1401ec1b0
jmp 0x1401ec312
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1401ec2d6
cmp dword [rsp + 0x80], edi
je 0x1401ec2d6
lea r9, [0x1402ab2d0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1401ec2b0
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1401ec263
mov word [rbx], bp
jmp 0x1401ec30f
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], SafeArrayGetDim
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1401ec27e
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1401ec30f
cmp word [rsp + 0x70], bp
jne 0x1401ec2bc
cmp rbx, rsi
je 0x1401ec25b
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1401eb080
cmp word [rsp + 0x70], bp
je 0x1401ec312
mov word [rbx], SafeArrayGetDim
jmp 0x1401ec30f
mov rcx, r15
lea r9, [0x1402ab2d0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1401ec30c
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1401ec312
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401f0158
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401f01df
mov rsi, rbx
cmp word [rax], bp
je 0x1401f019e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401f0188
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401f0184
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401e7bb0
mov rdi, rax
test rax, rax
je 0x1401f01cc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401ce140
mov rbp, rdi
xor ecx, ecx
call fcn.1401e7b50
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401f4484
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1401eb080
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1401eb080
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1401f45d1
cmp rax, 0xffffffffffffffff
je 0x1401f45d1
xor edi, edi
test rbp, rbp
jle 0x1401f457f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401e9e90
mov rbx, rax
test rax, rax
jne 0x1401f450c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1401f4575
mov edx, 0x8000
mov ecx, r14d
call fcn.1401e72ac
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1401ebb20
cmp eax, 0xffffffff
je 0x1401f4555
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401f451c
mov edx, r15d
mov ecx, r14d
call fcn.1401e72ac
jmp 0x1401f4575
cmp byte [rsi + 0x38], dil
je 0x1401f456c
cmp dword [rsi + 0x34], 5
jne 0x1401f456c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
cmp byte [rsi + 0x30], dil
je 0x1401f4575
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401e7b50
jmp 0x1401f45e3
jns 0x1401f45e3
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1401eb080
cmp rax, 0xffffffffffffffff
jne 0x1401f459d
cmp byte [rsi + 0x30], dil
je 0x1401f45e3
jmp 0x1401f45d9
mov ecx, r14d
call fcn.1401e619c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401f45e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayGetDim
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayGetDim
jmp 0x1401f45e3
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1401f45de
mov edi, dword [rsi + 0x2c]
jmp 0x1401f45e3
mov edi, 0x16
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1401eb080
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x14000116c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rsp + 0x48], rax
cmp qword [rcx + 0x18], 7
mov rsi, r8
mov rbx, rdx
jbe 0x140001197
mov rcx, qword [rcx]
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1400011cc
xor al, al
jmp 0x140001203
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbp
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x140001200
mov eax, dword [rsp + 0x40]
cmp rax, rsi
jne 0x140001200
mov dil, 1
mov al, dil
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140001bf0
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140001220
Capabilities:
Create process on windows
Create process suspended
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x250], rax
lea rcx, [0x1400168a0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rcx, [0x1400168b0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, [0x1400168c0]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x1400168d8]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor r9d, r9d
xor r8d, r8d
mov rdi, rax
xor ecx, ecx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x1a]
call rbx
test eax, eax
js 0x140001447
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400014d0
mov rdx, rax
lea r8, str._systxpcosx.exe
lea rcx, [rbp - 0x58]
call fcn.140001608
lea rcx, [rsp + 0x50]
call fcn.14000146c
lea rdx, [rbp + 0x40]
lea rcx, [rsp + 0x50]
call fcn.1400014d0
mov rdx, rax
lea r8, str._syschostbvv.exe
lea rcx, [rbp - 0x78]
call fcn.140001608
lea rcx, [rsp + 0x50]
call fcn.14000146c
mov r8d, 0x4b400
lea rdx, [0x140019a80]
lea rcx, [rbp - 0x58]
call fcn.14000116c
mov r8d, 0x6bc00
lea rdx, [0x140064e80]
lea rcx, [rbp - 0x78]
call fcn.14000116c
cmp qword [rbp - 0x40], 7
lea rcx, [rbp - 0x58]
mov ebx, 2
cmova rcx, qword [rbp - 0x58]
mov edx, ebx
call rdi
cmp qword [rbp - 0x60], 7
lea rcx, [rbp - 0x78]
mov edx, ebx
cmova rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edx, edx
mov dword [rbp - 0x30], 0x68
lea r8d, [rbx + 0x5e]
lea rcx, [rbp - 0x28]
call fcn.14000d8a0
cmp qword [rbp - 0x40], 7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x58]
cmova rcx, qword [rbp - 0x58]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
xor edx, edx
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400013d4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp - 0x60], 7
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp - 0x78]
cmova rcx, qword [rbp - 0x78]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
xor r9d, r9d
and qword [rsp + 0x38], 0
xor r8d, r8d
and qword [rsp + 0x30], 0
xor edx, edx
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140001433
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x78]
call fcn.14000146c
lea rcx, [rbp - 0x58]
call fcn.14000146c
xor eax, eax
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140001bf0
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140002174
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400021be
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400021be
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400021be
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400021be
cmp dword [rcx + 0x84], 0xe
jbe 0x1400021be
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400021c0
xor al, al
add rsp, 0x28
ret

Function at 0x140005c74
Capabilities:
Parse pe header

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

Function at 0x140005e78
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005c74
Function at 0x140008504
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000858b
mov rsi, rbx
cmp word [rax], bp
je 0x14000854a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140008534
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140008530
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140008f24
mov rdi, rax
test rax, rax
je 0x140008578
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000dc60
mov rbp, rdi
xor ecx, ecx
call fcn.1400071cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000d6d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000d6f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14000d6f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140022880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x13b8
call fcn.1400aced0
sub rsp, rax
mov esi, edx
mov edi, ecx
mov rax, qword [0x1400b97c0]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
movabs rbx, 0x67526c9f73aa974f
call sub.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_
mov dword [rsp + 0x13ac], 0xffffffff
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 4], eax
mov ecx, 1
lea rdx, [rbx + 0x51ca9e4f]
lea r8, [rbx - 0x16dca4cf]
lea r9, [rbx + 0x302a075]
lea r10, [rbx + 0x473fbaac]
mov r11, rbx
cmp rcx, 0x270
mov r14, rdx
cmovb r14, r8
jmp 0x140022912
je 0x140022947
cmp r11, r9
jl 0x140022930
cmp r11, r10
jae 0x14002293c
cmp r11, r9
jne 0x140022912
jmp 0x140022988
cmp r11, rbx
jge 0x140022910
cmp r11, r8
jne 0x140022912
jmp 0x140022950
cmp r11, rdx
jb 0x140022972
cmove r11, r9
jmp 0x140022912
mov r11, r14
jmp 0x140022912
mov r11d, eax
shr r11d, 0x1e
xor r11d, eax
imul eax, r11d, 0x6c078965
add eax, ecx
mov r11, qword [rsp + 0x20]
mov dword [r11 + rcx*4 + 4], eax
mov r11, r10
jmp 0x1400228f8
xor r14d, r14d
cmp r11, r10
sete r14b
cmove r11, rbx
add rcx, r14
jmp 0x1400228f8
mov rax, qword [rsp + 0x20]
mov dword [rax], 0x270
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x24], esi
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0x28]
mov r8d, edi
mov r9d, esi
call fcn.140088f00
mov esi, eax
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.1400acf30
mov eax, esi
add rsp, 0x13b8
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400895f0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movabs rsi, 0xe8ceae8c9b30c5bd
movabs rdi, 0xe8ceae8c141683da
movabs rbx, 0xa41f8117c26d29ad
movabs r14, 0xa41f811716a90b8b
mov qword [rsp + 0x20], rcx
mov rax, qword [rsp + 0x20]
mov eax, dword [rax]
mov dword [rsp + 0x34], eax
lea r15, [rdi + 0x45732b82]
lea r10, [rdi - 0x139e64f3]
lea r11, [rbx + 0x3b9195f1]
lea rbp, [rbx + 0xf636ebc]
lea r12, [r14 + 0x5c214b4b]
mov r13d, 0x80000000
mov rax, r15
jmp 0x140089680
mov rcx, qword [rsp + 0x20]
lea rax, [rdi + 0x413ad972]
cmp dword [rcx], 0x4e0
cmovb rax, rdi
nop dword [rax]
cmp rax, r15
jge 0x140089770
cmp rax, rdi
jae 0x1400897a0
cmp rax, r10
jne 0x140089680
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov eax, 0x270
mov rdx, r14
cmp rax, 0x4e0
mov rcx, r11
cmovb rcx, rbx
jmp 0x1400896c6
je 0x1400897db
cmp rdx, rbx
jge 0x1400896e0
cmp rdx, r12
jae 0x1400896c0
cmp rdx, r14
jne 0x1400896c6
mov rdx, rcx
jmp 0x1400896c6
cmp rdx, rbp
jge 0x140089746
cmp rdx, rbx
jne 0x1400896c6
mov rdx, qword [rsp + 0x28]
mov edx, dword [rdx + rax*4 - 0x9bc]
and edx, r13d
mov r8, qword [rsp + 0x28]
mov r8d, dword [r8 + rax*4 - 0x9b8]
mov r9d, r8d
and r9d, 0x7ffffffe
or r9d, edx
shr r9d, 1
and r8d, 1
neg r8d
and r8d, 0x9908b0df
mov rdx, qword [rsp + 0x28]
xor r8d, dword [rdx + rax*4 - 0x388]
xor r8d, r9d
mov rdx, qword [rsp + 0x28]
mov dword [rdx + rax*4 + 4], r8d
mov rdx, rbp
jmp 0x1400896c6
cmp rdx, r11
jl 0x140089754
cmove rdx, r12
jmp 0x1400896c6
xor ecx, ecx
cmp rdx, rbp
sete cl
cmove rdx, r14
add rax, rcx
jmp 0x1400896a9
cmp rax, rsi
jge 0x1400897c0
lea rcx, [rdi + 0x45732b82]
cmp rax, rcx
jne 0x140089680
mov ecx, dword [rsp + 0x34]
lea rax, [rsi + 0x3811e93]
cmp ecx, 0x270
cmove rax, r10
jmp 0x140089680
lea rcx, [rdi + 0x413ad972]
cmp rax, rcx
jae 0x1400897e3
cmp rax, rdi
cmove rax, rsi
jmp 0x140089680
lea rcx, [rsi + 0x3811e93]
cmp rax, rcx
jge 0x140089666
cmp rax, rsi
jne 0x140089680
jmp 0x14008981d
mov rax, rsi
jmp 0x140089680
jne 0x140089680
mov rcx, qword [rsp + 0x20]
mov r13, r10
mov rdi, rsi
mov rsi, r11
call fcn.140089880
mov r11, rsi
mov rsi, rdi
movabs rdi, 0xe8ceae8c141683da
mov r10, r13
mov r13d, 0x80000000
mov rax, rdi
jmp 0x140089680
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x20]
mov edx, dword [rcx]
lea r8d, [rdx + 1]
mov dword [rcx], r8d
mov eax, dword [rax + rdx*4 + 4]
mov ecx, eax
shr ecx, 0xb
mov rdx, qword [rsp + 0x20]
and ecx, dword [rdx + 0x1384]
xor ecx, eax
mov eax, ecx
shl eax, 7
and eax, 0x9d2c5680
xor eax, ecx
mov ecx, eax
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140089880
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
movabs rax, 0xec43a8269ea6105a
movabs rdx, 0xec43a8261100e01d
mov qword [rsp], rcx
xor ecx, ecx
lea r8, [rdx + 0x61b69cbc]
lea r9, [rdx + 0x19c27dbf]
lea r10, [rdx - 0x35a268c]
lea r11, [rax + 0x79e8a38]
lea rsi, [rax + 0x21d1a1c8]
lea rdi, [rdx + 0x1f489fc8]
mov ebx, 0x80000000
mov r14d, 0xe3
mov r12, rax
jmp 0x1400898f0
lea r13, [rdx + 0x234603e5]
cmp r12, r11
cmove r12, r13
nop
cmp r12, r8
jge 0x140089920
cmp r12, r9
jb 0x140089940
cmp r12, rdi
jae 0x140089995
xor r13d, r13d
cmp r12, r9
sete r13b
cmove r12, rax
add rcx, r13
jmp 0x1400898f0
cmp r12, r11
jge 0x140089960
cmp r12, rax
jae 0x140089a06
cmp r12, r8
cmove r15, r14
cmove r12, rdx
jmp 0x1400898f0
cmp r12, rdx
jae 0x140089a1f
cmp r12, r10
cmove r12, r8
jmp 0x1400898f0
lea r13, [rax + 0x12bcbff5]
cmp r12, r13
jl 0x1400898e1
cmp r12, rsi
jge 0x140089a38
lea r13, [rax + 0x12bcbff5]
xor ebp, ebp
cmp r12, r13
sete bpl
cmove r12, rdx
add r15, rbp
jmp 0x1400898f0
lea r13, [rdx + 0x234603e5]
cmp r12, r13
jae 0x140089a98
cmp r12, rdi
jne 0x1400898f0
mov r12, qword [rsp]
mov ebp, dword [r12 + rcx*4 + 0x9c4]
and ebp, ebx
mov r12, qword [rsp]
mov r12d, dword [r12 + rcx*4 + 0x9c8]
mov r13d, r12d
and r13d, 0x7ffffffe
or r13d, ebp
shr r13d, 1
and r12d, 1
neg r12d
and r12d, 0x9908b0df
mov rbp, qword [rsp]
xor r12d, dword [rbp + rcx*4 + 0xff8]
xor r12d, r13d
mov r13, qword [rsp]
mov dword [r13 + rcx*4 + 4], r12d
mov r12, r9
jmp 0x1400898f0
jne 0x1400898f0
cmp rcx, 0xe3
mov r12, r10
cmovb r12, rdi
jmp 0x1400898f0
jne 0x1400898f0
cmp r15, 0x26f
mov r12, r11
cmovb r12, rsi
jmp 0x1400898f0
jne 0x1400898f0
mov r12, qword [rsp]
mov ebp, dword [r12 + r15*4 + 0x9c4]
and ebp, ebx
mov r12, qword [rsp]
mov r12d, dword [r12 + r15*4 + 0x9c8]
mov ebx, r12d
and ebx, 0x7ffffffe
or ebx, ebp
shr ebx, 1
and r12d, 1
neg r12d
and r12d, 0x9908b0df
mov rbp, qword [rsp]
xor r12d, dword [rbp + r15*4 - 0x388]
xor r12d, ebx
mov rbx, qword [rsp]
mov dword [rbx + r15*4 + 4], r12d
mov ebx, 0x80000000
mov r12, r13
jmp 0x1400898f0
jne 0x1400898f0
mov rax, qword [rsp]
mov ecx, 0x80000000
and ecx, dword [rax + 0x1380]
mov rax, qword [rsp]
mov eax, dword [rax + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, ecx
shr edx, 1
and eax, 1
neg eax
and eax, 0x9908b0df
mov rcx, qword [rsp]
xor eax, dword [rcx + 0x634]
xor eax, edx
mov rcx, qword [rsp]
mov dword [rcx + 0x9c0], eax
mov rax, qword [rsp]
mov dword [rax], 0
add rsp, 8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14008abe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov dword [rsp + 4], edx
movabs r8, 0x87a9c9ac8adf9554
movabs r9, 0x18dcc592ad44d79c
movabs rdx, 0x18dcc592435c0d9f
movzx eax, byte [0x1400b998b]
mov byte [rsp + 3], al
mov rax, qword [0x1400b86c8]
movabs r10, 0xe307ec5d48f09d2e
add r10, rax
mov qword [rsp + 0x18], r10
movabs r10, 0xe307ec5d48f09d42
add r10, rax
mov qword [rsp + 0x10], r10
lea r10, [r9 + 0x4e2defc1]
lea r14, [r9 - 0x2509b495]
xor r13d, r13d
jmp 0x14008ac70
cmp r10, rsi
cmove r10, r9
nop word cs:[rax + rax]
cmp r10, r14
jge 0x14008acb0
cmp r10, rdx
jge 0x14008ace0
lea rsi, [rdx - 0x4fcebd7]
cmp r10, rsi
jge 0x14008ad4e
lea rsi, [rdx - 0x40bde6d2]
cmp r10, rsi
jne 0x14008ac70
movsxd rax, r13d
add rax, rcx
mov edi, 1
mov r10, rdx
jmp 0x14008ac70
lea rsi, [r9 + 0x35b544f5]
cmp r10, rsi
jae 0x14008ad10
lea rsi, [r9 - 0x5d8773]
cmp r10, rsi
jb 0x14008ad57
cmp r10, r9
jb 0x14008ada4
jne 0x14008ac70
jmp 0x14008aedc
lea rsi, [rdx + 0x2b75f76a]
cmp r10, rsi
jae 0x14008ad72
cmp r10, rdx
jne 0x14008ac70
mov dword [rsp + 8], edi
mov r10, rsi
jmp 0x14008ac70
lea rbx, [r9 + 0x4e2defc1]
cmp r10, rbx
jb 0x14008ac5b
lea rsi, [r9 + 0x4e733916]
cmp r10, rsi
jae 0x14008adba
cmp r10, rbx
jne 0x14008ac70
lea r10, [r9 - 0x5d8773]
cmp r13d, dword [rsp + 4]
cmovb r10, rsi
jmp 0x14008ac70
cmove r10, r14
jmp 0x14008ac70
lea rsi, [r9 + 0x4e2defc1]
xor ebx, ebx
cmp r10, r14
sete bl
cmove r10, rsi
add r13d, ebx
jmp 0x14008ac70
lea rbx, [rdx + 0x31dfd3c7]
cmp r10, rbx
jae 0x14008aea2
cmp r10, rsi
jne 0x14008ac70
mov r11d, dword [rsp + 8]
lea r10, [r9 + 0x35b544f5]
cmp r11d, 2
cmove r10, rbx
jmp 0x14008ac70
cmp r10, rsi
mov r11d, 2
cmove edi, r11d
cmove r10, rdx
jmp 0x14008ac70
mov r11, rcx
movsxd r10, r13d
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x20], rcx
movzx esi, byte [rsp + 3]
and esi, 1
mov dword [rsp + 0xc], esi
lea rbp, [r8 + 0x1bb3b403]
jmp 0x14008ae2e
mov rbx, qword [rsp + 0x20]
movsxd rcx, r15d
mov ebp, ecx
mov r15d, 0xcccccccd
imul rbp, r15
shr rbp, 0x24
shl ebp, 2
lea ebp, [rbp + rbp*4]
mov r15d, ecx
sub r15d, ebp
mov rbp, qword [rsp + 0x18]
movzx ebp, byte [rbp + r15]
xor bpl, byte [rbx + rcx]
lea rbx, [0x1400b9988]
mov byte [rcx + rbx], bpl
lea r15d, [rcx + 1]
cmp r15d, 3
cmove rsi, r12
mov rbp, rsi
lea rbx, [r8 + 0x1bb3b403]
lea rsi, [r8 + 0x51e2ce7f]
lea r12, [r8 + 0x148e58cf]
jmp 0x14008ae52
je 0x14008ae91
cmp rbp, rbx
jae 0x14008ae70
cmp rbp, r12
jae 0x14008ae50
cmp rbp, r8
jne 0x14008ae52
jmp 0x14008aeb5
cmp rbp, rsi
jae 0x14008ade0
cmp rbp, rbx
jne 0x14008ae52
mov ebx, dword [rsp + 0xc]
cmp ebx, 1
cmove rsi, r8
xor r15d, r15d
mov rbp, rsi
jmp 0x14008ae2e
mov byte [0x1400b998b], 1
mov byte [rsp + 3], 1
mov rbp, r8
jmp 0x14008ae2e
mov r11d, 0
cmove rax, r11
cmove r10, r9
jmp 0x14008ac70
mov rcx, r11
movzx r11d, word [r11 + r10]
lea r10, [rdx - 0x4fcebd7]
lea rsi, [rdx - 0x40bde6d2]
cmp r11w, word [0x1400b9988]
cmove r10, rsi
jmp 0x14008ac70
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400ad7f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ad83e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ad83e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ad83e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ad83e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ad83e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ad840
xor al, al
add rsp, 0x28
ret