joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001129c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rdi, rcx
mov rcx, rdx
mov ebx, r8d
mov rbp, rdx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
lea r9, [rsp + 0x48]
lea rdx, [0x180025d2c]
mov r8d, ebx
mov rcx, rdi
mov esi, eax
call fcn.180011110
test eax, eax
jne 0x1800113a7
mov rdx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov ebx, 4
lea r8, [rsp + 0x40]
mov r9, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800113ac
inc esi
mov r9d, 0x3000
xor edx, edx
mov rcx, rdi
mov r8, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x1800113ac
lea rax, [rsp + 0x40]
mov r9, rsi
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1800113ac
mov r9, qword [rsp + 0x48]
lea rax, [rsp + 0x78]
xor edx, edx
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
mov r8d, 0x1000
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rbx, rax
test rax, rax
je 0x1800113ac
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp eax, 0xffffffff
jne 0x1800113b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x180011504
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov r9d, 1
mov rbx, rcx
call fcn.18001182c
xor esi, esi
cmp eax, esi
jne 0x180011552
mov eax, dword [rsp + 0x60]
lea rdx, [0x18002564c]
mov r9, rdi
mov dword [rsp + 0x28], eax
mov r8, rbx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
cmovg eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x180011730
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov r12, rdx
and qword [rax - 0x28], rdi
mov dword [rax - 0x30], 0x80
lea r8d, [rdi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x38], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800117e5
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
jne 0x180011790
mov ebx, 0xe8
jmp 0x1800117ed
mov rcx, qword [0x180023a50]
lea r8d, [rbx + 1]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800117e5
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x78]
mov r8d, ebx
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800117e5
cmp ebx, dword [rsp + 0x78]
je 0x1800117d6
mov ebx, 0x1e
jmp 0x1800117ed
mov byte [rbx + rdi], 0
mov qword [r12], rdi
mov dword [rbp], ebx
xor ebx, ebx
jmp 0x1800117ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rsi, 0xffffffffffffffff
je 0x1800117fc
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rdi, rdi
je 0x180011817
test ebx, ebx
je 0x180011817
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x18001182c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov eax, r9d
mov esi, r9d
mov r12d, r8d
and al, 3
mov r13, rdx
mov edx, 0xc0000000
neg al
mov r14, rcx
sbb ebp, ebp
and qword [rsp + 0x30], 0
xor r9d, r9d
and ebp, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
inc ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x1800118d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 0x20
jne 0x1800118d3
test sil, 4
je 0x1800118d3
lea ecx, [rax - 0x16]
call qword [sym.imp.KERNEL32.dll_Sleep]
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180011888
cmp rbx, 0xffffffffffffffff
je 0x180011931
mov r9d, 2
test r9b, sil
je 0x1800118f2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r12d
mov rdx, r13
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180011920
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor edi, edi
jmp 0x180011928
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800125d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax - 0x18], 0
mov rbp, r8
lea r8, [rax - 0x10]
mov rcx, 0xffffffff80000001
mov rsi, r9
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebx, eax
test eax, eax
jne 0x1800126c4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1800126b9
mov rcx, qword [0x180023a50]
mov r8, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800126b4
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test eax, eax
jne 0x1800126a0
mov rcx, qword [rsp + 0x70]
mov qword [rsi], rdi
test rcx, rcx
je 0x1800126b9
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
jmp 0x1800126b9
mov rcx, qword [0x180023a50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1800126b9
mov ebx, 8
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x180012afc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
mov rbx, rcx
mov ecx, 0x8664
xor ebp, ebp
mov r13, r8
cmp word [rax + rbx + 4], cx
jne 0x180012b3d
mov eax, dword [rax + rbx + 0x88]
jmp 0x180012b41
mov eax, dword [rax + rbx + 0x78]
add rax, rbx
test rax, rax
je 0x180012bb2
cmp dword [rax + 0x1c], ebp
je 0x180012bb2
cmp dword [rax + 0x20], ebp
je 0x180012bb2
mov r14d, dword [rax + 0x1c]
mov edi, dword [rax + 0x20]
mov esi, dword [rax + 0x24]
mov r15d, dword [rax + 0x18]
add r14, rbx
add rdi, rbx
add rsi, rbx
xor r12d, r12d
test r15d, r15d
je 0x180012bad
mov ecx, dword [rdi]
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x180012b98
mov rdx, qword [rsp + 0x58]
inc r12d
add rdi, 4
add rsi, 2
cmp r12d, r15d
jb 0x180012b72
jmp 0x180012bad
movzx eax, word [rsi]
lea rbp, [r14 + rax*4]
test r13, r13
je 0x180012bad
mov ecx, dword [rdi]
add rcx, rbx
mov qword [r13], rcx
mov rax, rbp
jmp 0x180012bb4
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001497c
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
mov r12d, dword [0x180023a64]
xor ebx, ebx
mov r14, r8
mov r13, rdx
lea rdi, [0x180022a6c]
mov esi, ebx
cmp dword [rdi - 4], r12d
jne 0x1800149f3
cmp dword [rdi], ebx
je 0x180014a04
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov ebp, eax
jle 0x180014a04
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, ebp
call fcn.180018044
cmp eax, dword [rdi]
je 0x180014a04
inc esi
add rdi, 0x14
cmp esi, 3
jae 0x180014acd
jmp 0x1800149b4
mov eax, esi
lea rbp, [0x180022a68]
lea rdi, [rax + rax*4]
cmp dword [rbp + rdi*4 + 0xc], ebx
je 0x180014a4e
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r13
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x180014a4e
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.180018044
cmp eax, dword [rbp + rdi*4 + 0xc]
jne 0x180014acd
cmp dword [rbp + rdi*4 + 8], ebx
je 0x180014a8b
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetClassNameA]
cmp eax, ebx
mov esi, eax
jle 0x180014a8b
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.180018044
cmp eax, dword [rbp + rdi*4 + 8]
jne 0x180014acd
cmp dword [rbp + rdi*4 + 0x10], ebx
je 0x180014ac8
lea rdx, [rsp + 0x20]
mov r8d, 0x80
mov rcx, r14
call qword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
mov esi, eax
jle 0x180014ac8
lea rcx, [rsp + 0x20]
call qword [sym.imp.ntdll.dll__strupr]
lea rcx, [rsp + 0x20]
mov edx, esi
call fcn.180018044
cmp eax, dword [rbp + rdi*4 + 0x10]
jne 0x180014acd
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 0x180014de0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x170
mov r13, qword [rcx]
mov esi, dword [rcx + 8]
mov ebx, dword [rcx + 0x10]
xor edi, edi
mov rbp, rcx
lea rcx, [rsp + 0x44]
lea r8d, [rdi + 0x1e]
xor edx, edx
mov dword [rsp + 0x40], edi
call sub.ntdll.dll_memset
cmp esi, 0x101
je 0x180014e31
cmp esi, 0x100
jne 0x180014f8e
mov edx, 3
mov rcx, r13
call qword [sym.imp.USER32.dll_GetAncestor]
cmp rax, rdi
mov r12, rax
cmove r12, r13
cmp esi, 0x100
jne 0x180014f8e
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x180023a64]
mov r8, r12
mov rdx, r13
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r12
call fcn.18001497c
mov dword [rsp + 0x58], eax
movzx eax, word [rbp + 0x1a]
lea rcx, [rsp + 0x70]
movzx esi, al
call qword [sym.imp.USER32.dll_GetKeyboardState]
cmp eax, edi
je 0x180014f8e
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
lea r9, [rsp + 0x190]
lea r8, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov edx, esi
mov ecx, ebx
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
mov word [rsp + 0x190], di
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 0xffffffff
je 0x180014f89
cmp eax, edi
je 0x180014f20
movsxd rbx, eax
cmp rbx, rdi
jle 0x180014f89
movzx eax, word [rsp + rdi*2 + 0x190]
xor r9d, r9d
lea rdx, [rsp + 0x40]
lea r8d, [r9 + 0x22]
mov ecx, 0x113
mov word [rsp + 0x60], ax
call fcn.18000c050
inc rdi
cmp rdi, rbx
jl 0x180014ef3
jmp 0x180014f89
sub ebx, 8
mov ax, di
je 0x180014f64
sub ebx, 1
je 0x180014f5d
sub ebx, 0x1c
je 0x180014f56
sub ebx, 1
je 0x180014f4f
sub ebx, 1
je 0x180014f48
cmp ebx, 1
jne 0x180014f69
mov eax, 0x2193
jmp 0x180014f69
mov eax, 0x2192
jmp 0x180014f69
mov eax, 0x2191
jmp 0x180014f69
mov eax, 0x2190
jmp 0x180014f69
mov eax, 0x2423
jmp 0x180014f69
mov eax, 0x21d0
mov word [rsp + 0x60], ax
cmp ax, di
je 0x180014f89
xor r9d, r9d
lea rdx, [rsp + 0x40]
mov ecx, 0x113
lea r8d, [r9 + 0x22]
call fcn.18000c050
mov edi, 1
lea r11, [rsp + 0x170]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret
Function at 0x180015050
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x20
mov r12d, 8
mov rbp, rcx
lea edx, [r12 + 0x14]
mov edi, r12d
call fcn.180018044
mov rcx, qword [0x180023cb0]
lea r8, [rsp + 0x48]
mov edx, eax
call fcn.180014680
neg eax
sbb rbx, rbx
and rbx, qword [rsp + 0x48]
je 0x18001514d
mov esi, dword [rbx + 0xc]
test esi, esi
jne 0x1800150ff
mov rcx, rbx
mov dword [rbx + 0xc], 1
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 r8d, dword [rbp]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x1800150ff
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]
movzx ecx, word [rbp + 0x20]
xor edi, edi
cmp cx, r12w
jne 0x180015119
mov eax, dword [rbx + 8]
test eax, eax
je 0x180015137
dec eax
mov dword [rbx + 8], eax
jmp 0x180015137
cmp dword [rbx + 8], 0x2000
jae 0x180015132
mov eax, dword [rbx + 8]
mov word [rbx + rax*2 + 0xa18], cx
inc dword [rbx + 8]
jmp 0x180015137
mov edi, 0x6f
test esi, esi
je 0x18001514d
mov rcx, qword [0x180023cb0]
lea r8, [rbx - 0x34]
xor edx, edx
call fcn.180014800
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov eax, edi
add rsp, 0x20
pop r12
pop rdi
pop rsi
ret
Function at 0x18001668c
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x510
and qword [rsp + 0x40], 0
mov rsi, rcx
mov r15d, edx
lea rcx, [rsp + 0x48]
xor edx, edx
mov r8d, 0x4c8
call sub.ntdll.dll_memset
mov ecx, dword [rsi + 0x10]
mov r12, qword [rsi]
mov r14, qword [0x180023c40]
xor edx, edx
mov dword [rsp + 0x550], 0xccccfeeb
xor ebp, ebp
call fcn.18001065c
lea ecx, [rbp + 0x10]
xor r13d, r13d
test eax, eax
mov dword [rsp + 0x70], 0x100003
cmovne r13d, ecx
mov rcx, qword [rsi]
mov edx, r13d
call fcn.180015f04
lea ebx, [rbp + 4]
lea r8, [rsp + 0x30]
mov rdi, rax
lea rax, [rsp + 0x38]
mov r9, rbx
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x18001683e
cmp qword [rsp + 0x38], rbx
jne 0x18001683e
lea rax, [rsp + 0x558]
mov r9d, ebx
mov r8, rbx
mov rdx, rdi
mov rcx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180016778
lea r9, [rsp + 0x558]
lea r8, [rsp + 0x550]
mov rdx, rdi
mov rcx, r12
call fcn.180015e90
jmp 0x18001677a
xor eax, eax
test eax, eax
je 0x18001683e
mov ebx, 0x1770
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 0x12c
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x40]
sub ebx, 0x12c
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18001683e
test ebx, ebx
jle 0x1800167cd
cmp qword [rsp + 0x138], rdi
jne 0x180016787
test r13b, 0x10
je 0x1800167de
mov rcx, r14
call fcn.1800105cc
mov rbp, rax
lea rdx, [0x180023cb8]
xor r9d, r9d
mov r8d, r13d
mov rcx, rsi
call fcn.1800160e0
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
lea r11, [rsp + 0x568]
mov r9d, 4
mov rdx, rdi
mov rcx, r12
mov r8, r9
mov qword [rsp + 0x20], r11
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180016839
lea r9, [rsp + 0x568]
lea r8, [rsp + 0x30]
mov rdx, rdi
mov rcx, r12
call fcn.180015e90
cmp ebx, 0xffffffff
jne 0x180016846
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test r15b, 4
jne 0x180016856
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test rbp, rbp
je 0x18001686d
mov rcx, qword [0x180023a50]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
mov rbx, qword [rsp + 0x560]
add rsp, 0x510
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180016cb4
Capabilities:
Allocate or change rwx memory
Map section object

Disassembly:
mov r11, rsp
sub rsp, 0x68
xor r9d, r9d
mov dword [rsp + 0x48], 0x40
xor eax, eax
mov dword [r11 - 0x28], r9d
mov dword [r11 + 0x24], eax
lea rax, [r11 - 0x18]
mov dword [rsp + 0x38], 2
mov qword [r11 - 0x38], rax
lea rax, [r11 + 0x20]
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x18], r9
mov dword [r11 + 0x20], r9d
mov qword [r11 - 0x48], r9
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
add rsp, 0x68
ret
Function at 0x180018044
Capabilities:
Hash data with crc32

Disassembly:
or r11d, 0xffffffff
mov r8d, r11d
jmp 0x18001807a
movsx r9d, byte [rcx]
add edx, r11d
mov r10d, 8
inc rcx
mov eax, r9d
xor eax, r8d
shr r8d, 1
test al, 1
je 0x180018071
xor r8d, 0xedb88320
shr r9d, 1
sub r10, 1
jne 0x18001805d
test edx, edx
jne 0x18001804d
mov eax, r8d
ret
Function at 0x14000f530
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rbx
push rsi
push rdi
push rbp
sub rsp, 0xc8
movdqa xmmword [rsp + 0x20], xmm6
movdqa xmmword [rsp + 0x30], xmm7
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm9
movdqa xmmword [rsp + 0x60], xmm10
movdqa xmmword [rsp + 0x70], xmm11
movdqa xmmword [rsp + 0x80], xmm12
movdqa xmmword [rsp + 0x90], xmm13
movdqa xmmword [rsp + 0xa0], xmm14
movdqa xmmword [rsp + 0xb0], xmm15
mov qword [rsp + 0x110], rcx
mov qword [rsp + 0x118], rdx
mov eax, dword [0x140997d4c]
mov rbx, qword gs:[0x58]
mov rbx, qword [rbx + rax*8]
mov eax, reloc.WS2_32.dll_recv
add rax, rbx
mov qword [rsp + 0xc0], rax
lock and dword [rax + 0x38], 0xffffffef
mov rax, qword [rdx + 0x18]
mov rbx, qword [rax]
mov rax, qword [rdx + 0x20]
mov rbp, qword [rax]
mov rax, qword [rdx + 0x28]
mov rsi, qword [rax]
mov rax, qword [rdx + 0x30]
mov rdi, qword [rax]
mov rax, qword [rdx + 0x58]
mov r12, qword [rax]
mov rax, qword [rdx + 0x60]
mov r13, qword [rax]
mov rax, qword [rdx + 0x68]
mov r14, qword [rax]
mov rax, qword [rdx + 0x70]
mov r15, qword [rax]
movdqa xmm6, xmmword [rdx + 0x90]
movdqa xmm7, xmmword [rdx + 0xa0]
movdqa xmm8, xmmword [rdx + 0xb0]
movdqa xmm9, xmmword [rdx + 0xc0]
movdqa xmm10, xmmword [rdx + 0xd0]
movdqa xmm11, xmmword [rdx + 0xe0]
movdqa xmm12, xmmword [rdx + 0xf0]
movdqa xmm13, xmmword [rdx + 0x100]
movdqa xmm14, xmmword [rdx + 0x110]
movdqa xmm15, xmmword [rdx + 0x120]
mov rcx, qword [rdx + 0x78]
call qword [rsp + 0x110]
mov rdx, qword [rsp + 0x118]
mov rax, qword [rdx + 0x18]
mov qword [rax], rbx
mov rax, qword [rdx + 0x20]
mov qword [rax], rbp
mov rax, qword [rdx + 0x28]
mov qword [rax], rsi
mov rax, qword [rdx + 0x30]
mov qword [rax], rdi
mov rax, qword [rdx + 0x58]
mov qword [rax], r12
mov rax, qword [rdx + 0x60]
mov qword [rax], r13
mov rax, qword [rdx + 0x68]
mov qword [rax], r14
mov rax, qword [rdx + 0x70]
mov qword [rax], r15
movdqa xmmword [rdx + 0x90], xmm6
movdqa xmmword [rdx + 0xa0], xmm7
movdqa xmmword [rdx + 0xb0], xmm8
movdqa xmmword [rdx + 0xc0], xmm9
movdqa xmmword [rdx + 0xd0], xmm10
movdqa xmmword [rdx + 0xe0], xmm11
movdqa xmmword [rdx + 0xf0], xmm12
movdqa xmmword [rdx + 0x100], xmm13
movdqa xmmword [rdx + 0x110], xmm14
movdqa xmmword [rdx + 0x120], xmm15
mov rax, qword [rsp + 0xc0]
lock or dword [rax + 0x38], 0x10
movdqa xmm6, xmmword [rsp + 0x20]
movdqa xmm7, xmmword [rsp + 0x30]
movdqa xmm8, xmmword [rsp + 0x40]
movdqa xmm9, xmmword [rsp + 0x50]
movdqa xmm10, xmmword [rsp + 0x60]
movdqa xmm11, xmmword [rsp + 0x70]
movdqa xmm12, xmmword [rsp + 0x80]
movdqa xmm13, xmmword [rsp + 0x90]
movdqa xmm14, xmmword [rsp + 0xa0]
movdqa xmm15, xmmword [rsp + 0xb0]
add rsp, 0xc8
pop rbp
pop rdi
pop rsi
pop rbx
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140018010
Capabilities:
Resume thread
Suspend thread

