joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ffbb0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r14
push r15
sub rsp, 0x98
mov rax, qword [0x18018e040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, rcx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
cmp rdi, 0x40000000
jbe 0x1800ffbff
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rsi, qword [0x1801b43a0]
lea r15, [rdi + 0x40000000]
cmp rcx, r15
cmovbe r15, rcx
sub r15, 0xfff
test rsi, rsi
je 0x1800ffc3d
cmp rsi, r14
jb 0x1800ffc35
cmp rsi, r15
jae 0x1800ffc35
cmp qword [rsi + 8], 0
jne 0x1800ffe07
mov rsi, qword [rsi]
test rsi, rsi
jne 0x1800ffc20
mov qword [rsp + 0xc8], rbx
mov rbx, rdi
mov qword [rsp + 0xd0], rbp
mov qword [rsp + 0x90], r12
mov r12d, 0x40
cmp rdi, r14
jb 0x1800ffcd2
nop dword [rax]
nop word [rax + rax]
mov ebp, dword [rsp + 0x78]
mov rax, rbx
xor edx, edx
div rbp
sub rbx, rdx
sub rbx, rbp
cmp rbx, r14
jb 0x1800ffcc9
nop word [rax + rax]
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ffcc9
cmp dword [rsp + 0x40], 0x10000
je 0x1800ffd4b
mov rbx, qword [rsp + 0x28]
cmp rbx, rbp
jb 0x1800ffcc9
sub rbx, rbp
cmp rbx, r14
jae 0x1800ffc90
test rsi, rsi
jne 0x1800ffdb0
cmp rdi, r15
ja 0x1800ffdef
nop dword [rax + rax]
mov ebp, dword [rsp + 0x78]
xor edx, edx
mov rax, rdi
mov ebx, ebp
div rbp
mov eax, ebp
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r15
ja 0x1800ffdef
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800ffdef
cmp dword [rsp + 0x40], 0x10000
je 0x1800ffd81
xor edx, edx
lea edi, [rbp - 1]
add rdi, qword [rsp + 0x38]
add rdi, qword [rsp + 0x20]
mov rax, rdi
div rbx
sub rdi, rdx
cmp rdi, r15
jbe 0x1800ffd02
jmp 0x1800ffdef
test rbx, rbx
je 0x1800ffcc9
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800ffdb0
cmp rbx, r14
jae 0x1800ffc70
jmp 0x1800ffcd2
test rdi, rdi
je 0x1800ffdef
mov r9d, r12d
mov edx, 0x1000
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x1800ffdb0
cmp rdi, r15
jbe 0x1800ffce0
jmp 0x1800ffdef
xor edx, edx
lea rcx, [rsi + 0x40]
mov dword [rsi + 0x10], edx
nop dword [rax]
mov qword [rcx], rdx
mov rax, rcx
mov qword [rsi + 8], rcx
add r12, 0x40
add rcx, 0x40
mov rdx, rax
cmp r12, 0xfc0
jbe 0x1800ffdc0
mov rax, qword [0x1801b43a0]
mov qword [rsi], rax
mov qword [0x1801b43a0], rsi
mov r12, qword [rsp + 0x90]
mov rbp, qword [rsp + 0xd0]
mov rbx, qword [rsp + 0xc8]
mov rax, rsi
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180126690
add rsp, 0x98
pop r15
pop r14
pop rdi
pop rsi
ret
Function at 0x1801007e0
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18018e040]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor esi, esi
mov r14d, edx
mov rbx, rcx
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
xor edx, edx
mov ebp, r8d
lea ecx, [rsi + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18010090b
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180100902
nop dword [rax]
cmp dword [rsp + 0x20], 0x10
jb 0x1801008e4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x1801008e4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x1801008e4
mov rdx, qword [rbx]
test rdx, rdx
jne 0x1801008a2
mov rcx, qword [0x1801950c0]
mov r8d, 0x200
mov dword [rbx + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbx], rax
mov rdx, rax
test rax, rax
je 0x180100902
jmp 0x1801008d7
mov eax, dword [rbx + 8]
cmp dword [rbx + 0xc], eax
jb 0x1801008d7
mov rcx, qword [0x1801950c0]
lea r9d, [rax + rax]
mov r8, rdx
shl r9, 2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180100902
mov eax, dword [rbx + 8]
add eax, eax
mov qword [rbx], rdx
mov dword [rbx + 8], eax
mov ecx, dword [rbx + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rbx + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x180100850
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx], rsi
je 0x180100963
cmp dword [rbx + 0xc], esi
jbe 0x180100963
nop word [rax + rax]
mov r8, qword [rbx]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18010095c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, ebp
mov edx, r14d
mov rcx, rdi
call fcn.180100630
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rbx + 0xc]
jb 0x180100920
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180126690
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x180100990
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x18018e040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x1801b4390]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180100a03
mov eax, 0xa
jmp 0x180100a96
test esi, esi
je 0x180100a25
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180100a48
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180100a48
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180100a41
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180100a48
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180126690
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180100ac0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x1801b439c]
mov ebx, edi
test ecx, ecx
je 0x180100bfb
mov rax, qword [0x1801b4390]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180100b18
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180100af0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180100bfb
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1801007e0
mov r8d, dword [0x1801b439c]
cmp ebx, r8d
jae 0x180100b88
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x1801b4390]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180100b81
mov edx, esi
mov ecx, ebx
call fcn.180100990
mov edi, eax
test eax, eax
jne 0x180100b88
mov r8d, dword [0x1801b439c]
inc ebx
cmp ebx, r8d
jb 0x180100b50
cmp qword [rsp + 0x20], 0
je 0x180100bfb
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180100be7
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180100bd8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180100bb0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801950c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180101210
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x1801950b8], ebp
je 0x180101267
cmp rbx, 0x20
jae 0x180101250
xor ecx, ecx
jmp 0x180101252
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x1801950b8], ebp
jne 0x180101246
cmp qword [0x1801950c0], r15
je 0x180101361
test rdi, rdi
jne 0x180101287
mov ecx, esi
call fcn.180100ac0
mov ebp, eax
jmp 0x180101366
mov ecx, dword [0x1801b439c]
mov ebx, r15d
test ecx, ecx
je 0x1801012af
mov r8, qword [0x1801b4390]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x1801012b9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x1801012a0
mov ebp, 4
jmp 0x180101366
cmp ebx, 0xffffffff
je 0x1801012af
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x180101358
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1801007e0
mov edx, esi
mov ecx, ebx
call fcn.180100990
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180101366
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180101342
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x180101338
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180101310
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x1801950c0]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180101366
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180101366
mov ebp, 2
xchg dword [0x1801950b8], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18010e7e0
Capabilities:
Set console window title

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
xor ecx, ecx
mov qword [rbx + 0x28], rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, [0x1801762a0]
mov rcx, rbx
mov r9, rax
lea rdx, str.CONIN_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 8]
lea r8, [0x1801762b0]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9, rax
lea rcx, [rbx + 0x10]
lea r8, [0x1801762b0]
lea rdx, str.CONOUT_
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
lea rcx, str.Debug_Console
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rcx, qword [rbx + 0x28]
mov edx, 5
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
Function at 0x140001bc0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x140022040]
xor rax, rsp
mov qword [rsp + 0x68], rax
lea rbx, [rcx + 0x10]
mov byte [rcx], 0
xor r15d, r15d
mov r14, rcx
mov qword [rcx + 8], r15
xor edx, edx
add rcx, 0x18
mov qword [rbx], r15
mov r8d, 0x7f0
call sub.VCRUNTIME140.dll_memset
lea ecx, [r15 + 0xc]
mov qword [r14 + 0x808], r15
mov qword [r14 + 0x810], r15
mov qword [r14 + 0x818], r15
call fcn.140019cf8
mov qword [rsp + 0x60], rax
lea rdi, [0x140022cf0]
mov rdx, rax
mov esi, 0xff
mov ecx, esi
mov qword [0x140022cd0], rdx
mov qword [rax], r15
mov dword [rax + 8], r15d
movzx eax, r15w
rep stosw word [rdi], ax
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
lea ecx, [r15 + 1]
mov edi, eax
call qword [sym.imp.USER32.dll_GetSystemMetrics]
movd xmm0, edi
lea r8, [0x1400017d0]
cvtdq2ps xmm0, xmm0
xor r9d, r9d
mov qword [r14 + 0x808], r15
xor edx, edx
xor ecx, ecx
movd xmm1, eax
lea rax, [0x140022c94]
cvtdq2ps xmm1, xmm1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r15d
movss dword [r14 + 0x810], xmm0
movss dword [r14 + 0x814], xmm1
movss xmm1, dword [r14 + 0x814]
movss dword [r14 + 0x81c], xmm1
movss dword [r14 + 0x818], xmm0
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x140022ca0], 0xf
mov qword [0x1400220d0], rax
je 0x140001cf4
mov ecx, 5
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x140022ca0], 0xf
jne 0x140001ce0
lea rax, [0x140022c90]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea r8, [0x140001740]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rdi, [0x140022cf0]
mov dword [rsp + 0x60], r15d
mov qword [0x1400220d8], rax
mov rcx, rsi
mov rax, qword [0x140022cd0]
mov qword [rax], r15
mov dword [rax + 8], r15d
movzx eax, r15w
rep stosw word [rdi], ax
lea rcx, str.ntdll.dll
mov rdi, r15
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, [0x14001c670]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
test rax, rax
je 0x140001d96
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rcx, rax
xor edx, edx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call rbp
test eax, eax
cmovns rdi, qword [rsp + 0x38]
mov ecx, 0x10
mov byte [rdi + 2], 1
call fcn.140019cf8
mov qword [rsp + 0x60], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov qword [rax], r15
mov dword [rax + 8], r15d
mov word [rax + 0xc], r15w
mov qword [r14 + 8], rax
nop
mov ecx, 3
call fcn.140019cf8
lea rbx, [rbx + 8]
mov word [rax], r15w
mov byte [rax + 2], r15b
mov qword [rbx - 8], rax
sub rsi, 1
jne 0x140001dc0
mov rax, r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140019cd0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140014cb0
Capabilities:
Check mutex on windows
Terminate thread

