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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0xf0
and dword [rax + 0x20], 0
mov rbx, rdx
xor edx, edx
mov r12d, r8d
mov r13, rcx
lea r8d, [rdx + 0x60]
lea rcx, [rax - 0x80]
call sub.ntdll.dll_memset
and qword [rsp + 0x50], 0
xor eax, eax
mov rcx, rbx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x80], 0x68
xor edi, edi
call fcn.1800087b4
test rax, rax
mov rsi, rax
je 0x18000e80c
mov edx, 0x104
mov rcx, rax
call fcn.18000715c
test rax, rax
mov rbp, rax
je 0x18000e7f3
mov rcx, rax
call qword [sym.imp.SHELL32.dll_PathGetShortPath]
mov rcx, rbp
mov rdi, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rbp
mov rcx, rsi
add eax, 1
movsxd r8, eax
call qword [sym.imp.ntdll.dll_wcstombs]
mov r8, rbp
jmp 0x18000e7f6
mov r8, rsi
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rdi, rdi
cmovne rbx, rdi
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov rdx, r13
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
and qword [rsp + 0x30], 0
xor ecx, ecx
mov dword [rsp + 0x28], 0xc000000
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x18000e904
mov rax, qword [0x180033bb0]
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x50]
lea esi, [r8 + 2]
mov r9d, r12d
mov ecx, esi
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, 0x102
cmp eax, ebx
mov dword [rsp + 0x128], eax
jne 0x18000e8c7
mov rcx, qword [rsp + 0x50]
mov edx, 0x3e5
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x18000e8ba
lea rdx, [rsp + 0x68]
mov r9d, r12d
xor r8d, r8d
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x18000e8c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x128], eax
test eax, eax
jne 0x18000e8d4
mov dword [rsp + 0x128], ebx
jmp 0x18000e8ec
cmp eax, 1
jne 0x18000e8ec
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000e911
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x128], eax
test rdi, rdi
je 0x18000e928
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rsp + 0x128]
lea r11, [rsp + 0xf0]
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 0x1800117f8
Capabilities:
Get thread local storage value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x90
xor esi, esi
mov rbx, rdx
mov rdi, rcx
cmp dword [rdx + 0x48], esi
mov dword [rax + 0x10], 1
jne 0x18001182a
mov eax, dword [rdx + 0x60]
test al, 0x40
je 0x180011996
mov eax, dword [rdx + 0x60]
test al, 1
je 0x18001197a
mov eax, dword [rdx + 0x60]
test al, 6
jne 0x1800118d3
mov eax, dword [rdx + 0x60]
test al, 0x40
jne 0x1800118cb
or dword [rsp + 0xa8], 0xffffffff
cmp dword [rdx + 0x48], esi
je 0x1800118e8
mov r8d, dword [rbx + 0x48]
mov eax, dword [rbx + 0x44]
mov rcx, qword [rbx + 8]
mov r10, qword [rcx]
sub eax, r8d
lea r9, [rsp + 0xa8]
movsxd rdx, eax
add rdx, qword [rbx + 0x3c]
call qword [r10 + 0x20]
mov r11, qword [rdi + 8]
mov rdx, qword [rbx + 0x3c]
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, 0x4000
call qword [r11 + 8]
cmp eax, esi
mov dword [rbx + 0x44], eax
jle 0x1800118a4
mov dword [rbx + 0x48], eax
jmp 0x1800118c4
je 0x1800118bb
mov ecx, dword [0x18003216c]
cmp ecx, 0xffffffff
je 0x1800118be
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, esi
je 0x1800118be
mov dword [rbx + 0x4c], esi
mov dword [rbx + 0x44], esi
mov dword [rbx + 0x48], esi
cmp dword [rbx + 0x48], esi
jne 0x18001185c
jmp 0x1800118df
mov dword [rdx + 0x4c], esi
mov dword [rdx + 0x48], esi
jmp 0x1800118df
call fcn.180017978
mov dword [rsp + 0xa8], eax
cmp dword [rsp + 0xa8], esi
jge 0x1800118f3
mov eax, dword [rbx + 0x60]
test al, 0x40
je 0x180011996
mov edx, dword [rbx + 0x5c]
mov ecx, dword [rdi + 0x1c]
mov rax, qword [rbx + 0x64]
mov r9, qword [rbx + 0x30]
mov r8, qword [rbx + 0x10]
not edx
and edx, 0x100
and ecx, 0x80
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov rdx, qword [rbx + 8]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rbx + 0x74]
call fcn.180018fa8
lea rdx, [rsp + 0x40]
mov r8d, 1
mov dword [rbx + 0x5c], eax
bts dword [rbx + 0x5c], 8
mov rcx, qword [rbx + 8]
mov rax, qword [rcx]
call qword [rax + 0x60]
cmp dword [rsp + 0x50], esi
jne 0x180011955
cmp dword [rbx + 0x4c], esi
jne 0x18001195d
mov rcx, rbx
call fcn.18000e56c
mov eax, dword [rbx + 0x5c]
test al, 1
jne 0x180011970
mov eax, dword [rbx + 0x60]
test al, 2
jne 0x180011996
cmp dword [rbx + 0x4c], esi
jne 0x180011996
mov rcx, rbx
call fcn.18000e56c
jmp 0x180011996
mov r8d, dword [rdx + 0x48]
mov eax, dword [rdx + 0x44]
mov rcx, qword [rbx]
sub eax, r8d
movsxd rdx, eax
add rdx, qword [rbx + 0x3c]
call fcn.180005d54
mov dword [rbx + 0x48], esi
mov eax, dword [rsp + 0xa8]
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x180011af4
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
and qword [rsp + 0x70], 0
mov r12d, r8d
mov rbx, rcx
call fcn.180009458
test eax, eax
je 0x180011c3d
mov rcx, qword [rcx + 8]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x180011c36
mov eax, dword [0x180033b90]
mov dword [rsp + 0x40], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x44], eax
mov rax, qword [0x180033b88]
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
call fcn.18000ef1c
test eax, eax
mov edi, eax
jne 0x180011c42
cmp dword [rbx + 0x18], eax
je 0x180011c01
xor ecx, ecx
call fcn.180015180
test rax, rax
mov rsi, rax
je 0x180011c01
mov r9d, dword [rbx + 0x10]
mov r8, qword [rbx]
and qword [rsp + 0x20], 0
lea rdx, [rbx + 0x20]
mov rcx, rax
call fcn.180018210
test eax, eax
jne 0x180011bef
mov r9d, dword [rbx + 0x14]
mov r8, qword [rbx + 8]
lea rax, [rsp + 0x70]
lea rdx, [rbx + 0x20]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180018210
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180011bef
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r12d, r12d
je 0x180011c42
mov rcx, qword [rsp + 0x88]
lea rdx, [0x18003739a]
xor r8d, r8d
call fcn.1800246e8
test rax, rax
je 0x180011c2f
lea rcx, [0x180033100]
xor edx, edx
call rax
jmp 0x180011c42
mov edi, 0x7f
jmp 0x180011c42
mov edi, 0xb
jmp 0x180011c42
mov edi, 0x57
mov rcx, qword [0x1800339a8]
xor edx, edx
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea rdx, [0x1800373cd]
mov r8d, edi
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_wsprintfA]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
xor r9d, r9d
mov rdx, rbx
mov r8d, eax
mov ecx, 0x10d
call fcn.18000d3c8
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea r11, [rsp + 0x50]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret
Function at 0x180011cb4
Capabilities:
Read data from internet
Receive data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push r12
sub rsp, 0x70
and dword [rax + 8], 0
or ebp, 0xffffffff
cmp byte [0x180033b94], 5
mov rbx, rcx
mov rcx, qword [0x1800339a8]
mov eax, 0x1388
mov r12, rdx
cmovbe ebp, eax
mov r8d, 0x4000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180011d9d
lea r9, [rsp + 0x80]
mov r8d, 0x4000
mov rdx, rsi
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x180011d5b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x180011d79
mov rcx, qword [rbx + 0x6c]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
jne 0x180011d48
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x102
je 0x180011d89
test eax, eax
jne 0x180011d79
mov eax, dword [rbx + 0x5c]
cmp eax, 1
je 0x180011d79
mov r8d, dword [rsp + 0x80]
test r8d, r8d
je 0x180011d82
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x180011d06
mov dword [rbx + 0x5c], 1
jmp 0x180011d89
mov dword [rbx + 0x5c], 2
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180011da4
mov dword [rbx + 0x5c], 1
mov rcx, qword [rbx]
lea rdx, [rsp + 0x20]
mov r8d, 1
mov rax, qword [rcx]
call qword [rax + 0x60]
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x1800123a0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov eax, r9d
mov r13d, r8d
mov r8d, r9d
and al, 3
mov esi, r9d
mov r14, rdx
neg al
mov edx, 0xc0000000
mov r15, rcx
sbb r12d, r12d
and qword [r11 - 0x38], 0
shr r8d, 8
and r12d, 3
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
add r12d, 1
mov ebp, 0x1388
mov dword [r11 - 0x48], r12d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x180012481
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov ebx, eax
jne 0x18001247b
test sil, 4
je 0x18001247b
test ebp, ebp
jle 0x18001247b
mov rcx, qword [0x180033bb0]
mov edx, 0xc8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x180012476
and qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], r12d
sub ebp, 0xc8
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x18001240e
jmp 0x18001247b
mov ebx, 0x5b4
cmp rdi, 0xffffffffffffffff
je 0x1800124d9
mov r9d, 2
test r9b, sil
je 0x18001249a
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x88]
mov r8d, r13d
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1800124c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
xor ebx, ebx
jmp 0x1800124d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180012690
Capabilities:
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
push rdi
push r15
sub rsp, 0x30
mov rdi, rcx
mov rcx, qword [rcx + 0x38]
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x50]
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WININET.dll_InternetReadFile]
or r15d, 0xffffffff
test eax, eax
jne 0x180012722
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x18001271a
mov rax, qword [rdi + 0x38]
lea rdx, [rsp + 0x20]
lea ecx, [r15 + 3]
mov qword [rsp + 0x20], rax
mov rax, qword [0x180033bb0]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
mov ebx, eax
cmove ebx, r15d
test ebx, ebx
jne 0x18001285b
mov ebx, dword [rdi + 0x50]
test ebx, ebx
jne 0x18001285b
cmp dword [rsp + 0x50], 0
je 0x180012857
lea r8, [rsp + 0x60]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x180012850
mov rcx, qword [0x1800339a8]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x18001283e
mov rcx, qword [rsp + 0x60]
mov r8d, dword [rsp + 0x50]
lea rdx, [rsp + 0x58]
mov r10, qword [rcx]
xor r9d, r9d
call qword [r10 + 0x20]
mov rcx, qword [rdi + 0x38]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rdi + 0x30]
lea r9, [rsp + 0x50]
mov r8d, 0x1000
mov rdx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1800127f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
mov ebx, eax
jne 0x180012817
mov rax, qword [rdi + 0x38]
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x20], rax
mov rax, qword [0x180033bb0]
lea ecx, [r8 + 2]
or r9d, 0xffffffff
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 1
mov ebx, eax
cmove ebx, r15d
test ebx, ebx
jne 0x180012817
mov ebx, dword [rdi + 0x50]
test ebx, ebx
jne 0x180012817
mov r8d, dword [rsp + 0x50]
test r8d, r8d
je 0x180012815
mov rcx, qword [rsp + 0x60]
xor r9d, r9d
mov rdx, rsi
mov rax, qword [rcx]
call qword [rax + 0x20]
jmp 0x180012781
xor ebx, ebx
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x180012843
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call fcn.18002562c
mov ebx, eax
jmp 0x180012843
mov ebx, 8
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x18001285b
mov ebx, 8
jmp 0x18001285b
and dword [rdi + 0x58], 0
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop rdi
pop rsi
ret
Function at 0x180013a9c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov ecx, 1
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x180013b64
call qword [sym.imp.USER32.dll_GetClipboardOwner]
test rax, rax
mov rdi, rax
je 0x180013b64
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x180013b64
mov ecx, 0xd
call qword [sym.imp.USER32.dll_GetClipboardData]
test rax, rax
mov rbx, rax
je 0x180013b5e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
mov rsi, rax
je 0x180013b55
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x2a]
call sub.ntdll.dll_memset
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [rsp + 0x60]
mov edx, 3
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov dword [rsp + 0x24], eax
mov qword [rsp + 0x28], rdi
call qword [sym.imp.USER32.dll_GetAncestor]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x42], rsi
call fcn.18001a494
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x180014b24
Capabilities:
Resume thread
Terminate thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x60
xor eax, eax
xor ebx, ebx
xor edi, edi
test rdx, rdx
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov rax, rdx
mov r12d, r8d
mov rbp, rdx
mov r13, rcx
mov qword [r11 - 0x48], rdx
jne 0x180014b80
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov qword [rsp + 0x40], rax
jne 0x180014b80
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180014cf2
mov rdx, rax
xor ecx, ecx
call fcn.18000e9c8
test eax, eax
jne 0x180014cdd
xor esi, esi
cmp byte [0x180033b94], 6
lea r14, [0x180000000]
jbe 0x180014bf7
mov rcx, qword [rsp + 0x40]
xor eax, eax
lea r9d, [rsi + 8]
lea r8, [rsp + 0x98]
lea edx, [rsi + 0x34]
mov dword [rsp + 0x9c], eax
mov dword [rsp + 0x98], 2
call qword [sym.imp.ntdll.dll_NtSetInformationProcess]
test eax, eax
js 0x180014be8
mov rcx, rbp
call fcn.180007d34
mov edi, 1
mov rsi, rax
jmp 0x180014bf2
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ebx, eax
test rsi, rsi
jne 0x180014c16
mov rax, qword [0x180033bd0]
mov rcx, qword [0x180033f60]
lea rdx, [rax + r14 + 0x37355]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test ebx, ebx
jne 0x180014ce2
mov rax, qword [0x180033bd0]
mov rcx, qword [0x180033bb8]
lea rdx, [rax + r14 + 0x37367]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rsi, rsi
je 0x180014cd6
test rax, rax
je 0x180014cd6
lea rcx, [rsp + 0x54]
mov ebx, 4
mov r9, rsi
mov qword [rsp + 0x30], rcx
mov rcx, qword [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], ebx
and qword [rsp + 0x20], 0
call rax
test rax, rax
mov qword [rsp + 0x48], rax
je 0x180014ccc
test edi, edi
mov dword [rsp + 0x50], r12d
je 0x180014c91
lea rcx, [rsp + 0x40]
call fcn.180029c30
lea rdx, [rsp + 0x40]
mov r9, rsi
mov r8d, ebx
mov rcx, r13
call fcn.18001ac44
mov rcx, qword [rsp + 0x48]
test eax, eax
mov ebx, eax
je 0x180014cb9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x180014cbf
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180014ce2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180014ce2
mov ebx, 0x490
jmp 0x180014ce2
mov ebx, 1
test rbp, rbp
jne 0x180014cf2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x60]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x1800150e4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
mov rdi, rcx
je 0x180015150
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
mov esi, eax
je 0x180015150
mov rcx, qword [0x1800339a8]
lea r8d, [rax + rax]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180015150
mov r8d, esi
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x180015150
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebx, ebx
mov rsi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x180015180
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, ecx
xor edx, edx
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
mov esi, eax
je 0x180015241
mov rcx, qword [0x1800339a8]
lea r8d, [rax + 0x1d]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rdi, rax
je 0x180015241
mov rdx, rax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x18001522d
test ebx, ebx
je 0x1800151ec
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [rsp + 0x38]
add ebx, eax
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
add ebx, dword [rsp + 0x38]
mov r9, rdi
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x18001522d
test ebx, ebx
je 0x180015241
mov rbx, qword [0x180033bd0]
lea rcx, [0x1800364d5]
add rbx, rcx
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFindExtensionA]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x180015241
mov rcx, qword [0x1800339a8]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x1800152b0
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
push r12
push r13
sub rsp, 0x40
and dword [rax - 0x28], 0
mov rsi, r9
mov qword [rax - 0x30], r8
and qword [rax - 0x38], 0
mov r12, rdx
mov r13, rcx
mov rdx, rcx
mov rcx, qword [rsi]
mov rbp, r8
lea r9, [rax - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x180015358
mov r8d, dword [rbp]
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180015353
mov rcx, qword [rsi]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov edi, eax
jne 0x18001533f
mov qword [r12], rbx
jmp 0x180015358
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180015358
mov edi, 8
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x180015d90
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 0x180015df5
cmp eax, 0xffffffff
jne 0x180015de8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
mov ebx, eax
jne 0x180015dfa
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
jmp 0x180015def
sub edi, eax
cdqe
add rsi, rax
test edi, edi
je 0x180015dfa
jmp 0x180015daf
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 0x180016a74
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbp, rcx
xor ebx, ebx
mov dword [rax + 0x18], 0x10000
test rbx, rbx
je 0x180016aae
mov rcx, qword [0x1800339a8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x180016aed
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, rax
mov ecx, 5
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
mov edi, eax
jne 0x180016af2
jmp 0x180016a97
mov edi, 0xc000009a
test edi, edi
js 0x180016b15
mov rdx, rsi
mov rcx, rbx
call rbp
cmp dword [rbx], 0
je 0x180016b0a
mov ecx, dword [rbx]
add rbx, rcx
jmp 0x180016b0c
xor ebx, ebx
test rbx, rbx
je 0x180016b15
test eax, eax
jne 0x180016af6
mov ecx, edi
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret