joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002a88
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov dword [rax + 8], ecx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
lea rcx, str..pipeMasoncontrol_redirect64
and dword [rax - 0x20], 0
mov edi, r8d
mov rsi, rdx
mov dword [rax - 0x28], 3
xor r8d, r8d
mov edx, 0xc0000000
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140002b1d
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test rsi, rsi
je 0x140002b14
test edi, edi
je 0x140002b14
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x10b4a70
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x10b4a7d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x10b4a8d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x10b4a75
lea eax, [rcx + 1]
jmp 0x10b4a9b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x10b4aae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x10b4a94
sub eax, 3
jb 0x10b4ace
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x10b4b1d
sar eax, 1
movsxd rbp, eax
jb 0x10b4b04
jmp 0x10b4adc
add ebx, ebx
jne 0x10b4ada
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x10b4b04
inc ecx
add ebx, ebx
jne 0x10b4aea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x10b4b04
call r11
adc ecx, ecx
add ebx, ebx
jne 0x10b4afd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x10b4aec
add ecx, 2
jmp 0x10b4b09
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.010b4a32
jmp 0x10b4a7d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xcb1000]
mov eax, dword [rdi]
or eax, eax
je 0x10b4b7d
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xcb4000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x10b4b2d
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x10b4b77
mov qword [rbx], rax
add rbx, 8
jmp 0x10b4b4d
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.010b4c00], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.010b4c00
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x10b4bf0
sub rsp, 0xffffffffffffff80
jmp 0x4014e0
Function at 0x140002310
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, rcx
movabs rbx, 0xcbf29ce484222325
call fcn.140005580
xor edi, edi
mov r14, rax
test rax, rax
je 0x14000237d
mov qword [rsp + 0x48], rsi
mov esi, edi
mov qword [rsp + 0x50], r15
movabs r15, 0x100000001b3
nop
mov rcx, rbp
call fcn.140005590
inc edi
lea rsi, [rsi + 1]
movsx rdx, byte [rax + rsi - 1]
xor rbx, rdx
movsxd rdx, edi
imul rbx, r15
cmp rdx, r14
jb 0x140002350
mov r15, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x48]
mov rcx, rbp
call fcn.1400055e0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x140013ee0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x4e0
mov rax, qword [0x1400ed0c0]
xor rax, rsp
mov qword [rsp + 0x4d0], rax
mov rbp, r8
mov rsi, rdx
mov edx, dword [rcx + 0x10]
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140013ffa
xor edx, edx
mov r8d, 0x434
lea rcx, [rsp + 0x54]
call fcn.14009b750
mov dword [rsp + 0x50], 0x438
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
je 0x140013ffa
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x490]
call fcn.140014560
nop
lea r8, [rsp + 0x490]
lea rdx, [rsp + 0x4b0]
call fcn.140013a70
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400055a0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x30]
call fcn.140014060
movzx ebx, al
lea rcx, [rsp + 0x4b0]
call fcn.1400055e0
nop
lea rcx, [rsp + 0x490]
call fcn.140014550
test bl, bl
jne 0x140014028
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x140013f60
mov rcx, rsi
call fcn.140014bf0
mov rax, rsi
mov rcx, qword [rsp + 0x4d0]
xor rcx, rsp
call fcn.14006ca90
mov rbx, qword [rsp + 0x518]
add rsp, 0x4e0
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x70]
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140014bd0
mov rdx, rax
mov rcx, rsi
call fcn.140014c10
jmp 0x140014002
Function at 0x140019fc0
Capabilities:
Hash data using fnv

Disassembly:
xor r9d, r9d
test r8, r8
je 0x140016a94
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc r9
xor rcx, rax
imul rcx, r10
cmp r9, r8
jb 0x140016a80
mov rax, rcx
ret
jmp 0x14001a800
mov rcx, rdx
jmp 0x14001a8a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140005580
mov rcx, rdi
mov rbx, rax
call fcn.140005590
mov rdx, rbx
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14001ac50
mov r8, rdx
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140016a60

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

Disassembly:
xor r9d, r9d
test r8, r8
je 0x140016a94
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r9]
inc r9
xor rcx, rax
imul rcx, r10
cmp r9, r8
jb 0x140016a80
mov rax, rcx
ret
jmp 0x14001a800
mov rcx, rdx
jmp 0x14001a8a0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140005580
mov rcx, rdi
mov rbx, rax
call fcn.140005590
mov rdx, rbx
mov rcx, rax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x14001ac50
mov r8, rdx
mov rdx, rcx
movabs rcx, 0xcbf29ce484222325
jmp 0x140016a60

Function at 0x14001b130
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov rsi, rcx
call fcn.14001b050
mov edx, eax
mov rcx, rbx
mov edi, eax
call fcn.14001b2f0
mov rbx, rax
test rax, rax
je 0x14001b293
mov rcx, rax
mov qword [rsp + 0x60], rbp
call fcn.14001af50
mov ebp, eax
cmp edi, 0xffffffff
je 0x14001b28e
mov rcx, rbx
call fcn.14001afd0
mov rcx, rsi
movzx ebx, al
call fcn.14001afd0
cmp bl, al
je 0x14001b28e
lea eax, [rbp - 1]
cmp eax, 0x63
ja 0x14001b28e
mov rax, qword gs:[0x58]
mov ecx, 8
mov rax, qword [rax]
mov eax, dword [rcx + rax]
cmp dword [0x1400fe6d0], eax
jle 0x14001b1e3
lea rcx, [0x1400fe6d0]
call fcn.14006ced8
cmp dword [0x1400fe6d0], 0xffffffff
jne 0x14001b1e3
lea rcx, [0x1400fe6d8]
call fcn.1400023a0
lea rcx, [0x1400fe6d0]
call fcn.14006ce6c
lea rcx, [rsp + 0x78]
call fcn.1400023a0
mov eax, dword [0x1400edcf0]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x70], eax
call fcn.14001b360
lea r8, [0x1400fe6d8]
mov r11, rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.14001b320
mov rdx, r11
mov rcx, rax
call fcn.14001b2a0
movzx ecx, al
call fcn.14001af40
test al, al
je 0x14001b28e
cmp byte [0x1400edcec], 0
je 0x14001b250
mov ecx, dword [0x1400edce8]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jns 0x14001b282
xor ebx, ebx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 2
call qword [sym.imp.USER32.dll_mouse_event]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
mov ecx, 4
call qword [sym.imp.USER32.dll_mouse_event]
mov rax, qword [rsp + 0x78]
mov qword [0x1400fe6d8], rax
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x140021b40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
and edx, 7
je 0x140021b56
call fcn.1400214a0
mov eax, dword [rbx + 0x10]
xor r8d, r8d
test eax, eax
jle 0x140021b8e
mov ecx, dword [rbx + 0x18]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
add eax, 0xfffffff8
mov dword [rbx + 0x18], ecx
movzx r9d, cl
test eax, eax
jg 0x140021b70
mov dword [rbx + 0x10], eax
jns 0x140021ba1
lea rcx, str.zlib_corrupt
add rsp, 0x20
pop rbx
jmp fcn.14001b780
movsxd r9, r8d
cmp r9, 4
jge 0x140021bc6
nop word [rax + rax]
mov rcx, rbx
call fcn.140021410
mov byte [rsp + r9 + 0x30], al
inc r9
cmp r9, 4
jl 0x140021bb0
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140021b90
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140021c1d
lea rcx, str.read_past_buffer
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp fcn.14001b780
mov rdx, qword [rbx + 0x20]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x30]
jbe 0x140021c42
mov rcx, rbx
call fcn.140021640
test eax, eax
jne 0x140021c42
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x20]
call fcn.14009b0b0
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x20], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140028b80
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rcx + 4], edx
lea r9, [rcx + 8]
mov eax, 1
nop dword [rax]
mov r8d, edx
lea r9, [r9 + 4]
shr r8d, 0x1e
xor r8d, edx
imul edx, r8d, 0x6c078965
add edx, eax
inc rax
mov dword [r9 - 4], edx
cmp rax, 0x270
jb 0x140028b90
mov dword [rcx], 0x270
ret

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

Disassembly:
jmp 0x1400294b0
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x1400294c9
call fcn.140029520
jmp 0x1400294d5
cmp eax, 0x4e0
jb 0x1400294d5
call fcn.140029570
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret

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

Disassembly:
jmp 0x1400294b0
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov rbx, rcx
cmp eax, 0x270
jne 0x1400294c9
call fcn.140029520
jmp 0x1400294d5
cmp eax, 0x4e0
jb 0x1400294d5
call fcn.140029570
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret

Function at 0x140029520
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
lea rax, [rcx + 8]
mov r9d, 0x270
nop word [rax + rax]
mov r8d, dword [rax - 4]
xor r8d, dword [rax]
lea rax, [rax + 4]
btr r8d, 0x1f
xor r8d, dword [rax - 8]
mov ecx, r8d
and cl, 1
neg cl
sbb edx, edx
shr r8d, 1
and edx, 0x9908b0df
xor edx, dword [rax + 0x62c]
xor edx, r8d
mov dword [rax + 0x9b8], edx
sub r9, 1
jne 0x140029530
ret
Function at 0x140029570
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
lea r10, [rcx + 0x9c4]
mov r9, rcx
mov r11d, dword [r10]
mov ebx, 0xe3
nop word [rax + rax]
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140029590
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1400295e0
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
btr edx, 0x1f
mov dword [r9], ebx
mov rbx, qword [rsp + 8]
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
ret