Disassembly:
sub rsp, 0x28
lea r8, str.LocalLKJFA49P
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140014e7a
cmp qword [0x140022c70], 0
jne 0x140014cf7
mov ecx, 4
call fcn.140019cf8
mov qword [0x140022c70], rax
mov dword [rax], 0
call fcn.1400011b0
test al, al
je 0x140014e7a
mov qword [rsp + 0x30], rbx
mov ecx, 0x820
mov qword [rsp + 0x38], rsi
call fcn.140019cf8
xor edx, edx
mov r8d, 0x820
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.140001bc0
mov ecx, 0x30
mov rsi, rax
call fcn.140019cf8
xorps xmm0, xmm0
mov rdx, rsi
mov rcx, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
call fcn.1400129c0
mov rcx, rax
mov rbx, rax
call fcn.140012de0
mov edx, 0x30
mov rcx, rbx
call fcn.140019cf0
test rsi, rsi
je 0x140014e69
mov rcx, qword [0x140022ce0]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea edx, [r9 + 0x10]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [0x1400220d0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400220d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140022c80]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x140022cc8]
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x1400220d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x1400220d8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1400220d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140022cd0]
mov edx, 0xc
mov rcx, rbx
call fcn.140019cf0
test rbx, rbx
je 0x140014e21
mov qword [0x140022cd0], 0x8123
mov rcx, qword [rsi + 8]
mov edx, 0x10
call fcn.140019cf0
lea rbx, [rsi + 0x10]
mov edi, 0xff
nop dword [rax + rax]
mov rcx, qword [rbx]
mov edx, 3
call fcn.140019cf0
lea rbx, [rbx + 8]
sub rdi, 1
jne 0x140014e40
mov rdi, qword [rsp + 0x20]
mov edx, 0x820
mov rcx, rsi
call fcn.140019cf0
mov rbx, qword [rsp + 0x30]
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x140015280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140015411
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140015411
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x14001531b
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140015438
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140015332
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x140015332
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140015345
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140015392
mov r9d, eax
cmp eax, 0x800
jae 0x14001535f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140015392
cmp eax, 0x10000
jae 0x140015379
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140015392
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140015411
add qword [r14], 2
test sil, sil
jne 0x1400153b3
cmp r10d, 3
jae 0x1400153bf
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x1400153ee
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x1400153d0
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x1400152cf
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x14001541f

Function at 0x14001a800
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001a84a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001a84a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001a84a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001a84a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001a84a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001a84c
xor al, al
add rsp, 0x28
ret
Function at 0x140002da0
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 0x140002dfd
lea rbx, [0x14003f9c0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002de4
cmp r10, 2
jb 0x140002de4
cmp byte [r9], r8b
jne 0x140002de4
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 0x140002dc0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002e3f
lea rbx, [0x14003f9c0]
cmp r8b, 0x23
jne 0x140002e23
cmp byte [r9], r8b
jne 0x140002e23
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 0x140002e10
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002f80
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x140002f9a
mov qword [r8], 0
lea rdx, [0x14003f580]
call fcn.140002e50
mov rbx, rax
test rax, rax
jne 0x140002fba
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x140003091
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003091
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140003091
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140003091
cmp rdi, 0xffffffffffffffff
je 0x140003091
mov rax, qword [0x140171d70]
test rax, rax
je 0x14000302e
inc dword [rax + 0xec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003091
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rdi
je 0x14000307e
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140171d70]
test rax, rax
je 0x140003073
dec dword [rax + 0xec]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000309a
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000308c
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000309c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140005110
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
lea r11, [0x14003f9c0]
mov rax, qword [rcx + 0xf8]
mov r9, rcx
movsxd r10, edx
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, r10b
movzx r8d, bl
shr ebx, 8
xor r8, rax
mov eax, r10d
shr eax, 8
movzx edx, al
mov eax, r10d
xor ebx, dword [r11 + r8*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
xor rdx, rcx
xor ebx, dword [r11 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r10d
shr rdx, 0x18
xor rdx, rcx
mov rcx, qword [r9]
xor ebx, dword [r11 + rdx*4]
not ebx
cmp dword [rcx + 0x3f20], ebx
jne 0x1400051a6
mov r8, r10
mov edx, 4
mov ecx, ebx
call fcn.140018480
mov eax, ebx
add rsp, 0x20
pop rbx
ret