joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140159c30
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14014b990
xor ebx, ebx
cmp qword [0x1402066e8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x140159d5c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140159e6f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140159e6f
mov rcx, rax
call fcn.14014b8c0
lea rdx, [0x14017d558]
mov rcx, rsi
mov qword [0x1402066e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14014b8c0
lea rdx, [0x14017d540]
mov rcx, rsi
mov qword [0x1402066f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14014b8c0
lea rcx, [rsp + 0x98]
mov qword [0x1402066f8], rax
call fcn.140149980
test eax, eax
je 0x140159d0f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140148220
cmp dword [rsp + 0x98], 2
jne 0x140159d5c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14014b8c0
test rax, rax
mov qword [0x140206708], rax
je 0x140159d5c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14014b8c0
mov qword [0x140206700], rax
mov rcx, qword [0x140206700]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140159e08
cmp qword [0x140206708], rbp
je 0x140159e08
call fcn.14014ba80
mov rcx, qword [0x140206708]
mov rsi, rax
call fcn.14014ba80
test rsi, rsi
mov r12, rax
je 0x140159e08
test rax, rax
je 0x140159e08
call rsi
test rax, rax
je 0x140159dd3
lea rcx, [rsp + 0x34]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140159dd3
test byte [rsp + 0x40], 1
jne 0x140159e08
lea rcx, [rsp + 0x30]
call fcn.1401499d0
test eax, eax
je 0x140159df5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140148220
cmp dword [rsp + 0x30], 4
jb 0x140159e02
bts edi, 0x15
jmp 0x140159e46
bts edi, 0x12
jmp 0x140159e46
mov rcx, qword [0x1402066f0]
cmp rcx, rbp
je 0x140159e46
call fcn.14014ba80
test rax, rax
je 0x140159e46
call rax
test rax, rax
mov rbx, rax
je 0x140159e46
mov rcx, qword [0x1402066f8]
cmp rcx, rbp
je 0x140159e46
call fcn.14014ba80
test rax, rax
je 0x140159e46
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1402066e8]
call fcn.14014ba80
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x140159e6f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140159e71
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14015a870
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14015a8b7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140144dc0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14015cc00
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140144dc0
add rsp, 0x38
ret
Function at 0x14015d190
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rdi
sub rsp, 0x140
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov qword [r11 + 8], rbp
lea rdx, [rsp + 0x20]
xor ebx, ebx
mov ecx, 0x105
mov qword [r11 + 0x10], rsi
lea rdi, [rsp + 0x20]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp eax, 0x104
mov esi, eax
jle 0x14015d228
mov qword [rsp + 0x160], r12
lea r12d, [rax + 1]
lea edx, [rbx + 1]
movsxd rcx, r12d
call fcn.14014c4b0
test rax, rax
mov rdi, rax
jne 0x14015d209
call fcn.1401496d0
mov esi, ebx
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
jmp 0x14015d220
test esi, esi
mov ebp, 1
je 0x14015d220
mov rdx, rax
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov r12, qword [rsp + 0x160]
test esi, esi
mov rsi, qword [rsp + 0x158]
je 0x14015d247
cmp byte [rdi + 1], 0x3a
jne 0x14015d252
movzx ecx, byte [rdi]
call fcn.14015eea0
lea ebx, [rax - 0x40]
jmp 0x14015d252
call fcn.1401496d0
mov dword [rax], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
test ebp, ebp
mov rbp, qword [rsp + 0x150]
je 0x14015d266
mov rcx, rdi
call fcn.140146bf0
mov eax, ebx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140144dc0
mov rbx, qword [rsp + 0x168]
add rsp, 0x140
pop rdi
ret
Function at 0x140163abc
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140148fe0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140148fe0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x140163b4f
cmp dword [rsp + 0x24], 5
jb 0x140163b69
jmp 0x140163b65
cmp dword [rsp + 0x30], esi
jne 0x140163b69
cmp dword [rsp + 0x24], 4
ja 0x140163b65
jne 0x140163b69
cmp dword [rsp + 0x28], 0
jbe 0x140163b69
mov byte [rbx + 0x18], sil
lea rax, [0x14017e780]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.1401638fc
movzx ecx, byte [0x14020856c]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14020856c], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140144dc0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001350
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
xor edx, edx
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov r8, rdi
sub r8, rdx
nop dword [rax + rax]
movzx ecx, word [rdx]
movzx eax, word [rdx + r8]
sub ecx, eax
jne 0x1400013b4
add rdx, 2
test eax, eax
jne 0x1400013a0
test ecx, ecx
je 0x1400013db
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140001390
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret

Function at 0x1400013f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140001431
xor eax, eax
add rsp, 0x40
pop rdi
ret
mov qword [rsp + 0x50], rbx
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
movsxd rbx, eax
mov rdx, rbx
mov r8d, 0x3000
lea r9d, [rcx + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rbx, qword [rsp + 0x50]
test eax, eax
je 0x1400014a4
cmp dword [rsi], 0x905a4d
jne 0x1400014a4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rsi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140001640
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x28
movsxd rdx, ecx
lea rcx, [0x1400015f0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rax, qword [0x14000a1b8]
add rsp, 0x28
ret
Function at 0x14000706c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400070b6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400070b6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400070b6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400070b6
cmp dword [rcx + 0x84], 0xe
jbe 0x1400070b6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400070b8
xor al, al
add rsp, 0x28
ret
Function at 0x140001460
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
mov rdx, qword [rsi + 0x18]
test eax, eax
je 0x140001549
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rbp
mov rbp, rsi
mov qword [rsp + 0x48], rdi
cmp rdx, 0xf
jbe 0x140001498
mov rbp, qword [rsi]
mov rdi, 0xffffffffffffffff
nop
cmp byte [rdi + rbp + 1], 0
lea rdi, [rdi + 1]
jne 0x1400014a0
lea rdx, [rdi + 1]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r8, [rdi + 1]
mov rdx, rbp
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
mov rdx, rbx
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rdx, qword [rsi + 0x18]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140001545
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140001540
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001596
mov rcx, r8
call fcn.14000b4c4
mov al, 1
jmp 0x14000157d
cmp rdx, 0xf
jbe 0x14000157b
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x140001576
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001596
mov rcx, r8
call fcn.14000b4c4
xor al, al
mov byte [rsi], 0
mov qword [rsi + 0x18], 0xf
mov qword [rsi + 0x10], 0
add rsp, 0x20
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140003640
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x140003674
movabs r10, 0x100000001b3
nop
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140003660
ret
Function at 0x140008970
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
movsx ecx, byte [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp al, 9
ja 0x140008a3c
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x140008a3c
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x140008a55
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx + 0x10]
cmp rax, rcx
je 0x140008a2c
cmp byte [rax], 0x5c
jne 0x140008a26
lea rdx, [rax + 1]
cmp rdx, rcx
je 0x140008a26
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x140008a12
movzx ecx, byte [rdx]
sub cl, 0x28
cmp cl, 1
jbe 0x140008a23
test r8b, 0x10
jne 0x140008a26
movzx ecx, byte [rdx]
sub cl, 0x7b
test cl, 0xfd
jne 0x140008a26
mov rax, rdx
inc rax
mov qword [rbx], rax
mov rcx, rbx
call fcn.140005090
test edi, edi
jne 0x140008990
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rsi, qword [rsp + 0x38]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140005080
int3

Function at 0x14000bcc4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bd0e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bd0e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bd0e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bd0e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bd0e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bd10
xor al, al
add rsp, 0x28
ret
Function at 0x180001032
Capabilities:
Get common file path

Disassembly:
jmp 0x1800188b0
push rbx
sub rsp, 0x250
mov rax, qword [0x180093040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rcx, [rsp + 0x32]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.180019d40
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r9, [rsp + 0x30]
lea r8d, [rbx + 0xf]
lea rdx, [0x180095370]
lea rcx, [0x180092dc0]
mov dword [rsp + 0x20], ebx
call fcn.180001230
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180019370
add rsp, 0x250
pop rbx
ret

Function at 0x1800010c8
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x1800183e0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, ecx
test ecx, ecx
je 0x180018407
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
jmp 0x18001840a
mov rsi, rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
call fcn.18001cf04
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x40
movsxd rdx, eax
lea rdx, [rdx*2 + 0x21a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rdx, [0x180092db0]
mov rcx, rdx
mov rdi, rax
mov r8, rax
or rcx, rax
and ecx, 0xf
jne 0x1800184c7
lea eax, [rcx + 4]
movaps xmm0, xmmword [rdx]
lea r8, [r8 + 0x80]
lea rdx, [rdx + 0x80]
movaps xmmword [r8 - 0x80], xmm0
movaps xmm1, xmmword [rdx - 0x70]
movaps xmmword [r8 - 0x70], xmm1
movaps xmm0, xmmword [rdx - 0x60]
movaps xmmword [r8 - 0x60], xmm0
movaps xmm1, xmmword [rdx - 0x50]
movaps xmmword [r8 - 0x50], xmm1
movaps xmm0, xmmword [rdx - 0x40]
movaps xmmword [r8 - 0x40], xmm0
movaps xmm1, xmmword [rdx - 0x30]
movaps xmmword [r8 - 0x30], xmm1
movaps xmm0, xmmword [rdx - 0x20]
movaps xmmword [r8 - 0x20], xmm0
movaps xmm1, xmmword [rdx - 0x10]
movaps xmmword [r8 - 0x10], xmm1
dec rax
jne 0x180018453
movaps xmm0, xmmword [rdx]
movaps xmmword [r8], xmm0
mov rax, qword [rdx + 0x10]
mov qword [r8 + 0x10], rax
movzx eax, word [rdx + 0x18]
mov word [r8 + 0x18], ax
jmp 0x1800184d5
mov r8d, 0x21a
mov rcx, rax
call fcn.180019e60
test ebp, ebp
jne 0x1800184e5
mov rbx, qword [rsp + 0x38]
sub rbx, qword [0x180092db8]
lea rcx, [rdi + 0x218]
mov rdx, rsi
mov qword [rdi + 8], rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x18000114f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180013a40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, r8d
movzx r8d, byte [rcx]
mov rbx, rcx
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
movzx eax, byte [rcx]
test al, al
jne 0x180013a90
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
nop dword [rax + rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [rdi + rbx]
test al, al
jne 0x180013a70
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov byte [rcx], 0
mov ecx, eax
test eax, eax
jle 0x180013aaf
lea rax, [rdi + 1]
lea rax, [rbx + rax*2]
xor byte [rax], r8b
inc rax
dec rcx
jne 0x180013aa4
mov byte [rdi + rbx], 0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180001172
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180013dc0
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x180093040]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx esi, r8b
mov rdi, rdx
test rcx, rcx
jne 0x180013def
xor eax, eax
jmp 0x180013eb3
mov edx, 5
mov qword [rsp + 0x240], rbx
call qword [sym.imp.USER32.dll_GetWindow]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rcx, [rsp + 0x20]
mov r8, rdi
sub r8, rcx
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x180013e38
add rcx, 2
test edx, edx
jne 0x180013e24
test eax, eax
je 0x180013ea8
nop dword [rax]
cmp sil, 1
jne 0x180013e5a
movzx r8d, sil
mov rdx, rdi
mov rcx, rbx
call fcn.180001172
test rax, rax
jne 0x180013eab
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rax, rax
je 0x180013ea8
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rax, [rsp + 0x20]
mov r8, rdi
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180013ea4
add rax, 2
test ecx, ecx
jne 0x180013e90
test edx, edx
jne 0x180013e40
mov rax, rbx
mov rbx, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180019370
add rsp, 0x248
pop rdi
pop rsi
ret
Function at 0x180012bc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180094be0], edi
jbe 0x180012c39
mov qword [rsp + 0x30], rbx
nop
mov rcx, qword [0x180094bd8]
lea rbx, [rdi*8]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180094bd8]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x180094be0]
jb 0x180012c00
mov rbx, qword [rsp + 0x30]
mov rcx, qword [0x180094bd8]
call fcn.18001a99c
mov qword [0x180094bd8], 0
mov dword [0x180094be0], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, esi
mov rcx, rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]

Function at 0x180012d10
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x500
mov rax, qword [0x180093040]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x180094c08]
mov ebp, r8d
mov rsi, rdx
test rax, rax
je 0x180012e0c
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
mov qword [rsp + 0x518], rbx
mov qword [rsp + 0x520], rdi
call rax
lea rcx, [rax - 1]
mov rbx, rax
cmp rcx, 0xfffffffffffffffd
ja 0x180012df9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180012df1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100001
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180012df9
nop dword [rax]
mov rcx, qword [rsp + 0x118]
cmp rcx, rsi
jb 0x180012df9
lea rax, [rsi + rbp]
cmp rcx, rax
jae 0x180012df9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x180012dee
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc edi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180012da0
jmp 0x180012df9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rdi, qword [rsp + 0x520]
mov rax, rbx
mov rbx, qword [rsp + 0x518]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180019370
mov rbp, qword [rsp + 0x528]
add rsp, 0x500
pop rsi
ret
Function at 0x180013200
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
xor edi, edi
cmp dword [0x180094bd4], 0x40
mov esi, edi
jae 0x180013359
mov qword [rax + 8], rbx
lea rbx, [rcx + rdx]
mov qword [rax + 0x10], rbp
mov eax, 0x80000000
cmp rbx, rax
jae 0x18001323b
lea ebx, [rdi + 1]
jmp 0x180013242
sub rbx, 0x7fff0000
lea rbp, [rcx + r8]
cmp rbp, 0xffffffff80000000
jae 0x180013258
add rbp, 0x7ff80000
jmp 0x18001325f
mov rbp, 0xfffffffffff80000
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], edi
lea r8d, [rdx + 0x2c]
call fcn.180019d40
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, rbp
jae 0x180013327
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180013307
cmp dword [rsp + 0x40], 0x10000
jne 0x1800132f5
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x1800132fa
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x1800132fa
lea eax, [rdx - 1]
xor edx, edx
mov r8d, 0x3000
add rax, rbx
div rcx
mov edx, 0x78
lea r9d, [rdx - 0x58]
imul rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18001330c
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
add rbx, rax
cmp rbx, rbp
jb 0x180013290
test rsi, rsi
je 0x180013327
lea rcx, [0x180094c40]
mov rax, rcx
cmp qword [rax], 0
je 0x18001334b
inc edi
add rax, 8
cmp edi, 0x40
jb 0x180013316
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov rax, rsi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
inc dword [0x180094bd4]
mov eax, edi
mov qword [rcx + rax*8], rsi
jmp 0x180013327
mov rax, rdi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

Function at 0x180013a40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
jmp 0x180013a40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, r8d
movzx r8d, byte [rcx]
mov rbx, rcx
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
movzx eax, byte [rcx]
test al, al
jne 0x180013a90
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
nop dword [rax + rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [rdi + rbx]
test al, al
jne 0x180013a70
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov byte [rcx], 0
mov ecx, eax
test eax, eax
jle 0x180013aaf
lea rax, [rdi + 1]
lea rax, [rbx + rax*2]
xor byte [rax], r8b
inc rax
dec rcx
jne 0x180013aa4
mov byte [rdi + rbx], 0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret