joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180073814
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18003d5a0
sub rsp, rax
mov rax, qword [0x1800a7040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800701ec
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x180073863
mov rax, rbp
jmp 0x18007396b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xacde0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180074934
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xacde0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x180073967
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180073967
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180074934
test rax, rax
js 0x180073967
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x180073967
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x180073959
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x180073959
cmp byte [rcx], 0xd
jne 0x18007393f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007394e
cmp byte [rcx + 1], 0xa
jne 0x18007394e
inc rcx
jmp 0x18007394e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa74c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180073921
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007396b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18003cc20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x180073b8c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x180073ba2
mov al, 1
jmp 0x180073c02
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x180073bb3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x180073c00
mov ecx, dword [rcx + 0x18]
nop
call fcn.18007ccac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180073c00
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x180073c00
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x180073c00
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x180073c02
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180073cd4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1800acde0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x180073d2b
cmp word [rdx], r13w
jne 0x180073d2b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x180073d30
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x180073e55
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x180073e76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x180073d69
mov rdx, r9
mov word [rbx], cx
jmp 0x180073d90
cmp r9, r8
jae 0x180073da0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x180073d4a
jmp 0x180073e55
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180073e4a
cmp dword [rsp + 0x80], esi
je 0x180073e4a
lea r8, [0x1800acde0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x180073e22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x180073df2
mov word [rbx], r13w
jmp 0x180073e52
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x180073dff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x180073e52
cmp word [rsp + 0x70], r13w
jne 0x180073e2f
cmp rbx, r14
je 0x180073dec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18007493c
cmp word [rsp + 0x70], r13w
je 0x180073e55
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1800acde0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x180073e4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x180073e55
Function at 0x180078024
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180078054
xor eax, eax
jmp 0x180078117
mov rbp, rbx
cmp word [rax], si
je 0x180078079
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180078060
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18007805c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.180075c94
movsxd r14, eax
test eax, eax
jne 0x1800780b7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18007804d
mov rcx, r14
call fcn.18006f068
mov rdi, rax
test rax, rax
jne 0x1800780d0
xor ecx, ecx
call fcn.18006f02c
jmp 0x1800780ac
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.180075c94
test eax, eax
jne 0x180078101
mov rcx, rdi
call fcn.18006f02c
jmp 0x18007810b
xor ecx, ecx
call fcn.18006f02c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180078134
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
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1800781bb
mov rsi, rbx
cmp word [rax], bp
je 0x18007817a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x180078164
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x180078160
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.18006f068
mov rdi, rax
test rax, rax
je 0x1800781a8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.18007fad0
mov rbp, rdi
xor ecx, ecx
call fcn.18006f02c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18007ae60
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.18006d208
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x18007af01
cmp ebx, dword [rsp + 0x30]
je 0x18007aefa
test esi, esi
je 0x18007aefa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x18007aed5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x18007aee2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x18007aebf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x18007aee6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x18007af03
mov eax, 1
jmp 0x18007af03
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18007f700
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18007f728
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x18007f728
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001600
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x68], r13
mov rcx, qword [rcx + 8]
mov r13d, r9d
mov esi, r8d
lea rbx, [rdi + 0x10]
test rcx, rcx
jne 0x18000162b
xor eax, eax
jmp 0x18000162f
mov eax, dword [rbx]
sub eax, ecx
lea ecx, [rax + rsi]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x28], r14
cmp ecx, dword [rdi + 0x18]
jb 0x1800016e0
xorps xmm0, xmm0
mov eax, ecx
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x18007a5c0]
call fcn.1800600d8
cvttsd2si r15, xmm0
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
shl r15d, 0xa
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [rdi + 8]
mov rbp, rax
test rdx, rdx
jne 0x180001697
xor ecx, ecx
mov r14, rbx
jmp 0x1800016a0
mov ecx, dword [rdi + 0x10]
lea r14, [rdi + 0x10]
sub ecx, edx
mov r12d, ecx
mov r8d, ecx
mov rcx, rbp
call fcn.18003a960
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1800016c5
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [r12 + rbp]
mov dword [rdi + 0x18], r15d
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x60]
mov qword [r14], rcx
mov qword [rdi + 8], rbp
jmp 0x1800016e4
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rsp + 0x58]
mov r8, rsi
call fcn.18003a960
test r13d, r13d
mov r13, qword [rsp + 0x68]
je 0x180001766
xor r10d, r10d
test esi, esi
jle 0x180001766
mov r14, qword [rsp + 0x70]
xor ebp, ebp
xor r11d, r11d
nop dword [rax]
movzx ecx, byte [r14 + rbp]
lea r11, [r11 + 1]
mov r8, qword [rbx]
mov eax, 0xa6810a7
mul ecx
mov eax, ecx
mov r9d, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3d8
sub ecx, eax
mov eax, 0xcccccccd
mul r10d
add cl, 0xf
lea rax, [rbp + 1]
xor byte [r11 + r8 - 1], cl
xor ebp, ebp
shr edx, 3
inc r10d
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r9d, ecx
cmovne rbp, rax
cmp r10d, esi
jl 0x180001710
add qword [rbx], rsi
mov eax, esi
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x180003a00
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x180087020]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor edi, edi
lea rax, vtable.CTcpSocket.0
mov qword [rcx], rax
lea rdx, [rsp + 0x20]
lea rax, vtable.CBuffer.0
mov qword [rcx + 0x10], rdi
mov qword [rcx + 0x98], rax
mov rbx, rcx
mov qword [rcx + 0xb8], rax
mov qword [rcx + 0xd8], rax
mov dword [rcx + 0x18], edi
mov dword [rcx + 0xb0], edi
mov qword [rcx + 0xa0], rdi
mov qword [rcx + 0xa8], rdi
mov dword [rcx + 0xd0], edi
mov qword [rcx + 0xc0], rdi
mov qword [rcx + 0xc8], rdi
mov dword [rcx + 0xf0], edi
mov qword [rcx + 0xe0], rdi
mov qword [rcx + 0xe8], rdi
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
xor r9d, r9d
lea edx, [rdi + 1]
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
mov ecx, edi
xchg dword [rbx + 0x20], ecx
mov qword [rbx + 0x108], 0xffffffffffffffff
mov rax, rbx
mov qword [rbx + 0xf8], rdi
mov qword [rbx + 0x100], rdi
mov dword [rbx + 0x1c], edi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.180034f80
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x180003b00
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x20], 0
mov rdi, rcx
je 0x180003b7a
mov rcx, qword [rcx + 0x108]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
mov edx, 0xffff
mov r8d, 0x80
mov dword [rsp + 0x40], 1
xor ebx, ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x20], ebx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x108], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x1800047a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180004801
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1800047c0
mov ecx, dword [r10]
jmp 0x1800048ea
cmp ecx, 0x4e0
jb 0x1800048ea
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180004820
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180004870
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180004930
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x180087020]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12d, 2
movzx r14d, r8w
mov r15, rdx
mov rbp, rcx
xor esi, esi
mov edx, r12d
mov ecx, r12d
lea r8d, [rsi + 0x11]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0xb0], rax
cmp rax, 0xffffffffffffffff
je 0x180004b0f
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
lea r9d, [rsi + 4]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov rcx, rax
mov edx, 0x9800000c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, r15
mov qword [rbp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.1800355f8
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], sil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.180035588
mov rdi, qword [rsp + 0x70]
test rbx, rbx
je 0x180004b0f
movzx ecx, r14w
mov word [rsp + 0x58], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbp + 0xb8]
lea r8d, [rsi + 0x30]
mov word [rsp + 0x5a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbp + 0xb0]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x180004b0b
mov rcx, qword [rbp + 0xb0]
lea r8d, [rsi + 0x10]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x180004b06
cmp eax, 0xffffffff
jne 0x180004b0b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180004b0b
mov esi, 1
mov eax, esi
jmp 0x180004b11
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180034f80
add rsp, 0x78
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180005050
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
nop dword [rax]
mov rdx, qword [rbx + 0xf8]
xor r9d, r9d
mov rcx, qword [rbx + 0xb0]
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x1800050d6
cmp eax, 0x10
je 0x180005104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x29c]
lea rcx, [rbx + 0x2c0]
mov rdx, qword [rbx + 0xf8]
cmp edi, 0x18
jl 0x1800050be
mov r9, qword [rbx + 0x2a8]
mov r8d, edi
mov dword [rsp + 0x20], eax
call fcn.1800064a0
jmp 0x1800050cc
cmp edi, 0xc
jne 0x180005154
call fcn.180006730
cmp eax, 2
jne 0x180005060
jmp 0x18000515f
cmp edi, 0xffffffff
jne 0x180005060
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1800051a0
cmp eax, 0x2744
je 0x180005060
cmp eax, 0x2746
je 0x180005060
jmp 0x18000516f
mov rcx, qword [rbx + 0xf8]
mov rax, qword [rcx]
cmp rax, qword [0x1800758a0]
jne 0x18000514c
mov rax, qword [rcx + 8]
cmp rax, qword [0x1800758a8]
jne 0x18000514c
xor eax, eax
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xac], eax
mov qword [rbx + 0xa4], 5
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], 4
mov dword [rbx + 0xa8], eax
xor eax, eax
mov dword [rbx + 0xac], 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret
Function at 0x1800051b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x40], rbp
lea rbx, [rcx + 0x210]
mov qword [rsp + 0x48], rsi
mov rdi, rcx
xor r15d, r15d
nop word [rax + rax]
mov eax, dword [rdi + 0x270]
test eax, eax
jle 0x180005317
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [rdi + 0x240]
cmp rsi, qword [rdi + 0x248]
je 0x18000521d
mov rax, qword [rsi + 8]
mov qword [rdi + 0x240], rax
mov qword [rax + 0x10], r15
test rsi, rsi
je 0x18000523e
jmp 0x180005230
test rsi, rsi
je 0x18000523e
mov qword [rdi + 0x240], r15
mov qword [rdi + 0x248], r15
mov qword [rsi + 8], r15
mov qword [rsi + 0x10], r15
dec dword [rdi + 0x238]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test rsi, rsi
je 0x180005317
mov r8d, dword [rsi + 0x30]
xor r9d, r9d
sub r8d, dword [rsi + 0x28]
mov rdx, qword [rsi + 0x28]
mov rcx, qword [rdi + 0xb0]
call qword [sym.imp.WS2_32.dll_send]
mov ebp, eax
test eax, eax
jle 0x1800052a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [rdi + 0x270]
sub ecx, ebp
mov dword [rdi + 0x270], ecx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdx, rsi
lea rcx, [rdi + 0x110]
call fcn.180001da0
jmp 0x1800051e0
cmp ebp, 0xffffffff
je 0x1800052bf
mov rdx, rsi
lea rcx, [rdi + 0x110]
call fcn.180001da0
jmp 0x1800051e0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180005335
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi + 0x240]
test rax, rax
je 0x1800052f2
mov qword [rax + 0x10], rsi
mov rax, qword [rdi + 0x240]
mov qword [rsi + 8], rax
jmp 0x180005301
mov qword [rsi + 0x10], r15
mov qword [rsi + 8], r15
mov qword [rdi + 0x248], rsi
inc dword [rdi + 0x238]
mov rcx, rbx
mov qword [rdi + 0x240], rsi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov rdx, rsi
mov dword [rdi + 0xa0], 1
lea rcx, [rdi + 0x110]
mov dword [rdi + 0xa4], 3
mov dword [rdi + 0xa8], eax
mov dword [rdi + 0xac], 1
call fcn.180001da0
xor eax, eax
jmp 0x18000531c
Function at 0x180008900
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov ebx, 0x40
xor esi, esi
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rbx - 0x3f]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180008a2a
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
lea r8d, [rbx - 0x3e]
mov rcx, rax
lea rdx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180008a21
cmp dword [rsp + 0x80], 2
jne 0x180008a21
cmp byte [rsp + 0x78], 0x4d
jne 0x180008a21
cmp byte [rsp + 0x79], 0x5a
jne 0x180008a21
xor r9d, r9d
lea edx, [rbx - 4]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
lea r8d, [rbx - 0x3c]
mov rcx, rdi
lea rdx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180008a21
cmp dword [rsp + 0x80], 4
jne 0x180008a21
mov edx, dword [rsp + 0x88]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
lea r8d, [rbx - 0x3c]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180008a21
cmp dword [rsp + 0x80], 4
jne 0x180008a21
mov eax, dword [rsp + 0x40]
cmp eax, 0x14c
jne 0x180008a21
lea ebx, [rsi + 0x20]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x18000db90
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x180087020]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, rcx
xor edi, edi
xor edx, edx
lea ecx, [rdi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18000dc22
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x18000dc19
nop word [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x4c]
call fcn.180043074
test eax, eax
je 0x18000dc15
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x18000dbf0
jmp 0x18000dc19
mov edi, dword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.180034f80
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret