joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800103a8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x70]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 2
mov r8, qword [0x1800653f8]
mov rdx, qword [0x1800653e8]
mov rcx, qword [0x1800653f0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x180010438
mov eax, 1
jmp 0x180010455
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x70]
mov rdx, qword [rax]
mov ecx, 0x45
call fcn.18000dd84
xor eax, eax
add rsp, 0x68
ret
Function at 0x18001045c
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x1060
call fcn.180036550
sub rsp, rax
xor eax, eax
mov word [rsp + 0x60], ax
lea rax, [rsp + 0x62]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
xor eax, eax
mov word [rsp + 0x860], ax
lea rax, [rsp + 0x862]
mov rdi, rax
xor eax, eax
mov ecx, 0x7fe
rep stosb byte [rdi], al
mov qword [rsp + 0x50], 0
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov qword [rax + 0x10], 0
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rax, qword [rsp + 0x1070]
mov rcx, qword [rax]
call fcn.18000f874
test eax, eax
jne 0x1800104fd
mov rax, qword [rsp + 0x1070]
mov edx, dword [rax + 8]
mov ecx, 7
call fcn.18000dc18
xor eax, eax
jmp 0x180010650
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0x400
jae 0x180010539
lea rdx, [rsp + 0x860]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea rax, [rsp + 0x860]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x1070]
mov eax, dword [rax + 0x20]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x60]
xor r8d, r8d
mov edx, 2
mov rcx, qword [0x1800653e0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
test eax, eax
je 0x1800105aa
mov eax, 1
jmp 0x180010650
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x522
jne 0x1800105e5
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x1800105e5
cmp dword [0x180065408], 1
jne 0x1800105e5
mov r8, qword [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x1070]
call fcn.1800103a8
jmp 0x180010650
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180010630
mov rax, qword [rsp + 0x1070]
mov rax, qword [rax + 0x10]
mov eax, dword [rax]
cmp rax, 0x70
jne 0x180010630
cmp qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW], 0
je 0x180010630
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1070]
mov rdx, qword [rax]
mov ecx, 0x4a
call fcn.18000dd84
xor eax, eax
jmp 0x180010650
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rax, qword [rsp + 0x1070]
mov rdx, qword [rax]
mov ecx, 0x29
call fcn.18000dd84
xor eax, eax
add rsp, 0x1060
pop rdi
ret
Function at 0x18001065c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
mov qword [rsp + 0x80], 0
mov ecx, 0xa000
call fcn.180016738
mov qword [rsp + 0x60], rax
mov edx, 0x4000
mov rcx, qword [rsp + 0x60]
call fcn.1800169ac
mov qword [rsp + 0x70], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.1800169ac
mov qword [rsp + 0x78], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.1800169ac
mov qword [rsp + 0x88], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.1800169ac
mov qword [rsp + 0x90], rax
mov edx, 0x400
mov rcx, qword [rsp + 0x60]
call fcn.1800169ac
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0xb0], WSAGetLastError
mov rdi, qword [rsp + 0x158]
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xec], 0x101
xor eax, eax
mov word [rsp + 0xf0], ax
mov qword [rsp + 0x108], 0
mov qword [rsp + 0x110], 0
mov qword [rsp + 0x100], 0
mov qword [rsp + 0xc0], 0
mov r8d, 0x4000
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x148]
call fcn.18000f874
mov r8d, 0x400
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x138]
call fcn.18000f874
mov r8d, 0x400
mov rdx, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x140]
call fcn.18000f874
mov r8d, 0x400
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x130]
call fcn.18000f874
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, eax
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x400
jae 0x18001082e
mov rdx, qword [rsp + 0x98]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x150]
or eax, 0x8000400
mov rcx, qword [rsp + 0x158]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0xb0]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
mov r9d, 1
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1800108b0
mov dword [rsp + 0x68], 1
jmp 0x1800108f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x130]
mov r8, qword [rsp + 0x148]
lea rdx, str._s_as__s_s:__d
mov ecx, 0x35
call fcn.18000dbac
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x60]
call fcn.1800168a8
mov eax, dword [rsp + 0x68]
add rsp, 0x120
pop rdi
ret
Function at 0x180010d58
Capabilities:
Read file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
cmp qword [0x180061110], 0
jne 0x180010d96
mov ecx, 0x80004
call fcn.180035368
mov qword [0x180061110], rax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rax]
call sub.WS2_32.dll_htonl
mov dword [rsp + 0x24], eax
mov rax, qword [0x180061110]
mov ecx, dword [rsp + 0x24]
mov dword [rax], ecx
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x50]
cmp dword [rax + 4], ecx
jbe 0x180010dcb
mov eax, dword [rsp + 0x50]
mov dword [rsp + 0x20], eax
jmp 0x180010dd7
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 4]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jbe 0x180010e5c
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [0x180061110]
lea rcx, [rdx + rcx + 4]
mov rdx, qword [rsp + 0x40]
mov r9, qword [rdx + 8]
mov r8d, eax
mov edx, 1
call fcn.1800367c0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
jne 0x180010e21
mov rax, qword [rsp + 0x40]
mov dword [rax + 4], 0
jmp 0x180010e5c
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x40]
mov ecx, dword [rsp + 0x24]
mov eax, dword [rax + 4]
sub eax, ecx
mov rcx, qword [rsp + 0x40]
mov dword [rcx + 4], eax
jmp 0x180010dd7
mov eax, dword [rsp + 0x28]
add eax, 4
mov r8d, 8
mov edx, eax
mov rcx, qword [0x180061110]
call qword [rsp + 0x48]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.180010d08
add rsp, 0x38
ret

Function at 0x180010e8c
Capabilities:
Copy file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.180016738
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.1800169ac
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.1800169ac
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1800168d8
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180016ad4
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.180016ad4
xor r8d, r8d
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x180010f37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_listen
call fcn.18000dc18
mov rcx, qword [rsp + 0x20]
call fcn.1800168a8
add rsp, 0x58
ret
Function at 0x180010fc4
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov r8d, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1800168d8
mov edx, 0x80
lea rcx, [rsp + 0x28]
call fcn.18000cbd0
lea rcx, [rsp + 0x40]
call fcn.18001691c
mov dword [rsp + 0x20], eax
mov edx, dword [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.18000cc08
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x18005e3a8]
lea rcx, [rsp + 0x28]
call fcn.18000cc4c
lea rcx, [rsp + 0x28]
call fcn.18000cc3c
mov dword [rsp + 0x24], eax
lea rcx, [rsp + 0x28]
call fcn.18000cd70
mov r8d, reloc.WS2_32.dll_shutdown
mov ecx, dword [rsp + 0x24]
mov edx, ecx
mov rcx, rax
call qword [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.18000cb94
add rsp, 0x68
ret
Function at 0x1800113e8
Capabilities:
Move file

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov ecx, 0x4000
call fcn.180016738
mov qword [rsp + 0x20], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.1800169ac
mov qword [rsp + 0x30], rax
mov edx, 0x2000
mov rcx, qword [rsp + 0x20]
call fcn.1800169ac
mov qword [rsp + 0x28], rax
mov r8d, dword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x38]
call fcn.1800168d8
mov r8d, 0x2000
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.180016ad4
mov r8d, 0x2000
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
call fcn.180016ad4
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x180011490
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov ecx, reloc.WS2_32.dll_ntohl
call fcn.18000dc18
mov rcx, qword [rsp + 0x20]
call fcn.1800168a8
add rsp, 0x58
ret

Function at 0x180011514
Capabilities:
Query environment variable

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x180011547
xor eax, eax
jmp 0x180011583
mov eax, dword [rsp + 0x20]
inc eax
cmp eax, dword [rsp + 0x50]
jb 0x180011557
xor eax, eax
jmp 0x180011583
mov eax, dword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rdi, qword [rsp + 0x48]
xor eax, eax
mov rcx, qword [rsp + 0x28]
rep stosb byte [rdi], al
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add rsp, 0x30
pop rdi
ret

