joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800041e0
Capabilities:
Resume thread
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
test byte [rcx + 0x20], 4
mov rbx, rcx
jne 0x180004260
mov rcx, qword [rcx]
lea rdx, [rsp + 0x20]
call section..text
test eax, eax
je 0x180004260
mov rax, qword [rsp + 0x20]
mov rcx, rbx
or dword [rbx + 0x20], 4
mov qword [rbx], rax
mov qword [rsp + 0x50], rdi
call fcn.180003f00
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x20]
mov edi, eax
call fcn.180004020
mov rcx, qword [rbx + 0x18]
test eax, eax
jne 0x180004249
mov rcx, qword [rcx]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rdi, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.180003f00
add rsp, 0x40
pop rbx
ret

Function at 0x180004270
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [rcx + 0x18]
mov rbx, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rcx + 0x10]
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x20]
mov qword [rsp + 0x40], r8
mov r8, qword [0x18001b4e8]
lea r9d, [rcx + 2]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rdx
mov rdx, qword [0x18001b4d8]
mov qword [rsp + 0x20], rcx
mov rcx, qword [0x18001b4e0]
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithLogonW]
test eax, eax
je 0x1800042d6
mov eax, 1
add rsp, 0x60
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, qword [rbx]
mov ecx, 0x45
mov r8d, eax
call fcn.180001d60
xor eax, eax
add rsp, 0x60
pop rbx
ret
Function at 0x180004590
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp dword [rcx + 4], 0
mov rdi, rdx
mov rbx, rcx
ja 0x18000457a
mov ecx, dword [rcx]
call sub.WS2_32.dll_htonl
mov edx, 4
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 5]
call rdi
mov rcx, qword [rbx + 8]
call sub.msvcrt.dll_fclose
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor esi, esi
mov ebp, r8d
cmp qword [0x180019438], rsi
mov r14, rdx
mov rdi, rcx
jne 0x1800045cf
mov ecx, 0x80004
call sub.msvcrt.dll_malloc
mov qword [0x180019438], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x180019438]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, ebp
cmova ebx, ebp
test ebx, ebx
je 0x180004627
nop dword [rax + rax]
mov rax, qword [0x180019438]
mov edx, 1
mov r9, qword [rdi + 8]
add rax, 4
mov ecx, esi
add rcx, rax
mov r8d, ebx
call sub.msvcrt.dll_fread
test eax, eax
je 0x180004620
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x1800045f0
jmp 0x180004627
mov dword [rdi + 4], 0
mov rcx, qword [0x180019438]
lea edx, [rsi + 4]
mov r8d, 8
call r14
mov rdx, r14
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp 0x180004540

Function at 0x180004660
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.180005c80
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.180001790
lea rcx, [rsp + 0x38]
call fcn.180005c90
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.1800017c0
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x1800170a4]
lea rcx, [rsp + 0x20]
call fcn.180001800
lea rcx, [rsp + 0x20]
call fcn.1800017f0
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.180001870
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.180001760
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x180004700
Capabilities:
Query environment variable

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 rbp, rdx
xor r8d, r8d
xor edx, edx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ebx, eax
test eax, eax
jne 0x180004732
xor eax, eax
jmp 0x180004754
inc eax
cmp eax, edi
jae 0x18000472e
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.18000fc98
mov r8d, ebx
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180004f80
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor r14d, r14d
lea rax, [rsp + 0x78]
mov edi, r8d
mov qword [rsp + 0x28], r14
mov rsi, rdx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
xor edx, edx
mov rbp, rcx
mov ebx, r14d
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x180004fcc
or eax, 0xffffffff
jmp 0x180005028
cmp dword [rsp + 0x78], ebx
jbe 0x180005026
cmp ebx, edi
jae 0x180005026
mov r8d, edi
mov qword [rsp + 0x20], r14
sub r8d, ebx
lea r9, [rsp + 0x30]
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x30]
xor r9d, r9d
add ebx, eax
mov qword [rsp + 0x28], r14
add rsi, rax
xor r8d, r8d
lea rax, [rsp + 0x78]
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180004fc7
cmp dword [rsp + 0x78], r14d
ja 0x180004fd2
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x180005380
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
mov edi, r8d
mov dword [rsp + 0x60], r14d
mov rsi, rdx
mov rbp, rcx
mov ebx, r14d
test r8d, r8d
jle 0x1800053e1
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
mov qword [rsp + 0x20], r14
add rdx, rsi
lea r9, [rsp + 0x60]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800053fe
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1800053fe
add ebx, eax
cmp ebx, edi
jl 0x1800053b0
or eax, 0xffffffff
cmp ebx, edi
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
or eax, 0xffffffff
jmp 0x1800053eb

