joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001dd8c
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.18001dd50
test eax, eax
je 0x18001df8f
lea rcx, [rsp + 0x20]
call fcn.18001dd50
test eax, eax
je 0x18001de86
lea rcx, [rsp + 0x20]
call fcn.18001dd50
test eax, eax
je 0x18001de36
xor r9d, r9d
lea r11d, [r9 + 4]
lea rcx, [rsp + 0x20]
call fcn.18001dd50
sub r11d, esi
lea r9d, [rax + r9*2]
jne 0x18001ddfd
mov r8, qword [rsp + 0x28]
test r9d, r9d
je 0x18001de2d
mov ecx, r9d
mov rax, r8
sub rax, rcx
mov al, byte [rax]
mov byte [r8], al
jmp 0x18001dfa6
mov byte [r8], 0
jmp 0x18001dfa6
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 0x18001de7f
mov eax, r10d
test ecx, ecx
je 0x18001df8a
mov rdx, r8
sub rdx, rax
mov al, byte [rdx]
add rdx, rsi
mov byte [r8], al
add r8, rsi
add ecx, 0xffffffff
jne 0x18001de6a
jmp 0x18001df85
mov edi, esi
jmp 0x18001df8a
mov r9d, esi
lea rcx, [rsp + 0x20]
call fcn.18001dd50
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.18001dd50
test eax, eax
jne 0x18001de89
test r11d, r11d
jne 0x18001df02
cmp r9d, 2
jne 0x18001defc
mov r9d, esi
lea rcx, [rsp + 0x20]
call fcn.18001dd50
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.18001dd50
test eax, eax
jne 0x18001deb3
mov r8, qword [rsp + 0x28]
movsxd rax, r10d
test r9d, r9d
je 0x18001df8a
mov rcx, r8
sub rcx, rax
mov al, byte [rcx]
add rcx, rsi
mov byte [r8], al
add r8, rsi
add r9d, 0xffffffff
jne 0x18001dee6
jmp 0x18001df85
lea r10d, [r9 - 3]
jmp 0x18001df06
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.18001dd50
lea rcx, [rsp + 0x20]
lea r9d, [rax + r9*2]
call fcn.18001dd50
test eax, eax
jne 0x18001df20
cmp r10d, 0x7d00
jb 0x18001df48
inc r9d
cmp r10d, 0x500
jb 0x18001df54
add r9d, esi
cmp r10d, 0x80
jae 0x18001df61
add r9d, 2
mov r8, qword [rsp + 0x28]
movsxd rax, r10d
test r9d, r9d
je 0x18001df8a
mov rcx, r8
sub rcx, rax
mov al, byte [rcx]
add rcx, rsi
mov byte [r8], al
add r8, rsi
add r9d, 0xffffffff
jne 0x18001df74
mov qword [rsp + 0x28], r8
mov r11d, esi
jmp 0x18001dfb1
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 0x18001ddc4
mov rsi, qword [rsp + 0x58]
sub r8, rbx
mov rbx, qword [rsp + 0x50]
mov eax, r8d
add rsp, 0x40
pop rdi
ret
Function at 0x18001e8d8
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 [0x180037ae8]
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 0x18001ea2f
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 0x18001ea27
cmp dword [rsi + 0x54], eax
je 0x18001e9c8
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 0x18001ea27
mov rdx, rbp
mov rcx, rbx
call qword [rsi + 0x40]
mov edi, eax
test eax, eax
jne 0x18001ea27
lea rcx, [rsi + 0x10]
mov qword [rbx + 0x30], rbp
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8d, [rdi + 0x10]
lea rcx, [0x18001e508]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
je 0x18001ea11
mov rax, qword [rsi + 8]
mov qword [rbx], rsi
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [rsi + 8], rbx
jmp 0x18001ea19
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 0x18001ea2f
mov rcx, rbx
call fcn.18001e4a4
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 0x18001ecbc
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 0x18001ed21
cmp eax, 0xffffffff
jne 0x18001ed14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x18001ed26
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x18001ed1b
sub edi, eax
cdqe
add rsi, rax
test edi, edi
je 0x18001ed26
jmp 0x18001ecdb
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 0x18001ed40
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 0x18001ed73
lea edi, [rsi + 0x57]
jmp 0x18001eed6
lea rdx, [rsp + 0x30]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edi, eax
test eax, eax
jne 0x18001eeab
mov rcx, qword [0x180037ae8]
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 0x18001edb7
lea edi, [rsi + 7]
jmp 0x18001eec8
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 0x18001eeb8
mov qword [rbx + 0x70], rbp
test rbp, rbp
jne 0x18001ee30
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 0x18001eeb8
mov rcx, r12
call qword [sym.imp.SHLWAPI.dll_StrDupA]
mov r8d, 6
mov edx, esi
mov qword [rbx + 0x38], rax
lea rax, [fcn.18001e2a4]
lea ecx, [r8 - 4]
mov qword [rbx + 0x40], rax
lea rax, [0x18001e2ec]
mov qword [rbx + 0x48], rax
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x18001eeb8
lea rax, [rbx + 0x88]
lea r8, [0x18001ea48]
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 0x18001eeb8
mov qword [0x180037af8], rbx
xor edi, edi
jmp 0x18001eeb3
mov rbx, qword [rsp + 0x208]
cmp edi, 0xffffffff
jne 0x18001eec0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
je 0x18001eed6
test esi, esi
je 0x18001eed6
mov rcx, rbx
call fcn.18001eef8
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 0x18001f2a8
Capabilities:
Write file on windows

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

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx]
mov ebx, r8d
test rcx, rcx
je 0x18001f342
test rdx, rdx
je 0x18001f342
test ebx, ebx
je 0x18001f342
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18001f333
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x18001f347
mov eax, dword [rsp + 0x40]
sub eax, ebx
neg eax
sbb eax, eax
and eax, 0x1e
jmp 0x18001f347
mov eax, 0x57
add rsp, 0x30
pop rbx
ret
Function at 0x1800236d8
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 0x18002372b
cmp rbx, r12
je 0x18002372b
cmp rdi, r12
je 0x18002372b
mov al, byte [rbx]
mov rcx, rbx
cmp al, 0x2f
jne 0x180023758
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 0x18002372b
cmp al, 0x3a
je 0x18002372b
inc rcx
mov al, byte [rcx]
cmp al, r12b
jne 0x18002374b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, 0xffffffff
je 0x1800237a1
mov r8d, 0x809
call fcn.18002242c
mov rdx, rsi
lea rcx, [rsp + 0x30]
cmp eax, r12d
je 0x1800237a1
call fcn.18002288c
cmp eax, r12d
jne 0x1800237b7
lea rcx, [rsp + 0x30]
call fcn.1800224f8
jmp 0x18002372b
xor r8d, r8d
call fcn.180022818
cmp eax, r12d
je 0x18002372b
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.180022ef0
lea rcx, [rsp + 0x30]
mov ebx, eax
call fcn.180023458
lea rcx, [rsp + 0x30]
neg eax
sbb edi, edi
and edi, ebx
call fcn.1800235c4
neg eax
sbb ebx, ebx
and ebx, edi
cmp ebx, r12d
jne 0x180023818
cmp ebp, r12d
je 0x180023818
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, r12d
jne 0x180023818
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
jmp 0x18002372d
Function at 0x180025aa8
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 0x180025b60
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 0x180025b13
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 0x180025b3e
add ebx, ebp
mov rsi, qword [rdi]
cmp dword [rsi + 8], 0
je 0x180025c39
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 0x180025be2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x180025bb4
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x3c]
mov r8d, r12d
call fcn.18002ae0c
jmp 0x180025bc7
cmp ecx, 2
jne 0x180025bca
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x3c]
mov r8d, r12d
call fcn.180028da0
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 0x180025c23
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 0x180025c39
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x180025ac6
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
Function at 0x14001132f
Capabilities:
Terminate process