Function at 0x18001158c
Capabilities:
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
cmp eax, 0x10
jne 0x1800115b2
mov dword [rsp + 0x20], 1
jmp 0x1800115ba
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x180012568
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rsi
push rdi
sub rsp, 0x118
mov ecx, dword [rsp + 0x180]
call fcn.1800346a4
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
mov dword [rsp + 0x80], WSAGetLastError
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x70], 0
mov dword [rsp + 0x68], 0x18
mov dword [rsp + 0x78], 1
mov r9d, 0x100000
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [rsp + 0xbc], 0x101
xor eax, eax
mov word [rsp + 0xc0], ax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0xd0], 0
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x180]
mov ecx, dword [rsp + 0x178]
call fcn.1800339a0
test eax, eax
jne 0x180012671
mov ecx, dword [rsp + 0x180]
call fcn.1800346e0
jmp 0x180012726
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x140]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.180012ed8
cmp dword [rsp + 0x138], 0
jbe 0x1800126e1
mov edx, dword [rsp + 0x138]
mov rcx, qword [rsp + 0x48]
call fcn.180014810
lea rax, [rsp + 0xf0]
lea rcx, [rsp + 0x50]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x168]
mov r8, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0xf0]
call fcn.18001488c
mov ecx, dword [rsp + 0x180]
call fcn.1800346e0
add rsp, 0x118
pop rdi
pop rsi
ret
Function at 0x1800132ac
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
lea rax, [fcn.1800132ac]
lea rcx, [0x18001322c]
sub rax, rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x48], 0
mov eax, dword [rsp + 0x30]
add rax, 0x20
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
add rax, 0x20
mov rcx, rax
call fcn.180035368
mov qword [rsp + 0x38], rax
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x80]
mov ecx, 0x20
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
add rcx, 0x20
lea rdx, [0x18001322c]
mov rdi, rcx
mov rsi, rdx
mov ecx, eax
rep movsb byte [rdi], byte [rsi]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
je 0x18001339e
mov eax, dword [rsp + 0x34]
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, eax
mov r8, qword [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18001339e
mov eax, dword [rsp + 0x34]
cmp qword [rsp + 0x48], rax
je 0x18001339e
mov qword [rsp + 0x40], 0
mov rcx, qword [rsp + 0x38]
call fcn.180035328
mov rax, qword [rsp + 0x40]
add rsp, 0x58
pop rdi
pop rsi
ret
Function at 0x1800133b4
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x80], 0
lea rax, [rsp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x58], 0
lea rax, [rsp + 0x60]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0x1c
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x60], rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], 0
lea rcx, [0x18005e48c]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18005e478]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
jne 0x1800134a3
xor eax, eax
jmp 0x180013635
lea r8, [rsp + 0x58]
mov rax, qword [rsp + 0xb0]
mov edx, dword [rax + 0x10]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call fcn.1800132ac
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1800134d7
xor eax, eax
jmp 0x180013635
xor edx, edx
mov ecx, 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x1800134f7
xor eax, eax
jmp 0x180013635
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x180013514
xor eax, eax
jmp 0x180013635
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x10]
cmp dword [rsp + 0x8c], eax
je 0x18001352a
jmp 0x18001357f
mov r8d, dword [rsp + 0x88]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x18001354e
jmp 0x18001357f
mov rax, qword [rsp + 0x30]
add rax, 0x20
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x180013514
cmp qword [rsp + 0x38], 0
je 0x1800135ac
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1800135ee
cmp qword [rsp + 0x48], 0x20
je 0x1800135f2
xor eax, eax
jmp 0x180013635
cmp dword [rsp + 0x70], 0
jne 0x180013630
mov dword [rsp + 0x70], 1
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 0x20
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
jmp 0x180013635
mov eax, 1
add rsp, 0xa0
pop rdi
ret
Function at 0x180013640
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x38], 0
lea rcx, str.ntdll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.NtQueueApcThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x18001368a
xor eax, eax
jmp 0x1800136df
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [rsp + 0x38]
test eax, eax
je 0x1800136b5
xor eax, eax
jmp 0x1800136df
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x1800136d3
mov dword [rsp + 0x30], 1
jmp 0x1800136db
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x1800136e4
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9, qword [rsp + 0x68]
mov r8, qword [rsp + 0x60]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18001372f
mov dword [rsp + 0x30], 1
jmp 0x180013737
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
add rsp, 0x48
ret

Function at 0x180013740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test rax, rax
je 0x180013792
mov dword [rsp + 0x40], 1
jmp 0x18001379a
mov dword [rsp + 0x40], 0
mov eax, dword [rsp + 0x40]
add rsp, 0x58
ret
Function at 0x1800137a4
Capabilities:
Create thread
Resume thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x538
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x560]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdx, qword [rsp + 0x568]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x180013803
xor eax, eax
jmp 0x18001391c
mov eax, dword [rsp + 0x570]
mov rcx, qword [rsp + 0x40]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x540]
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 6
je 0x180013835
cmp dword [rsp + 0x50], 7
je 0x180013864
jmp 0x18001389f
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
mov r9, qword [rsp + 0x558]
mov r8, qword [rsp + 0x40]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x48], rax
jmp 0x18001389f
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov rax, qword [rsp + 0x558]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x548]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x1800138ab
xor eax, eax
jmp 0x18001391c
mov dword [rsp + 0x90], 0x10000b
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1800138ce
xor eax, eax
jmp 0x18001391c
mov rax, qword [rsp + 0x550]
mov qword [rsp + 0xe0], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
jne 0x1800138f6
xor eax, eax
jmp 0x18001391c
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x180013910
mov dword [rsp + 0x54], 1
jmp 0x180013918
mov dword [rsp + 0x54], 0
mov eax, dword [rsp + 0x54]
add rsp, 0x538
ret