Function at 0x1800054f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov dword [rsp + 0x30], 0
mov rdi, rcx
lea r8, [rsp + 0x30]
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x1800055a0]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
lea rcx, [fcn.180003100]
mov qword [rdi + 0x10], rax
lea rax, [0x180005640]
mov qword [rdi + 0x18], rax
lea rax, [0x180005570]
mov qword [rdi + 0x20], rax
lea rax, [0x180005630]
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret
Function at 0x1800056b0
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
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x180005707
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x180005726
test eax, eax
je 0x180005707
add ebx, eax
cmp ebx, edi
jl 0x1800056e0
or eax, 0xffffffff
cmp ebx, edi
cmovne edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
or eax, 0xffffffff
jmp 0x180005711

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

Disassembly:
sub rsp, 0x28
test r8d, r8d
jne 0x180005742
lea eax, [r8 + 1]
add rsp, 0x28
ret
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x180005760
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
sub rsp, 0x820
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.18000fc98
lea r9, [rsp + 0x838]
mov r8, rbx
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.180001880
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_OutputDebugStringA
add rsp, 0x820
pop rbx
ret
Function at 0x1800057c0
Capabilities:
Get hostname
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rsi, rcx
mov ecx, 0x494
call fcn.180005ba0
mov edx, __WSAFDIsSet
mov rcx, rax
mov rbp, rax
call fcn.180005cd0
mov edx, 0x100
mov rcx, rbp
mov r14, rax
call fcn.180005cd0
mov edx, 0x100
mov rcx, rbp
mov rbx, rax
call fcn.180005cd0
mov edx, 0x100
mov rcx, rbp
mov r15, rax
call fcn.180005cd0
mov edx, 0x100
mov rcx, rbp
mov r12, rax
call fcn.180005cd0
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x100
mov rcx, r12
mov rdi, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], 0x100
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
call fcn.1800026a0
mov r8d, 0x100
mov rdx, rdi
xor ecx, ecx
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x1800058a0
mov edx, 0x5c
mov rcx, rdi
call fcn.180005990
mov rdi, rax
test rax, rax
je 0x1800058a0
add rdi, 1
jne 0x1800058a7
lea rdi, [0x180011fb0]
mov rcx, r14
mov dword [r14], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [r14 + 4]
mov rcx, rsi
mov dword [0x18001a374], eax
movzx edx, byte [r14 + 4]
call fcn.1800018a0
movzx edx, byte [r14 + 8]
mov rcx, rsi
call fcn.1800018a0
movzx edx, word [r14 + 0xc]
mov rcx, rsi
call fcn.180001940
mov rdx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
sar rdx, 0x20
call fcn.180001910
mov edx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rsi
call fcn.180001910
mov edx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call fcn.180001910
mov edx, r13d
mov rcx, rsi
call fcn.180001910
mov r9, r15
mov qword [rsp + 0x28], rdi
lea r8, str._s_t_s_t_s
mov qword [rsp + 0x20], r12
mov edx, 0x100
mov rcx, rbx
call fcn.180001090
or rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], 0
jne 0x180005947
mov ecx, 0x3a
mov rdx, rbx
cmp eax, ecx
cmovg eax, ecx
mov rcx, rsi
mov r8d, eax
call fcn.1800018c0
mov rcx, rbp
call fcn.180005c50
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180005f30
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005f80
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800062b0
test eax, eax
jle 0x180005f66
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180005f50
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800063e0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18001a788]
xor edi, edi
test rbx, rbx
je 0x180006490
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180006415
cmp dword [rbx + 0xc], eax
jne 0x18000642c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180006400
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180006415
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180006415
cmp dword [rbx + 0x10], 0
jne 0x180006455
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180006469
cmp dword [rbx + 0x10], 2
je 0x180006415
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180006484
mov qword [rdi + 0x28], rax
call sub.msvcrt.dll_free
mov rbx, qword [rdi + 0x28]
jmp 0x18000641c
mov qword [0x18001a788], rax
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800062b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, qword [0x18001a788]
xor ebp, ebp
mov esi, ebp
mov dword [rsp + 0x48], ebp
cmp qword [0x18001a790], rsi
mov rdi, rcx
jne 0x1800062e8
mov ecx, 0x100000
call sub.msvcrt.dll_malloc
mov qword [0x18001a790], rax
test rbx, rbx
je 0x1800063c2
mov qword [rsp + 0x40], r14
mov r14d, 0xffffc
nop dword [rax]
cmp dword [rbx + 4], 1
jne 0x1800063ad
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
lea r8, [rsp + 0x48]
mov edx, 0x4004667f
mov ecx, eax
mov rax, qword [0x18001a790]
mov dword [rax], ecx
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x48]
cmp r8d, r14d
cmova r8d, r14d
mov dword [rsp + 0x48], r8d
cmp eax, 0xffffffff
jne 0x18000635d
mov rcx, qword [0x18001a790]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x1800063ad
test r8d, r8d
je 0x1800063ad
mov rdx, qword [0x18001a790]
mov rcx, qword [rbx + 0x20]
add rdx, 4
call fcn.1800064a0
cmp eax, 0xffffffff
jne 0x180006391
mov rcx, qword [0x18001a790]
mov edx, 4
mov r8d, edx
mov dword [rbx + 4], ebp
call rdi
jmp 0x1800063ad
mov edx, dword [rsp + 0x48]
cmp eax, edx
jne 0x1800063ad
mov rcx, qword [0x18001a790]
add edx, 4
mov r8d, 5
call rdi
inc esi
mov rcx, qword [rbx + 0x28]
mov rbx, rcx
test rcx, rcx
jne 0x180006300
mov r14, qword [rsp + 0x40]
mov eax, esi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800063e0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005f80
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
nop
mov rcx, rbx
call fcn.1800062b0
test eax, eax
jle 0x180005f66
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180005f50
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1800063e0
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x18001a788]
xor edi, edi
test rbx, rbx
je 0x180006490
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180006415
cmp dword [rbx + 0xc], eax
jne 0x18000642c
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180006400
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
test eax, eax
jne 0x180006415
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180006415
cmp dword [rbx + 0x10], 0
jne 0x180006455
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180006469
cmp dword [rbx + 0x10], 2
je 0x180006415
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x180006484
mov qword [rdi + 0x28], rax
call sub.msvcrt.dll_free
mov rbx, qword [rdi + 0x28]
jmp 0x18000641c
mov qword [0x18001a788], rax
call sub.msvcrt.dll_free
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800064a0
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
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1800064f6
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
xor r9d, r9d
sub r8d, ebx
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rsi, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x18000650d
cmp ebx, edi
jl 0x1800064d0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x1800064f8

