joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060cd8
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140060cd0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140062780
or eax, 0xffffffff
jmp 0x140060cd2
xor eax, eax
add rsp, 0x28
ret
jmp 0x140060cb0

Function at 0x1400612c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400610c0

Function at 0x1400661e4
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.14005da98
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005da98
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140066334
cmp rax, 0xffffffffffffffff
je 0x140066334
xor edi, edi
test rbp, rbp
jle 0x1400662df
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140066cf0
mov rbx, rax
test rax, rax
jne 0x14006626c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400662d5
mov edx, 0x8000
mov ecx, r14d
call fcn.14006201c
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.14005f51c
cmp eax, 0xffffffff
je 0x1400662b5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14006627c
mov edx, r15d
mov ecx, r14d
call fcn.14006201c
jmp 0x1400662d5
cmp byte [rsi + 0x38], dil
je 0x1400662cc
cmp dword [rsi + 0x34], 5
jne 0x1400662cc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400662d5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140062a08
jmp 0x140066348
jns 0x140066348
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005da98
cmp rax, 0xffffffffffffffff
jne 0x140066300
cmp byte [rsi + 0x30], dil
je 0x140066348
mov edi, dword [rsi + 0x2c]
jmp 0x140066348
mov ecx, r14d
call fcn.140064ffc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140066348
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140066348
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140066341
mov eax, dword [rsi + 0x2c]
jmp 0x140066346
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005da98
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 0x140066adc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140066af2
mov al, 1
jmp 0x140066b52
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140066b03
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140066b50
mov ecx, dword [rcx + 0x18]
nop
call fcn.140064ffc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140066b50
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140066b50
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140066b50
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140066b52
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140068000
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 0x140068087
mov rsi, rbx
cmp word [rax], bp
je 0x140068046
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140068030
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14006802c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140062a44
mov rdi, rax
test rax, rax
je 0x140068074
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140057c70
mov rbp, rdi
xor ecx, ecx
call fcn.140062a08
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 0x14000ac60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
mov rax, qword [0x1401bd0e0]
xor rax, rsp
mov qword [rsp + 0x110], rax
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0xd8]
call fcn.1400124a0
nop
mov byte [rsp + 0xf8], 0x77
mov byte [rsp + 0xf9], 0x6d
mov byte [rsp + 0xfa], 0x69
mov byte [rsp + 0xfb], 0x63
mov byte [rsp + 0xfc], 0x20
mov byte [rsp + 0xfd], 0x63
mov byte [rsp + 0xfe], 0x73
mov byte [rsp + 0xff], 0x70
mov byte [rsp + 0x100], 0x72
mov byte [rsp + 0x101], 0x6f
mov byte [rsp + 0x102], 0x64
mov byte [rsp + 0x103], 0x75
mov byte [rsp + 0x104], 0x63
mov byte [rsp + 0x105], 0x74
mov byte [rsp + 0x106], 0x20
mov byte [rsp + 0x107], 0x67
mov byte [rsp + 0x108], 0x65
mov byte [rsp + 0x109], 0x74
mov byte [rsp + 0x10a], 0x20
mov byte [rsp + 0x10b], 0x75
mov byte [rsp + 0x10c], 0x75
mov byte [rsp + 0x10d], 0x69
mov byte [rsp + 0x10e], 0x64
lea rdx, [rsp + 0xf8]
lea rcx, [rsp + 0x98]
call fcn.140009ec0
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0xd8]
call fcn.1400121e0
lea rcx, [rsp + 0x98]
call fcn.1400120e0
lea rcx, [rsp + 0x20]
call fcn.140001eb0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0xd8]
call fcn.140011e30
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xd8]
call fcn.140011ea0
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov dl, 0xa
lea rcx, [rsp + 0xd8]
call fcn.140011b40
mov qword [rsp + 0x38], rax
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x40]
call fcn.140010f90
mov qword [rsp + 0x48], rax
mov r8d, 1
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x48]
call fcn.140010f90
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x68], rax
mov r9, qword [rsp + 0x58]
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0xb8]
call fcn.14001dcd0
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xd8]
call fcn.1400121e0
lea rcx, [rsp + 0xb8]
call fcn.1400120e0
mov r8, 0xffffffffffffffff
lea rdx, str.__n_r_t
lea rcx, [rsp + 0xd8]
call fcn.140011a90
inc rax
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.140011f50
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x138]
call fcn.140012240
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0xd8]
call fcn.1400120e0
mov rax, qword [rsp + 0x138]
mov rcx, qword [rsp + 0x110]
xor rcx, rsp
call fcn.14014fcd0
add rsp, 0x128
ret
Function at 0x14000bf80
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x288
mov rax, qword [0x1401bd0e0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov dword [rsp + 0x40], 0
mov edx, 0x110
lea rcx, [rsp + 0x160]
call fcn.140003f60
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 1
mov rdx, qword [rsp + 0x2a0]
lea rcx, [rsp + 0x160]
call fcn.140010bb0
nop
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.14000ec70
mov qword [rsp + 0x50], rax
mov byte [rsp + 0x20], 0
mov r9b, 1
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x110]
call fcn.14001de50
nop
lea rdx, str.os_crypt
lea rcx, [rsp + 0x110]
call fcn.14001dfd0
mov qword [rsp + 0x58], rax
lea rdx, str.encrypted_key
mov rcx, qword [rsp + 0x58]
call fcn.14001dfd0
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.14001e010
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x120]
call fcn.140005eb0
nop
lea rcx, [rsp + 0x70]
call fcn.1400120e0
mov r9, 0xffffffffffffffff
mov r8d, 5
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x120]
call fcn.140011a20
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x120]
call fcn.1400121e0
lea rcx, [rsp + 0x90]
call fcn.1400120e0
lea rcx, [rsp + 0x120]
call fcn.140011230
mov dword [rsp + 0xf0], eax
lea rcx, [rsp + 0x120]
call fcn.140011de0
mov qword [rsp + 0xf8], rax
lea rax, [rsp + 0x100]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xf0]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
mov eax, dword [rsp + 0x100]
mov r8d, eax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x140]
call fcn.140012400
lea rdx, [rsp + 0x140]
mov rcx, qword [rsp + 0x298]
call fcn.140012240
mov eax, dword [rsp + 0x40]
or eax, 1
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x140]
call fcn.1400120e0
nop
lea rcx, [rsp + 0x120]
call fcn.1400120e0
nop
lea rcx, [rsp + 0x110]
call fcn.14000ecc0
nop
lea rcx, [rsp + 0x160]
call fcn.140005e00
nop
mov rcx, qword [rsp + 0x2a0]
call fcn.1400120e0
mov rax, qword [rsp + 0x298]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14014fcd0
add rsp, 0x288
ret
Function at 0x14000c8f0
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rcx
mov eax, 0x101e8
call fcn.140150ac0
sub rsp, rax
mov rax, qword [0x1401bd0e0]
xor rax, rsp
mov qword [rsp + 0x101d0], rax
mov dword [rsp + 0x188], 0x7fff
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x14000ca09
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x1d0]
mov rdx, rax
lea rcx, [rsp + 0x190]
call fcn.1400117f0
nop
lea rcx, [rsp + 0x20]
call fcn.140001eb0
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x190]
call fcn.1400113f0
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x190]
call fcn.140011460
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov r9, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xc8]
call fcn.14001e580
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x50]
lea rcx, [0x1401c7050]
call fcn.1400121e0
lea rcx, [rsp + 0xc8]
call fcn.1400120e0
nop
lea rcx, [rsp + 0x190]
call fcn.1400116e0
lea rdx, [rsp + 0x188]
lea rcx, [rsp + 0x1d0]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14000caf9
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x1d0]
mov rdx, rax
lea rcx, [rsp + 0x1b0]
call fcn.1400117f0
nop
lea rcx, [rsp + 0x21]
call fcn.140001eb0
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x1b0]
call fcn.1400113f0
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x1b0]
call fcn.140011460
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x78], rax
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0xe8]
call fcn.14001e580
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [0x1401c7030]
call fcn.1400121e0
lea rcx, [rsp + 0xe8]
call fcn.1400120e0
nop
lea rcx, [rsp + 0x1b0]
call fcn.1400116e0
lea rdx, str.appdata
lea rcx, [rsp + 0x108]
call fcn.140009bc0
mov qword [rsp + 0x88], rax
mov rdx, qword [rsp + 0x88]
lea rcx, [0x1401c7090]
call fcn.1400121e0
lea rcx, [rsp + 0x108]
call fcn.1400120e0
lea rdx, str.localappdata
lea rcx, [rsp + 0x128]
call fcn.140009bc0
mov qword [rsp + 0x90], rax
mov rdx, qword [rsp + 0x90]
lea rcx, [0x1401c6fd0]
call fcn.1400121e0
lea rcx, [rsp + 0x128]
call fcn.1400120e0
lea r8, str.MicrosoftWindowsStart_MenuProgramsStartup_
lea rdx, [0x1401c7090]
lea rcx, [rsp + 0x148]
call fcn.14001d010
mov qword [rsp + 0x98], rax
mov rdx, qword [rsp + 0x98]
lea rcx, [0x1401c70c0]
call fcn.1400121e0
lea rcx, [rsp + 0x148]
call fcn.1400120e0
mov edx, 0x3e8
lea rcx, [rsp + 0x168]
call fcn.140009c10
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xa0]
lea rcx, [0x1401c7070]
call fcn.1400121e0
lea rcx, [rsp + 0x168]
call fcn.1400120e0
mov rax, qword [rsp + 0x101f0]
mov rcx, qword [rsp + 0x101d0]
xor rcx, rsp
call fcn.14014fcd0
add rsp, 0x101e8
ret
Function at 0x14000dc10
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.140014cc0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x14000f990
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [0x1401bd0e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x90], 0
jg 0x14000f9c4
xor eax, eax
jmp 0x14000fbba
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x68], 0
je 0x14000f9f5
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140010750
jmp 0x14000fbba
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x80]
call fcn.140015ae0
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x14000faa3
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.14000fbd0
mov rax, qword [rax]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x80]
call fcn.140015d00
mov r8, qword [rsp + 0x20]
mov rdx, rax
mov rcx, qword [rsp + 0x88]
call fcn.140017fc0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
call fcn.140015c60
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x80], 0
je 0x14000fbaa
mov rcx, qword [rsp + 0x80]
call fcn.1400153d0
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x50], 0xfff
jbe 0x14000fb58
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140166ed8
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x88]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x28], 0xfff
je 0x14000fb53
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
jmp 0x14000fbba
jmp 0x14000facf
cmp qword [rsp + 0x50], 0
jbe 0x14000fbaa
mov rax, qword [rsp + 0x80]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x88]
call fcn.140166ed8
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14014fcd0
add rsp, 0x78
ret
Function at 0x140010210
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
mov rax, qword [0x1401bd0e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.140012630
mov dword [rsp + 0x50], eax
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x50]
call fcn.140017f00
movzx eax, al
test eax, eax
je 0x140010266
lea rcx, [rsp + 0xe8]
call fcn.140017eb0
jmp 0x1400104da
mov rcx, qword [rsp + 0xe0]
call fcn.140015ce0
test rax, rax
je 0x1400102d2
mov rcx, qword [rsp + 0xe0]
call fcn.140015ce0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0xe0]
call fcn.140015bd0
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
jae 0x1400102d2
lea rcx, [rsp + 0xe8]
call fcn.140010500
mov byte [rsp + 0x40], al
mov rcx, qword [rsp + 0xe0]
call fcn.1400159d0
movzx ecx, byte [rsp + 0x40]
mov byte [rax], cl
mov eax, dword [rsp + 0xe8]
jmp 0x1400104da
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x80], 0
jne 0x1400102ee
call fcn.140012630
jmp 0x1400104da
mov rcx, qword [rsp + 0xe0]
call fcn.1400153d0
mov rax, qword [rsp + 0xe0]
cmp qword [rax + 0x68], 0
jne 0x140010364
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x80]
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0xe8]
call fcn.140010500
mov byte [rsp + 0x41], al
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rsp + 0x41]
call fcn.140005d30
movzx eax, al
test eax, eax
je 0x140010352
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x48], eax
jmp 0x14001035b
call fcn.140012630
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x48]
jmp 0x1400104da
mov qword [rsp + 0x78], 0x20
lea rcx, [rsp + 0xe8]
call fcn.140010500
mov byte [rsp + 0x90], al
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0xb8]
lea rcx, [rsp + 0x91]
mov rdx, qword [rsp + 0xe0]
add rdx, 0x74
lea r8, [rsp + 0x80]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, rcx
lea r8, [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call fcn.1400135e0
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140010411
cmp dword [rsp + 0x44], 1
je 0x140010411
cmp dword [rsp + 0x44], 3
je 0x140010496
jmp 0x1400104d5
lea rax, [rsp + 0x98]
mov rcx, qword [rsp + 0x80]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jbe 0x140010468
mov rax, qword [rsp + 0xe0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x98]
call fcn.14016664c
cmp qword [rsp + 0x58], rax
je 0x140010468
call fcn.140012630
jmp 0x1400104da
mov rax, qword [rsp + 0xe0]
mov byte [rax + 0x71], 1
lea rax, [rsp + 0x90]
cmp qword [rsp + 0x88], rax
je 0x14001048f
mov eax, dword [rsp + 0xe8]
jmp 0x1400104da
call fcn.140012630
jmp 0x1400104da
mov rax, qword [rsp + 0xe0]
mov rdx, qword [rax + 0x80]
movzx ecx, byte [rsp + 0x90]
call fcn.140005d30
movzx eax, al
test eax, eax
je 0x1400104c6
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x4c], eax
jmp 0x1400104cf
call fcn.140012630
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
jmp 0x1400104da
call fcn.140012630
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14014fcd0
add rsp, 0xd8
ret
Function at 0x140015480
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov rax, qword [0x1401bd0e0]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 0x68], 0
je 0x1400154bd
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400154c4
mov al, 1
jmp 0x14001561c
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
call fcn.140012630
mov dword [rsp + 0x38], eax
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0xb0]
call qword [rsp + 0x50]
mov dword [rsp + 0x3c], eax
call fcn.140012630
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x3c]
lea rcx, [rsp + 0x40]
call fcn.140017f00
movzx eax, al
test eax, eax
je 0x14001551b
xor al, al
jmp 0x14001561c
mov qword [rsp + 0x60], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x68]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x90]
mov rcx, qword [rsp + 0xb0]
add rcx, 0x74
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x70]
mov rdx, rcx
mov rcx, qword [rsp + 0x58]
call fcn.140018550
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x14001558a
cmp dword [rsp + 0x30], 1
je 0x140015596
cmp dword [rsp + 0x30], 3
je 0x14001560a
jmp 0x14001561a
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jbe 0x1400155e1
mov rax, qword [rsp + 0xb0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x48]
mov edx, 1
lea rcx, [rsp + 0x70]
call fcn.14016664c
cmp qword [rsp + 0x48], rax
je 0x1400155e1
xor al, al
jmp 0x14001561c
mov rax, qword [rsp + 0xb0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x1400155fb
mov dword [rsp + 0x34], 1
jmp 0x140015603
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x14001561c
mov rax, qword [rsp + 0xb0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001561c
xor al, al
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.14014fcd0
add rsp, 0xa8
ret
Function at 0x140030f50
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140030f72
mov rcx, qword [rsp + 0x40]
call fcn.140031690
jmp 0x140030f89
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140030f89
mov rcx, qword [rsp + 0x40]
call fcn.140031740
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x140031690
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400316b1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140031735
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140031700
mov dword [rsp + 4], 0x9908b0df
jmp 0x140031708
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400316a4
add rsp, 0x18
ret