Disassembly:
cmp qword [rcx + 0x60], 0xffffffffffffffff
je 0x140011347
mov eax, dword [rcx + 0x38]
shr eax, 5
test al, 1
jne 0x140011347
mov eax, dword [rcx + 0x38]
shr eax, 7
test al, 1
jne 0x140011347
mov rdx, rcx
mov rcx, qword [rcx + 0x60]
jmp 0x140018010
ret
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x500
mov rax, qword [0x140980bb0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x1409801d8]
mov rbx, rdx
mov rdi, rcx
cmp rax, 0xffffffffffffffff
jne 0x14001806e
xor edx, edx
lea rcx, str.kernel32
mov r8d, 0x800
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rcx, rax
lea rdx, str.QueueUserAPC2
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1409801d8], rax
test rax, rax
je 0x1400180ca
mov rcx, rbx
call fcn.140011680
test al, al
jne 0x140018118
mov dl, 1
mov rcx, rbx
call fcn.140011700
mov r9d, 0x10001
lea rcx, [0x140017c70]
mov r8, rbx
mov rdx, rdi
call qword [0x1409801d8]
test eax, eax
jne 0x140018118
xor edx, edx
mov rcx, rbx
call fcn.140011700
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x140018118
mov qword [0x1409801d8], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x140018118
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x40100003
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x14001810f
mov eax, dword [rsp + 0x50]
test eax, eax
jns 0x14001810f
test eax, 0x18000000
jne 0x14001810f
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [0x140991aa0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.14006cb50
mov rbx, qword [rsp + 0x520]
add rsp, 0x500
pop rdi
ret

Function at 0x1400182a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rcx + rbx], 0
jne 0x1400182b4
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, ebx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140018360
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140018389
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x38
ret

Function at 0x1400183a0
Capabilities:
Create thread
Resume thread

Disassembly:
push rbx
sub rsp, 0x30
mov r9, rdx
mov qword [rsp + 0x28], 0
mov r8, rcx
mov dword [rsp + 0x20], 4
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x1400183d5
add rsp, 0x30
pop rbx
ret
mov edx, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0x30
pop rbx
ret