Function at 0x180007780
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r14, r8
mov ecx, 0x8000
mov rsi, rdx
call sub.msvcrt.dll_malloc
mov r9, rbp
lea r8, str._s
mov edx, 0x8000
mov rcx, rax
mov rbx, rax
call fcn.180001090
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov r15, rax
call sub.msvcrt.dll_free
cmp r15, 0xffffffffffffffff
je 0x1800078c7
mov qword [rsp + 0x40], rdi
lea rdi, [rsi + 0x2c]
nop word [rax + rax]
test byte [rsi], 0x10
je 0x180007899
lea r8, [0x18001723c]
mov rax, rdi
sub r8, rdi
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180007823
inc rax
test ecx, ecx
jne 0x180007810
test edx, edx
je 0x1800078a5
lea r8, [0x180017240]
mov rax, rdi
sub r8, rdi
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180007847
inc rax
test ecx, ecx
jne 0x180007834
test edx, edx
je 0x1800078a5
mov ecx, 0x8000
call sub.msvcrt.dll_malloc
mov r9, rdi
lea r8, [0x180017244]
mov edx, 0x8000
mov rcx, rax
mov rbx, rax
call fcn.180001090
mov r9, r14
mov r8, rsi
mov rdx, rdi
mov rcx, rbp
call fcn.1800078e0
mov r8d, 1
mov rdx, rbx
mov rcx, rbp
call r14
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x1800078a5
xor r8d, r8d
mov rdx, rdi
mov rcx, rbp
call r14
mov rdx, rsi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1800077f0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rsi
ret
Function at 0x180008030
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov qword [0x18177bb30], rcx
lea r9, [0x180018250]
lea rcx, [0x180017251]
mov edx, 2
mov r8d, 0x400
nop word [rax + rax]
lea rax, [rdx - 2]
and eax, 0xfff
lea rcx, [rcx + 4]
movzx eax, byte [rax + r9]
xor byte [rcx - 5], al
lea rax, [rdx - 1]
and eax, 0xfff
movzx eax, byte [rax + r9]
xor byte [rcx - 4], al
mov rax, rdx
and eax, 0xfff
movzx eax, byte [rax + r9]
xor byte [rcx - 3], al
lea rax, [rdx + 1]
and eax, 0xfff
add rdx, 4
movzx eax, byte [rax + r9]
xor byte [rcx - 2], al
sub r8, 1
jne 0x180008060
mov ecx, 0x800
call sub.msvcrt.dll_malloc
xor edx, edx
mov qword [0x18177bb38], rax
mov r8d, 0x800
mov rcx, rax
call fcn.18000fc98
mov rcx, qword [0x18177bb38]
mov r9d, 1
xor ebp, ebp
mov r8d, r9d
mov edx, 0x800
mov qword [rsp + 0x20], rbp
call fcn.180008a60
mov r8d, 0x1000
lea rdx, [0x180017250]
lea rcx, [rsp + 0x30]
call fcn.180005c80
lea rcx, [rsp + 0x30]
call fcn.180005d00
movzx edi, ax
test ax, ax
jle 0x180008223
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rsi
nop word [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.180005d00
lea rcx, [rsp + 0x30]
movsx ebx, ax
call fcn.180005d00
mov rcx, qword [0x18177bb38]
movzx esi, ax
movsx rdi, di
shl rdi, 4
mov word [rdi + rcx], bx
mov ecx, ebx
sub ecx, 1
je 0x1800081ed
sub ecx, 1
je 0x1800081d6
cmp ecx, 1
jne 0x180008203
movsx rbx, ax
mov rcx, rbx
call sub.msvcrt.dll_malloc
mov r8, qword [0x18177bb38]
lea rcx, [rsp + 0x30]
movsx edx, si
mov qword [rdi + r8 + 8], rax
call fcn.180005cd0
mov rcx, qword [0x18177bb38]
mov rdx, rax
mov r8, rbx
mov rcx, qword [rdi + rcx + 8]
call sub.msvcrt.dll_memcpy
mov rcx, qword [0x18177bb38]
mov r9d, 1
mov r8d, r9d
mov qword [rsp + 0x20], rbp
mov rdx, rbx
mov rcx, qword [rdi + rcx + 8]
call fcn.180008a60
jmp 0x180008203
lea rcx, [rsp + 0x30]
call fcn.180005c90
mov rcx, qword [0x18177bb38]
mov dword [rdi + rcx + 8], eax
jmp 0x180008203
lea rcx, [rsp + 0x30]
call fcn.180005d00
mov rdx, qword [0x18177bb38]
mov word [rdi + rdx + 8], ax
lea rcx, [rsp + 0x30]
call fcn.180005d00
movzx edi, ax
test ax, ax
jg 0x180008130
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
xor edx, edx
lea rcx, [0x180017250]
mov r8d, 0x1000
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
jmp fcn.18000fc98
Function at 0x180008850
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [rsp + 0x70], eax
test eax, eax
je 0x1800088df
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rsp + 0x70]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x70], ecx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x180008e80
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
jne 0x180008ee8
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
add rcx, 8
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008ee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180008ede
mov r9d, dword [rdi]
lea rcx, [rdi + 8]
xor r8d, r8d
mov dword [rsp + 0x20], 8
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180008ee4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rdi + 8]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180008f40
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rsi, rdx
mov rbx, rcx
mov edx, 0x18
lea rcx, [rsp + 0x40]
mov r8d, 0xf0000000
mov rdi, r9
call fcn.180008d80
lea rcx, [rsp + 0x40]
call fcn.180008e80
test rax, rax
jne 0x180008f83
xor bl, bl
jmp 0x180009011
lea rcx, [rsp + 0x38]
call fcn.180008d70
mov r9d, dword [rbx + 8]
lea rdx, [rsp + 0x40]
mov r8, qword [rbx]
lea rcx, [rsp + 0x38]
call fcn.1800096f0
test eax, eax
jne 0x180009005
lea edx, [rax + 1]
lea rcx, [rsp + 0x38]
call fcn.1800098e0
test eax, eax
jne 0x180009005
mov rdx, qword [rbx + 0x10]
lea rcx, [rsp + 0x38]
call fcn.180009890
test eax, eax
jne 0x180009005
lea rcx, [rsp + 0x38]
call fcn.180001870
test rax, rax
je 0x180009005
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp eax, 1
sete bl
jmp 0x180009007
xor bl, bl
lea rcx, [rsp + 0x38]
call fcn.180008e50
lea rcx, [rsp + 0x40]
call fcn.180008de0
mov rsi, qword [rsp + 0x68]
movzx eax, bl
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret