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

Disassembly:
jmp 0x14001da20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1a8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x2e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1c8]
mov rax, qword [0x140035040]
xor rax, rbp
mov qword [rbp + 0x168], rax
lea rcx, [0x14003e066]
call fcn.1400119a6
mov rax, qword [rbp + 0x190]
cmp qword [rax + 0x68], 0
je 0x14001da86
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001da8d
mov al, 1
jmp 0x14001dbdd
call fcn.1400112e4
mov rcx, qword [rbp + 0x190]
mov rcx, qword [rcx]
mov qword [rbp + 0x158], rcx
mov edx, eax
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x158]
call qword [rax + 0x18]
mov dword [rbp + 0x160], eax
call fcn.1400112e4
mov ecx, dword [rbp + 0x160]
mov edx, ecx
mov ecx, eax
call fcn.1400117b7
movzx eax, al
test eax, eax
je 0x14001dade
xor al, al
jmp 0x14001dbdd
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x190]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x190]
mov rcx, qword [rax + 0x68]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x154], eax
cmp dword [rbp + 0x154], 0
je 0x14001db43
cmp dword [rbp + 0x154], 1
je 0x14001db4e
cmp dword [rbp + 0x154], 3
je 0x14001dbcc
jmp 0x14001dbdb
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x14001db9e
mov rax, qword [rbp + 0x190]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x14001db9e
xor al, al
jmp 0x14001dbdd
mov rax, qword [rbp + 0x190]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14001dbb9
mov dword [rbp + 0x154], 1
jmp 0x14001dbc3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x14001dbdd
mov rax, qword [rbp + 0x190]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14001dbdd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14002d990]
call fcn.140011811
mov rax, rdi
mov rcx, qword [rbp + 0x168]
xor rcx, rbp
call fcn.1400114d3
lea rsp, [rbp + 0x178]
pop rdi
pop rbp
ret
Function at 0x14013184e
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], r8
mov r8d, 0xab08eab1
push rbx
movsx ebx, r8b
lea rbx, [rbx + rbx*4 + 0x36357925]
shl r8w, 0xaf
lea r8, [0x140157da8]
mov ebx, 0x780d411
sar bx, 0xcb
movzx ebx, byte [rcx + rbx*4 - 0x1e03ffe8]
push 0xffffffffb5a50f0e
xor ebx, edx
rol byte [rsp + 4], 7
and ebx, 0xff
inc qword [rsp]
mov ebx, dword [r8 + rbx*4]
neg qword [rsp]
shr edx, 8
xor edx, ebx
inc rcx
xor edx, 0xc18db328
dec rax
lea rsp, [rsp + 8]
jne 0x140131871
mov ebx, 0xc80aabac
pop rbx
jmp 0x14013d636
mov r8d, 0xe914b38d
not r8d
pop r8

Function at 0x14014a277
Capabilities:
Encode data using xor

Disassembly:
cmp ebx, 4
push 0xffffffffd71f222d
call fcn.1401479de
mov r11, qword [rbp + riz]
mov ecx, 0x40a6f502
and rcx, rcx
mov rcx, qword [rbp + rcx - 0x40a6f4fa]
jge 0x140135c16
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005520]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140005530]
mov dword [rax], 1
mov rax, qword [0x140005540]
mov dword [rax], 1
mov rax, qword [0x140005490]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005510]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400055e0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400055c0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140005470]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x1400014d2
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
call sym.Sugar_MinimizeAll
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
xor edx, edx
xor r9d, r9d
lea r8, [sym.UpdateScreenThread]
mov dword [rsp + 0x20], edx
xor ecx, ecx
xor edx, edx
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.SND_SUGARCRASH
call sym.Sugar_PlayWaveResource
mov ecx, 0xc0000420
call sym.Sugar_BlueScreen
xor eax, eax
add rsp, 0x38
ret

Function at 0x140001838
Capabilities:
Find taskbar

Disassembly:
sub rsp, 0x28
lea rcx, str.Shell_TrayWnd
xor edx, edx
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
test rax, rax
je 0x14000186c
xor r9d, r9d
mov r8d, 0x1a3
mov edx, 0x111
add rsp, 0x28
jmp qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x28
ret

Function at 0x140001871
Capabilities:
Enumerate process modules
Extract resource via kernel32 functions

Disassembly:
push r12
mov eax, 0x2030
push rbp
push rdi
push rsi
push rbx
call fcn.140002d80
sub rsp, rax
xor ebx, ebx
mov rdi, rcx
mov rbp, rdx
lea r12, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x2c]
mov r8d, 0x2000
mov rdx, r12
mov rcx, rax
call sym.K32EnumProcessModules
test eax, eax
jne 0x1400018b5
xor eax, eax
jmp 0x1400018e8
mov eax, dword [rsp + 0x2c]
mov esi, ebx
shr eax, 3
cmp ebx, eax
jae 0x1400018b1
mov rcx, qword [r12 + rbx*8]
mov rdx, rdi
mov r8, rbp
inc rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdx, rax
test rax, rax
je 0x1400018b5
mov rcx, qword [rsp + rsi*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadResource]
add rsp, 0x2030
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400018f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140001933
lea rdx, [0x1400050ac]
call sym.Sugar_GetProcessResource
mov rbx, rax
test rax, rax
je 0x140001933
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, qword [sym.imp.KERNEL32.dll_FreeResource]
test rax, rax
mov rcx, rax
jne 0x140001937
mov rcx, rbx
call rdi
xor esi, esi
jmp 0x14000194c
mov r8d, 4
xor edx, edx
call qword [sym.imp.WINMM.dll_PlaySoundW]
mov rcx, rbx
mov esi, eax
call rdi
mov eax, esi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001fb0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140002020
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002150
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000206b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400020f5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002050
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002172
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002157
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400020ee
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140002100
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400020ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002078
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140002710
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000276c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002763
test eax, eax
jne 0x140002763
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002748
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140002980
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002998
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400029a0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400029b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x1400029fd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x1400029f4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400029ff
add rax, 0x28
cmp rax, r9
jne 0x1400029e0
xor eax, eax
ret

Function at 0x140002a00
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002a90
mov rdx, qword [0x140005490]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002a7e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002a7e
cmp word [rax + 0x18], 0x20b
jne 0x140002a7e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002a90
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002a69
add rbx, 0x28
cmp rbx, rdi
je 0x140002a90
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002a60
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140005490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002ac0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002ac8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002ac0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002b1d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002b14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002ac0
add rax, 0x28
cmp rax, r9
jne 0x140002b00
xor eax, eax
ret
Function at 0x140002b20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005490]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002b3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002b48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002b3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002b60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005490]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002b80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002b88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002b80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002bd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002bc7
test rcx, rcx
je 0x140002b80
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002bb8
xor eax, eax
ret

Function at 0x140002be0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005490]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002bff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002c08
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140005490]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002c40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002c48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002c40
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002c40
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140002c94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002ca0
add rdx, 0x28
cmp r9, rdx
jne 0x140002c80
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005490]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002cd2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002ce0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002cd2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002cd2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002cd2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140002d35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002d48
add rdx, 0x28
cmp r10, rdx
jne 0x140002d20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002d57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002d67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140002d3e
test ecx, ecx
jg 0x140002d50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400014d4
Capabilities:
Check for unmoving mouse cursor
Get disk size
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
add rcx, 0xc0
cmp qword [rcx + 0x18], 7
jbe 0x1400014ee
mov rcx, qword [rcx]
call fcn.14003b89c
mov ecx, dword [rbx + 0x58]
test eax, eax
mov byte [rbx + 0x5c], 1
sete al
mov byte [rbx + 0x5d], al
add rsp, 0x20
pop rbx
jmp fcn.140018944

Function at 0x140004338
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x5c], 0
mov rbx, rcx
jne 0x140004369
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x14000435b
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [rbx + 0x58]
mov word [rbx + 0x5c], 1
call fcn.140018944
add rsp, 0x20
pop rbx
ret

Function at 0x140005a54
Capabilities:
Terminate process
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rcx + 0x5c], 0
mov rbx, rcx
jne 0x140005a94
mov rcx, qword [rcx + 0xc8]
xor edx, edx
test rcx, rcx
je 0x140005a7d
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbx + 0xc0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [rbx + 0x58]
mov dl, 1
call fcn.140018d64
add rsp, 0x20
pop rbx
ret

Function at 0x140005bb8
Capabilities:
Check for unmoving mouse cursor
Get disk size
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.14001e060
nop
mov r8d, dword [rdi + 0xc8]
mov rdx, qword [rdi + 0xc0]
mov rcx, qword [rax]
call fcn.14000f7dc
nop
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x140005c1e
or eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140005c1e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
or eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x140005c1e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rdi + 0xc0]
call fcn.140034bfc
and qword [rdi + 0xc0], 0
and dword [rdi + 0xc8], 0
mov word [rdi + 0x5c], 0x101
mov ecx, dword [rdi + 0x58]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.140018944

Function at 0x140006ed0
Capabilities:
Check for unmoving mouse cursor
Get disk size
Get hostname

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x140079058]
mov rdi, rcx
lea rcx, [0x140079058]
mov rdx, rcx
mov r8, qword [rbx + 8]
call fcn.140006e4c
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
and qword [0x140079060], 0
mov ecx, dword [rdi + 0x58]
mov word [rdi + 0x5c], 0x101
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.140018944

Function at 0x140007678
Capabilities:
Check for unmoving mouse cursor
Get disk size
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0xc0]
call fcn.140007600
mov ecx, dword [rbx + 0x58]
mov byte [rbx + 0x5d], al
mov byte [rbx + 0x5c], 1
add rsp, 0x20
pop rbx
jmp fcn.140018944
Function at 0x140007b28
Capabilities:
Check for unmoving mouse cursor
Get disk size
Get hostname

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0xc0]
call fcn.14001f324
mov ecx, dword [rbx + 0x58]
mov byte [rbx + 0x5d], al
mov byte [rbx + 0x5c], 1
add rsp, 0x20
pop rbx
jmp fcn.140018944
Function at 0x14002462c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbx, rcx
xor ebp, ebp
mov rcx, qword [0x1400790e0]
mov rax, qword [rcx + 8]
jmp 0x140024664
cmp qword [rax + 0x20], rbx
jae 0x14002465e
mov rax, qword [rax + 0x10]
jmp 0x140024664
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], bpl
je 0x140024652
cmp byte [rcx + 0x19], bpl
jne 0x14002469d
cmp rbx, qword [rcx + 0x20]
jb 0x14002469d
lea r8, [rsp + 0x40]
mov qword [rsp + 0x40], rbx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400790e0]
call fcn.1400243f4
mov rax, qword [rax]
mov rax, qword [rax + 0x28]
jmp 0x140024769
lea rdi, [rbx + 8]
mov r8d, ebp
movzx eax, word [rdi]
cmp word [rbx], ax
je 0x1400246d5
mov r9, rdi
inc r8d
lea r9, [r9 + 2]
mov ecx, r8d
and ecx, 0x80000003
jge 0x1400246c8
dec ecx
or ecx, 0xfffffffc
inc ecx
movsxd rdx, ecx
movzx ecx, word [r9]
cmp word [rbx + rdx*2], cx
jne 0x1400246af
movsxd rcx, r8d
mov eax, 2
inc rcx
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.140034dd0
movzx ecx, word [rbx]
mov rsi, rax
movzx eax, word [rdi]
mov edx, ebp
cmp cx, ax
je 0x14002473d
mov r9, rbp
mov r8, rbp
xor cx, ax
inc edx
inc r9
mov word [r8 + rsi], cx
mov eax, edx
lea r8, [r9 + r9]
and eax, 0x80000003
jge 0x14002472d
dec eax
or eax, 0xfffffffc
inc eax
cdqe
movzx ecx, word [rbx + rax*2]
movzx eax, word [r8 + rdi]
cmp cx, ax
jne 0x14002470c
movsxd rax, edx
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x40], rbx
lea rcx, [0x1400790e0]
mov word [rsi + rax*2], bp
call fcn.1400243f4
mov rcx, qword [rax]
mov rax, rsi
mov qword [rcx + 0x28], rsi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x140025b88
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov rdi, rcx
mov qword [r11 - 0x48], rcx
mov qword [r11 - 0x40], rdx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rsi, qword [rax + 0x10]
jmp 0x140025bf0
mov rdx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140025be0
mov rdx, qword [rdi]
mov rcx, qword [rsi + 0x60]
call fcn.140043e54
test eax, eax
je 0x140025bf9
mov rsi, qword [rsi]
cmp qword [rsi + 0x30], 0
jne 0x140025bd3
jmp 0x140025c02
mov r8, qword [rsi + 0x30]
test r8, r8
jne 0x140025c6f
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x140025c0f
mov rcx, qword [rdi]
call fcn.140027d34
mov r8, rax
test rax, rax
jne 0x140025c6f
mov rcx, rdi
call fcn.140002044
nop
mov rdx, qword [rbx + 0x18]
mov esi, 0xf
cmp rdx, rsi
jbe 0x140025c63
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140025c5e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140025db4
mov rcx, r8
call fcn.140034bfc
and qword [rbx + 0x10], 0
xor eax, eax
jmp 0x140025d3d
movsxd rax, dword [r8 + 0x3c]
mov ecx, dword [rax + r8 + 0x88]
add rcx, r8
mov ebp, dword [rcx + 0x20]
add rbp, r8
mov r14d, dword [rcx + 0x24]
add r14, r8
mov r15d, dword [rcx + 0x1c]
add r15, r8
xor edx, edx
mov r12d, dword [rcx + 0x18]
lea esi, [rdx + 0xf]
test r12d, r12d
je 0x140025cdc
mov eax, dword [rbp + rdx*4]
add rax, r8
mov rcx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x140025cb3
mov rcx, qword [rbx]
sub rcx, rax
movzx r9d, byte [rax]
movzx r10d, byte [rax + rcx]
sub r9d, r10d
jne 0x140025ccc
inc rax
test r10d, r10d
jne 0x140025cb6
test r9d, r9d
je 0x140025d6a
inc edx
cmp edx, r12d
jb 0x140025ca0
mov rdx, rbx
cmp qword [rbx + 0x18], rsi
jbe 0x140025ce8
mov rdx, qword [rbx]
mov rcx, r8
call fcn.1400278c0
mov rbp, rax
mov rcx, rdi
call fcn.140002044
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x140025d35
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140025d30
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140025db4
mov rcx, r8
call fcn.140034bfc
mov rax, rbp
and qword [rbx + 0x10], 0
mov byte [rbx], 0
mov qword [rbx + 0x18], rsi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140034ca0
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
movzx eax, word [r14 + rdx*2]
mov ebp, dword [r15 + rax*4]
add rbp, r8
mov rcx, rdi
call fcn.140002044
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, rsi
jbe 0x140025d35
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140025d30
add rdx, 0x27
mov rax, qword [rcx - 8]
sub rcx, rax
add rcx, 0xfffffffffffffff8
cmp rcx, 0x1f
ja 0x140025db4
mov rcx, rax
jmp 0x140025d30
call fcn.14003be04
int3
Function at 0x140029fb0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
lea r9, [rsp + 0x30]
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140034ca0
add rsp, 0x48
ret

Function at 0x14002a00c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x140077100]
xor rax, rsp
mov qword [rsp + 0x38], rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov rdi, rcx
mov ebx, r8d
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14002a056
cmp dword [rsp + 0x30], ebx
jne 0x14002a056
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
jmp 0x14002a058
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140034ca0
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret