joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18001c5e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x20
mov rsi, r8
mov rbp, rdx
cmp r8, 0x28
ja 0x18001c605
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
jmp fcn.18001c120
movabs rax, 0x7fffffffffffffe7
cmp rsi, rax
jae 0x18001c66d
mov rax, qword [rcx + 0x18]
add r8, 0x19
mov qword [rsp + 0x30], rbx
mov edx, reloc.WS2_32.dll_sendto
mov qword [rsp + 0x38], rdi
mov ebx, dword [rax + 0x50]
call fcn.18000ec10
mov r8, rsi
mov rdx, rbp
mov rdi, rax
mov dword [rax + 0xc], ebx
lea rcx, [rax + 0x18]
mov byte [rax + 0xa], 0
mov byte [rax + rsi + 0x18], 0
mov qword [rax + 0x10], rsi
call fcn.18008f5a0
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rsi
ret
call fcn.180014e70
int3

Function at 0x180029340
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rdi
mov eax, 0x2058
call fcn.1800335e0
sub rsp, rax
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x2040], rax
mov rbx, rdx
lea rcx, [rsp + 0x32]
mov eax, 0x23
xor edx, edx
mov r8d, 0x1006
mov word [rsp + 0x30], ax
call fcn.18008fc40
lea rdi, [rsp + 0x2080]
call fcn.180002580
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x1040]
mov r9, rbx
mov qword [rsp + 0x20], 0
mov r8d, 0x1000
mov rcx, qword [rax]
call fcn.18006467c
lea r8, [rsp + 0x1040]
mov edx, 0x1008
lea rcx, [rsp + 0x30]
call fcn.18006147c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea rcx, [rsp + 0x30]
call fcn.180022930
mov rcx, qword [rsp + 0x2040]
xor rcx, rsp
call fcn.180033640
add rsp, 0x2058
pop rdi
pop rbx
ret

Function at 0x180029580
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rdx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180029611
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], pe_nt_image_headers64
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x180029608
lea rax, [rsp + 0x4c]
mov r8, rdi
sub r8, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1800295f3
inc rax
test ecx, ecx
jne 0x1800295e0
test edx, edx
je 0x180029634
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1800295d0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.180033640
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov eax, dword [rsp + 0x28]
jmp 0x180029613
Function at 0x18002b5b0
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x18002b5d4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x18002b662
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x18002b630
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x18002b630
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.18008f5a0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x18002b64d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x18002b655
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x18002b5f1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x18002b740
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x18002b679
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x18002b67b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x18002b6ad
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.18008f5a0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x18002b73d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x18002b6e8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x18002b71e
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1800654ac
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x18002b73d
cmp rsi, rax
ja 0x18002b6f1
test rsi, rsi
je 0x18002b73d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800654ac
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
Function at 0x18002c2e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x48], rax
lea r8, [0x180093d5c]
lea rcx, [rsp + 0x20]
call fcn.1800651f4
mov rsi, qword [rsp + 0x20]
mov rcx, rsi
call fcn.180067884
mov edi, eax
xor edx, edx
mov r8d, 2
mov rcx, rsi
call fcn.1800671c0
mov rcx, rsi
call fcn.180067884
movsxd rbx, eax
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call fcn.1800671c0
add rbx, 2
mov rcx, rbx
call fcn.1800732c8
mov rdi, rax
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.18008fc40
mov r9, qword [rsp + 0x20]
mov r8, rbx
mov edx, 1
mov rcx, rdi
call fcn.1800654ac
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rdi + r8], 0
jne 0x18002c390
mov rdx, rdi
lea rcx, [rsp + 0x28]
call fcn.180027940
nop
mov rcx, qword [rsp + 0x20]
call fcn.180064c44
mov rdx, rdi
lea rcx, [0x1800b88e2]
call fcn.18002c1e0
mov rcx, rdi
call fcn.180064790
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x18002c403
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002c3fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18002c420
call fcn.1800331d0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180033640
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.180061404
int3
Function at 0x180034750
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x1800348e3
mov dword [rsp + 0x20], 0
jmp 0x1800347a3
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x1800348e3
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009b60c]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
je 0x1800347f8
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009b634]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
jne 0x1800347fa
jmp 0x180034798
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x180034849
jmp 0x18003484e
call fcn.180033f70
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x180034876
xor eax, eax
jmp 0x1800348e5
lea rcx, [rsp + 0x40]
call fcn.180076de0
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.180065930
test eax, eax
jne 0x1800348de
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d10
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076c70
mov eax, 1
jmp 0x1800348e5
jmp 0x180034798
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180033640
add rsp, 0x2c8
ret

Function at 0x180034910
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18003496c
xor eax, eax
jmp 0x1800349c9
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x180034994
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800349c9
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.180034750
test eax, eax
jne 0x1800349b9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1800349c9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180033640
add rsp, 0x150
pop rdi
ret
Function at 0x180038440
Capabilities:
Encrypt data using aes mixcolumns step

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov byte [rsp], 0
mov eax, 1
imul rax, rax, 0
movzx ecx, byte [rsp + 0x30]
mov byte [rsp + rax + 8], cl
mov dword [rsp + 4], 1
jmp 0x18003847c
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jge 0x1800384c9
mov eax, dword [rsp + 4]
dec eax
cdqe
movzx eax, byte [rsp + rax + 8]
shl eax, 1
movsxd rcx, dword [rsp + 4]
mov byte [rsp + rcx + 8], al
mov eax, dword [rsp + 4]
dec eax
cdqe
movzx eax, byte [rsp + rax + 8]
and eax, 0x80
test eax, eax
je 0x1800384c7
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 8]
xor eax, 0x1b
movsxd rcx, dword [rsp + 4]
mov byte [rsp + rcx + 8], al
jmp 0x180038472
mov dword [rsp + 4], 0
jmp 0x1800384dd
mov eax, dword [rsp + 4]
inc eax
mov dword [rsp + 4], eax
cmp dword [rsp + 4], 4
jge 0x18003850d
movzx eax, byte [rsp + 0x28]
mov ecx, dword [rsp + 4]
sar eax, cl
and eax, 1
test eax, eax
je 0x18003850b
movsxd rax, dword [rsp + 4]
movzx eax, byte [rsp + rax + 8]
movzx ecx, byte [rsp]
xor ecx, eax
mov eax, ecx
mov byte [rsp], al
jmp 0x1800384d3
movzx eax, byte [rsp]
add rsp, 0x18
ret

Function at 0x180039660
Capabilities:
Hash data with md5

Disassembly:
mov qword [rsp + 8], rcx
mov rax, qword [rsp + 8]
mov byte [rax + 0x68], 0
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax + 0x10], 0
mov eax, 4
imul rax, rax, 0
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x67452301
mov eax, 4
imul rax, rax, 1
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0xefcdab89
mov eax, 4
imul rax, rax, 2
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x98badcfe
mov eax, 4
imul rax, rax, 3
mov rcx, qword [rsp + 8]
mov dword [rcx + rax], 0x10325476
ret
Function at 0x18003c7d0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
mov word [rsp + 0x18], r8w
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
je 0x18003c807
mov rcx, qword [rsp + 0x50]
call fcn.18003c980
call fcn.18003d170
mov rcx, qword [rsp + 0x50]
mov dword [rcx + 8], eax
mov rax, qword [rsp + 0x50]
cmp dword [rax + 8], 0xffffffff
jne 0x18003c826
xor eax, eax
jmp 0x18003c968
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x50]
add rax, 0x34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rsp + 0x50]
movsxd rcx, dword [rcx + 8]
mov rdx, qword [0x1800b98a8]
mov qword [rdx + rcx*8], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 8]
mov rcx, qword [0x1800b98a8]
cmp qword [rcx + rax*8], 0xffffffffffffffff
je 0x18003c952
mov eax, 2
mov word [rsp + 0x28], ax
movzx ecx, word [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x2a], ax
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 8]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, qword [0x1800b98a8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18003c914
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x18003c914
mov dword [rsp + 0x20], 1
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 8]
mov rcx, qword [0x1800b98a8]
mov r8, qword [rcx + rax*8]
mov rax, qword [rsp + 0x50]
mov edx, dword [rax + 8]
mov rcx, qword [rsp + 0x50]
call fcn.18003d1e0
jmp 0x18003c952
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 8]
mov rcx, qword [0x1800b98a8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 8]
mov rcx, qword [0x1800b98a8]
mov qword [rcx + rax*8], 0xffffffffffffffff
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], 0xffffffff
mov rax, qword [rsp + 0x50]
add rax, 0x34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180033640
add rsp, 0x48
ret
Function at 0x18003cb30
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
add rax, 0x34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp qword [0x1800b98a8], 0
je 0x18003cc04
mov rax, qword [rsp + 0x40]
cmp dword [rax + 8], 0xffffffff
je 0x18003cc04
cmp dword [rsp + 0x50], 0
je 0x18003cc04
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [0x1800b98a8]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jle 0x18003cbd6
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x50], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
jmp 0x18003cbff
cmp qword [0x1800b98b0], 0
je 0x18003cbff
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 8]
mov edx, 0xffffffff
mov rcx, qword [0x1800b98b0]
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18003cb55
mov rax, qword [rsp + 0x40]
add rax, 0x34
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x38
ret

Function at 0x18003d030
Capabilities:
Create thread

Disassembly:
mov byte [rsp + 8], cl
sub rsp, 0x28
movzx eax, byte [rsp + 0x30]
cmp eax, 0x40
jg 0x18003d04b
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x18003d04f
xor eax, eax
jmp 0x18003d0c4
movsx eax, word [0x1800b98c0]
test eax, eax
jne 0x18003d0bf
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x1800b98a0], rax
movzx eax, byte [rsp + 0x30]
mov word [0x1800b98c0], ax
xor r8d, r8d
xor edx, edx
lea rcx, [0x18003d2d0]
call fcn.180077ec0
mov qword [0x1800b72b0], rax
mov edx, 0xffffffff
mov rcx, qword [0x1800b98a0]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [0x1800b98a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1800b98a0], 0
mov eax, 1
add rsp, 0x28
ret
Function at 0x18003d1e0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [0x1800b98b8]
mov rdx, qword [rsp + 0x50]
mov qword [rcx + rax*8], rdx
movsxd rax, dword [rsp + 0x58]
mov rcx, qword [0x1800b98a8]
mov rdx, qword [rsp + 0x60]
mov qword [rcx + rax*8], rdx
movsxd rax, dword [rsp + 0x58]
mov r8d, 0x33
mov rcx, qword [0x1800b98b0]
mov rdx, qword [rcx + rax*8]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, 6
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x30], 0x100000
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x30]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x48
ret
Function at 0x18003d9e0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x2c8
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
lea rdx, [rsp + 0xb0]
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x18003db73
mov dword [rsp + 0x20], 0
jmp 0x18003da33
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
movsx eax, byte [rsp + rax + 0xb0]
test eax, eax
je 0x18003db73
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009b944]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
je 0x18003da88
movsxd rax, dword [rsp + 0x20]
lea rax, [rsp + rax + 0xb0]
lea rdx, [0x18009b958]
mov rcx, rax
call fcn.18008f2b0
test eax, eax
jne 0x18003da8a
jmp 0x18003da28
movsxd rax, dword [rsp + 0x20]
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, dword [rsp + 0x20]
inc eax
cdqe
mov ecx, 1
imul rcx, rcx, 1
movzx eax, byte [rsp + rax + 0xb0]
mov byte [rsp + rcx + 0x24], al
mov eax, 1
imul rax, rax, 2
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 3
jae 0x18003dad9
jmp 0x18003dade
call fcn.180033f70
mov rax, qword [rsp + 0x30]
mov byte [rsp + rax + 0x24], 0
mov r8d, 0x64
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x18003db06
xor eax, eax
jmp 0x18003db75
lea rcx, [rsp + 0x40]
call fcn.180076de0
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsp + 0x28]
mov r8, rax
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.180065930
test eax, eax
jne 0x18003db6e
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x2d8]
call fcn.180076d10
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x2d0]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x2d8]
call fcn.180076c70
mov eax, 1
jmp 0x18003db75
jmp 0x18003da28
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.180033640
add rsp, 0x2c8
ret

Function at 0x18003dba0
Capabilities:
Get process image filename

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x150
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov byte [rsp + 0x30], 0
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, eax
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x18003dbfc
xor eax, eax
jmp 0x18003dc59
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x18003dc24
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18003dc59
mov rdx, qword [rsp + 0x160]
lea rcx, [rsp + 0x30]
call fcn.18003d9e0
test eax, eax
jne 0x18003dc49
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x18003dc59
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180033640
add rsp, 0x150
pop rdi
ret
Function at 0x18003dd20
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x328
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov rax, qword [0x1800b7240]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov dword [rsp + 0x300], 0x19db
mov dword [rsp + 0x304], 0x4eb
mov dword [rsp + 0x308], 0x23dd
mov dword [rsp + 0x30c], 0xb47
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x40]
call fcn.180036c00
nop
lea rax, [rsp + 0x30]
lea rcx, [0x18009b8e0]
mov rdi, rax
mov rsi, rcx
mov ecx, reloc.WS2_32.dll_recv
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.180037d80
mov rcx, qword [rsp + 0x340]
call fcn.18003dcc0
mov rcx, qword [rsp + 0x340]
call fcn.180076de0
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f5a0
mov rcx, qword [rsp + 0x340]
call fcn.18003dc80
test eax, eax
jne 0x18003deaa
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fc40
mov rdx, qword [rsp + 0x340]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov rcx, qword [rsp + 0x340]
call fcn.180076de0
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
mov byte [rcx + rax], 0x5c
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x340]
add rcx, rax
mov rax, rcx
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.18008f5a0
mov rcx, qword [rsp + 0x340]
call fcn.18003dc80
test eax, eax
jne 0x18003deaa
mov r8d, 0x100
xor edx, edx
mov rcx, qword [rsp + 0x340]
call fcn.18008fc40
nop
lea rcx, [rsp + 0x40]
call fcn.180037bb0
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.180033640
add rsp, 0x328
pop rdi
pop rsi
ret