Function at 0x14002ce10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
lea r10, [0x1400cb5a0]
nop word [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx r9d, r8b
xor r9, rax
shr r8d, 8
xor r8d, dword [r10 + r9*4]
sub rdx, 1
jne 0x14002ce20
not r8d
mov eax, r8d
ret

Function at 0x14002ce50
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 0x14002cead
lea rbx, [0x1400cb5a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14002ce94
cmp r10, 2
jb 0x14002ce94
cmp byte [r9], r8b
jne 0x14002ce94
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 0x14002ce70
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14002ceef
lea rbx, [0x1400cb5a0]
cmp r8b, 0x23
jne 0x14002ced3
cmp byte [r9], r8b
jne 0x14002ced3
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 0x14002cec0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x14002d0c0
Capabilities:
Read file on windows

Disassembly:
mov edx, 1
jmp fcn.140078be0
Function at 0x140051fa0
Capabilities:
Compute adler32 checksum

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
mov r10, rdx
mov eax, 0x5e6ea9af
mul r8d
mov ebx, r8d
xor r9d, r9d
shr edx, 0xb
mov esi, r8d
imul eax, edx, 0x15b0
mov ecx, 1
sub ebx, eax
test r8d, r8d
je 0x1400520ec
mov qword [rsp + 0x20], rdi
xor r11d, r11d
cmp ebx, 7
jbe 0x14005204e
mov edx, 7
nop word [rax + rax]
movzx eax, byte [r10]
add r11d, 8
add ecx, eax
add edx, 8
movzx eax, byte [r10 + 1]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 2]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 3]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 4]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 5]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 6]
add r9d, ecx
add ecx, eax
movzx eax, byte [r10 + 7]
add r9d, ecx
add ecx, eax
add r10, 8
add r9d, ecx
cmp edx, ebx
jb 0x140051ff0
xor edx, edx
xor r8d, r8d
cmp r11d, ebx
jae 0x1400520b4
mov eax, ebx
sub eax, r11d
cmp eax, 2
jb 0x1400520a1
mov eax, ebx
sub eax, r11d
sub eax, 2
shr eax, 1
inc eax
mov edi, eax
lea r11d, [r11 + rax*2]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r10]
add ecx, eax
movzx eax, byte [r10 + 1]
add edx, ecx
add r10, 2
add ecx, eax
add r8d, ecx
sub rdi, 1
jne 0x140052080
cmp r11d, ebx
jae 0x1400520ad
movzx eax, byte [r10]
add ecx, eax
add r9d, ecx
inc r10
lea eax, [r8 + rdx]
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul edx, edx, 0xffff000f
add r9d, edx
sub esi, ebx
mov ebx, 0x15b0
jne 0x140051fd8
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x28]
shl r9d, 0x10
lea eax, [rcx + r9]
pop rsi
ret
Function at 0x140053f60
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push rbx
sub rsp, 0x20
call fcn.140053f30
xor ecx, ecx
mov rbx, rax
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rbx + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140053f99
mov dword [rbx + 0x2c], eax
add rsp, 0x20
pop rbx
ret

Function at 0x140054300
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
add rsp, 0x28
ret

Function at 0x140065090
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x1400ed0c0]
xor rax, rsp
mov qword [rbp + 0x47], rax
call fcn.140005410
lea rdx, str.client.dll
mov rbx, rax
lea rcx, [rbp - 0x39]
call fcn.140004f20
lea r8, [rbp - 0x39]
mov rcx, rbx
lea rdx, [rbp - 0x29]
call fcn.140013ee0
mov rcx, rax
call fcn.1400144a0
mov rdi, qword [rax]
call fcn.140005410
mov rcx, rax
call fcn.140004f90
mov r9d, 0x1000
mov dword [rsp + 0x20], 0x40
mov r8d, r9d
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
jne 0x140065132
lea rdx, str.Failed_to_allocate_memory_in_target_process.
call fcn.140065e40
mov rcx, rax
call fcn.140065600
jmp 0x140065264
lea rax, [rdi + 0x840dba]
mov word [rbp - 9], 0x3d83
mov qword [rbp + 0x2e], rax
mov dword [rbp - 3], 0xf31a7400
mov word [rbp + 1], 0x100f
mov byte [rbp + 3], 5
mov dword [rbp + 8], 0xd100ff3
mov dword [rbp + 0x10], 0x41110ff3
mov dword [rbp + 0x14], 0x110ff318
mov dword [rbp + 0x18], 0x41f31c49
mov dword [rbp + 0x1c], 0x1846100f
mov dword [rbp + 0x20], 0xf3104189
mov dword [rbp + 0x24], 0x2041110f
mov dword [rbp + 0x28], 0x25ff
mov word [rbp + 0x2c], 0
mov dword [rbp - 7], 0x51
mov dword [rbp + 4], 0x3f
mov dword [rbp + 0xc], 0x3b
call fcn.140005410
mov rcx, rax
call fcn.140004f90
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r9d, 0x3f
lea r8, [rbp - 9]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14006520f
lea rdx, str.Failed_to_write_memory_to_target_process.
call fcn.140065e40
mov rcx, rax
call fcn.140065600
call fcn.140005410
mov rcx, rax
call fcn.140004f90
mov rcx, rax
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x140065264
mov dword [rbp + 0x37], 0x25ff
mov word [rbp + 0x3b], 0
mov qword [rbp + 0x3d], rbx
call fcn.140005410
mov rcx, rax
call fcn.140004f90
mov rcx, rax
mov qword [rsp + 0x20], 0
mov r9d, 0xe
lea r8, [rbp + 0x37]
lea rdx, [rdi + 0x840dac]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x14006525d
lea rdx, str.Failed_to_write_jmp_instruction_to_target_process.
jmp 0x1400651de
mov qword [0x1400fe470], rbx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14006ca90
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140065290
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x60
call fcn.140062220
mov rcx, rax
call fcn.14007fac8
call fcn.140068940
call fcn.140005410
mov rbx, rax
lea rdx, str.cs2.exe
lea rcx, [rsp + 0x40]
call fcn.140005640
mov rdx, rax
mov rcx, rbx
call fcn.14006af00
call fcn.140014120
call fcn.140004cc0
call fcn.14006b4f0
call fcn.140065090
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
xor r9d, r9d
lea r8, [0x1400641b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, [rsp + 0x30]
call fcn.140066240
nop
lea rcx, [rsp + 0x30]
call fcn.14000df20
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.140066290
nop
lea rcx, [rsp + 0x30]
call fcn.140017fb0
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x140068ca0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x140068cc0
xor eax, eax
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140068cd4
call fcn.140069520
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x40], rbx
mov rbx, rdi
mov qword [rsp + 0x50], rbx
call fcn.140069d50
mov qword [rsp + 0x58], rax
test rax, rax
je 0x140068d2f
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140007aa0
mov rcx, rsi
mov rbx, qword [rax]
call fcn.140069e20
mov rdx, rax
mov r8, rbx
mov rcx, rbp
call fcn.140005b90
sub qword [rsp + 0x50], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call fcn.140069de0
mov rbx, qword [rsp + 0x50]
cmp qword [rsi + 0x80], 0
je 0x140068dab
mov rcx, rsi
call fcn.1400699b0
mov rbx, qword [rsp + 0x50]
cmp rbx, 0xfff
jbe 0x140068d87
nop
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rbp
call fcn.140078be0
mov rbx, qword [rsp + 0x50]
add rbp, rax
sub rbx, rax
mov qword [rsp + 0x50], rbx
cmp rax, 0xfff
jne 0x140068dab
cmp rbx, rax
ja 0x140068d50
test rbx, rbx
je 0x140068dab
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call fcn.140078be0
mov rbx, qword [rsp + 0x50]
sub rbx, rax
sub rdi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x14006aa40
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2e0
mov rax, qword [0x1400ed0c0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rbp, r8
mov rsi, rdx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14006ab6a
xor edx, edx
mov r8d, 0x234
lea rcx, [rsp + 0x94]
call fcn.14009b750
mov dword [rsp + 0x90], 0x238
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x14006ab61
movups xmm0, xmmword [rbp]
movups xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0xbc]
lea rcx, [rsp + 0x50]
call fcn.140014560
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x70]
call fcn.140013a70
movups xmm0, xmmword [rsp + 0x20]
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x40]
mov rcx, rax
call fcn.1400055a0
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14006b060
movzx ebx, al
lea rcx, [rsp + 0x70]
call fcn.1400055e0
nop
lea rcx, [rsp + 0x50]
call fcn.140014550
test bl, bl
jne 0x14006ab9e
lea rdx, [rsp + 0x90]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x14006aad3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
call fcn.14006b010
mov rax, rsi
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.14006ca90
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, [rsp + 0x98]
mov rcx, rsi
call fcn.14006b080
jmp 0x14006ab72