Disassembly:
jmp 0x140019180
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001140b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140018000
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140018020
xor al, al
jmp 0x1400180a1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140018033
xor al, al
jmp 0x1400180a1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001805d
xor al, al
jmp 0x1400180a1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140018071
xor al, al
jmp 0x1400180a1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140018083
xor al, al
jmp 0x1400180a1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001809f
xor al, al
jmp 0x1400180a1
mov al, 1
add rsp, 0x38
ret
Function at 0x140017300
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400115d2
movzx eax, al
test eax, eax
jne 0x140017320
mov ecx, 7
call fcn.1400114d3
nop
mov byte [rsp + 0x20], 0
call fcn.14001150a
mov byte [rsp + 0x21], al
cmp dword [0x1400244f0], 1
jne 0x140017344
mov ecx, 7
call fcn.1400114d3
nop
jmp 0x14001739c
cmp dword [0x1400244f0], 0
jne 0x140017397
mov dword [0x1400244f0], 1
lea rdx, [0x14001f770]
lea rcx, [0x14001f440]
call fcn.1400112b2
test eax, eax
je 0x140017378
mov eax, 0xff
jmp 0x1400174a1
lea rdx, [0x14001f330]
lea rcx, [section..rdata]
call fcn.1400114f6
mov dword [0x1400244f0], 2
jmp 0x14001739c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400114bf
call fcn.14001142e
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400173f9
mov rcx, qword [rsp + 0x30]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x1400173f9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x14002b020]
nop
call fcn.14001146f
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001742d
mov rcx, qword [rsp + 0x38]
call fcn.140011235
movzx eax, al
test eax, eax
je 0x14001742d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011582
nop
call fcn.140017510
mov dword [rsp + 0x28], eax
call fcn.14001140b
movzx eax, al
test eax, eax
jne 0x14001744c
mov ecx, dword [rsp + 0x28]
call fcn.140011078
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14001745b
call fcn.140011591
nop
xor edx, edx
mov cl, 1
call fcn.14001120d
mov eax, dword [rsp + 0x28]
jmp 0x1400174a1
add rsp, 0x68
ret
Function at 0x1400334c0
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x70
mov rax, qword [0x140162900]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, qword [0x140167bf8]
mov rbp, rcx
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x1400336df
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x1400336df
mov qword [rsp + 0x80], rbx
mov ecx, 0x50
mov qword [rsp + 0x88], rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, qword [0x140167bf8]
xor ebx, ebx
mov rdi, rax
test r8, r8
je 0x140033594
movsx rdx, word [r8 + 0x5488]
lea rax, [r8 + 0x548c]
mov r9d, dword [r8 + 0x3fe8]
lea rax, [rax + rdx*8]
cmp dword [rax], r9d
je 0x140033589
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x5488], cx
movsx rax, cx
lea rax, [rax*8 + 0x548c]
add rax, r8
mov dword [rax], r9d
mov dword [rax + 4], ebx
inc word [rax + 4]
inc dword [r8 + 0x5480]
test rdi, rdi
je 0x1400335b1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x40], xmm0
jmp 0x1400335b4
mov rdi, rbx
or dword [rsi + 0xc], 6
lea rax, [0x140146e48]
mov qword [rsi + 0x88], rax
mov qword [rsi + 0x98], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x38]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
test r8, r8
je 0x1400335f7
mov rsi, qword [r8 + 0x98]
jmp 0x1400335fa
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140033625
mov dword [rsi + 0x2c], ebx
mov rax, qword [0x140167bf8]
mov rcx, qword [rax + 0x4bd0]
mov rax, qword [rdi]
mov rdx, qword [rcx]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x28], rax
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x40], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x48], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x60], rax
mov byte [rdi + 0x31], 1
mov rcx, qword [rsp + rbx*8 + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x14003369f
inc rbx
cmp rbx, 5
jl 0x140033681
jmp 0x1400336cb
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0x88]
mov al, 1
mov rbx, qword [rsp + 0x80]
jmp 0x1400336e1
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400e10a0
mov rbp, qword [rsp + 0x90]
add rsp, 0x70
pop rsi
ret
Function at 0x14005b640
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push rbx
sub rsp, 0x1b0
mov rax, qword [0x140162900]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14005b7b1
mov r8d, 0x104
lea rdx, [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rax, str.____autostart
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], reloc.WS2_32.dll_ntohs
lea rax, [rsp + 0x90]
mov qword [rsp + 0x68], rax
movabs rax, 0xb000000000000000
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.1400703b0
lea rbx, [rsp + 0x70]
mov rcx, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x88]
cmp rdx, 0xf
cmova rbx, rcx
jbe 0x14005b75a
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b755
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005b755
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e1360
movdqa xmm0, xmmword [0x14014d9c0]
movdqu xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x14005b777
inc eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
lea rdx, str.MisterFish_DPI
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1400e10a0
add rsp, 0x1b0
pop rbx
ret

Function at 0x14005b7d0
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
sub rsp, 0x38
lea rax, [rsp + 0x40]
mov r9d, 2
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14005b81c
mov rcx, qword [rsp + 0x40]
lea rdx, str.MisterFish_DPI
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x38
ret
Function at 0x14005b830
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub rsp, 0x168
mov rax, qword [0x140162900]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rax, [rsp + 0x38]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14005b8e1
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x34], 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.MisterFish_DPI
mov dword [rsp + 0x30], 0x104
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov rcx, qword [rsp + 0x38]
test eax, eax
jne 0x14005b8db
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400e10a0
add rsp, 0x168
ret
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400e10a0
add rsp, 0x168
ret