joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4449d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
movzx eax, ax
push esi
mov esi, eax
mov dword [ebp - 4], eax
push edi
shr esi, 8
xor eax, eax
xor edi, edi
mov dword [ebp - 8], esi
cmp dword [ebp + 0x10], eax
jbe 0x444a30
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0xc]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x444a30
jne 0x444a28
cmp eax, edx
jge 0x444a28
mov ecx, dword [ebp + 8]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x444a58
inc eax
cmp eax, edx
jl 0x444a17
mov esi, dword [ebp - 8]
inc edi
mov eax, edx
cmp edi, dword [ebp + 0x10]
jb 0x4449f6
mov edi, dword [ebp + 0x1c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x444a70
mov esi, dword [ebp + 0x18]
nop
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x444a61
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x444a63
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, ecx
sub dword [ebp - 4], edx
js 0x444a70
inc eax
xor bl, 1
cmp eax, edi
jb 0x444a40
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x446d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, dword [eax + 4]
push edi
mov edi, dword [eax]
sub ebx, edi
mov edx, dword [esi + 0xcc]
lea ecx, [esi + 0xc8]
mov dword [ebp - 4], ebx
test edx, edx
je 0x446e1b
mov eax, edx
nop word [eax + eax]
test ebx, ebx
je 0x446e05
mov eax, dword [esi + 0xc4]
mov ecx, 0x20
sub ecx, edx
dec ebx
shr eax, cl
mov ecx, 0x20
xor byte [edi], al
mov edx, dword [esi + 0xcc]
sub ecx, edx
movzx eax, byte [edi]
add edx, 0xfffffff8
shl eax, cl
inc edi
xor dword [esi + 0xc8], eax
lea ecx, [esi + 0xc8]
mov dword [esi + 0xcc], edx
mov eax, edx
mov dword [ebp - 4], ebx
test edx, edx
jne 0x446db0
push dword [ecx]
mov dword [ebp + 8], ecx
mov ecx, esi
call fcn.004475b0
jmp 0x446e1e
mov dword [ebp + 8], ecx
test eax, eax
jne 0x446f5b
push dword [ecx]
mov ecx, esi
call fcn.004475b0
jmp 0x446e1e
mov dword [ebp + 8], ecx
mov eax, ebx
and eax, 0xfffffffc
add eax, edi
mov dword [ebp - 8], eax
cmp edi, eax
jae 0x446ef9
mov ebx, eax
mov ecx, esi
call fcn.00446c80
movzx edx, byte [edi + 3]
movzx eax, byte [edi + 2]
mov ecx, dword [esi + 0x48]
xor ecx, dword [esi + 0x7c]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [edi]
shl edx, 8
or edx, eax
mov eax, dword [esi + 0x44]
xor edx, dword [esi + 0xc4]
xor ecx, edx
xor ecx, dword [esi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x58]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x60]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x78], eax
mov eax, edx
xor dword [esi + 0x34], edx
shr eax, 0x18
mov dword [esi + 0x7c], ecx
mov byte [edi + 3], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 8
mov byte [edi + 1], al
mov byte [edi], dl
add edi, 4
cmp edi, ebx
jb 0x446e32
mov ebx, dword [ebp - 4]
lea eax, [esi + 0xc8]
mov dword [ebp + 8], eax
and ebx, 3
je 0x446f5b
mov ecx, esi
call fcn.00446c80
mov eax, dword [ebp + 8]
mov edx, 0x20
mov dword [esi + 0xcc], 0x20
mov dword [eax], 0
nop dword [eax]
test ebx, ebx
je 0x446f5b
mov eax, dword [esi + 0xc4]
mov ecx, 0x20
sub ecx, edx
dec ebx
shr eax, cl
mov ecx, 0x20
xor byte [edi], al
mov edx, dword [esi + 0xcc]
sub ecx, edx
movzx eax, byte [edi]
add edx, 0xfffffff8
shl eax, cl
inc edi
mov ecx, dword [ebp + 8]
mov dword [esi + 0xcc], edx
xor dword [ecx], eax
test edx, edx
jne 0x446f20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x446f70
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, 0x10
nop dword [eax + eax]
mov esi, dword [ecx + 0x34]
xor esi, dword [ecx + 0xc0]
xor esi, dword [ecx + 0x30]
mov edi, dword [ecx]
mov edx, esi
shr edx, 2
or edx, esi
ror edi, 0x1f
shr edx, 0x19
lea eax, [esi*4]
or eax, esi
shl eax, 5
or edx, eax
xor esi, edx
mov eax, esi
shr eax, 3
or eax, esi
shr eax, 0xa
lea edx, [esi*8]
or edx, esi
shl edx, 0x13
or edx, eax
mov eax, dword [ecx + 4]
mov dword [ecx], eax
xor edi, edx
mov eax, dword [ecx + 8]
xor edi, esi
mov dword [ecx + 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0xc], eax
mov eax, dword [ecx + 0x14]
mov dword [ecx + 0x10], eax
mov eax, dword [ecx + 0x18]
mov dword [ecx + 0x14], eax
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0x18], eax
mov eax, dword [ecx + 0x20]
mov dword [ecx + 0x1c], eax
mov eax, dword [ecx + 0x24]
mov dword [ecx + 0x20], eax
mov eax, dword [ecx + 0x28]
mov dword [ecx + 0x24], eax
mov eax, dword [ecx + 0x2c]
mov dword [ecx + 0x28], eax
mov eax, dword [ecx + 0x30]
mov dword [ecx + 0x2c], eax
mov eax, dword [ecx + 0x34]
mov dword [ecx + 0x30], eax
mov eax, dword [ecx + 0x38]
mov dword [ecx + 0x34], eax
mov eax, dword [ecx + 0x3c]
mov dword [ecx + 0x38], eax
mov esi, dword [ecx + 8]
xor esi, edi
mov dword [ecx + 0x3c], edi
mov edx, esi
mov eax, esi
shr edx, 0xf
shl eax, 0xf
or edx, esi
or eax, esi
shr edx, 0xa
shl eax, 7
or edx, eax
xor esi, edx
mov edx, esi
mov eax, esi
shr edx, 0xe
shl eax, 0xe
or edx, esi
or eax, esi
shr edx, 0xd
shl eax, 5
or edx, eax
mov eax, dword [ecx + 0x30]
xor edx, esi
xor dword [ecx], edx
xor eax, edx
xor eax, dword [ecx + 0x20]
mov dword [ecx + 0xc4], eax
sub ebx, 1
jne 0x446f80
pop edi
pop esi
pop ebx
ret
Function at 0x447080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov edx, dword [eax + 4]
push edi
mov edi, dword [eax]
sub edx, edi
mov ecx, dword [esi + 0xcc]
lea ebx, [esi + 0xc8]
mov dword [ebp + 8], edx
lea eax, [esi + 0xc4]
mov dword [ebp - 8], ecx
test ecx, ecx
jne 0x4471f8
mov dword [ebp - 4], eax
mov eax, edx
and eax, 0xfffffffc
add eax, edi
mov dword [ebp - 8], eax
cmp edi, eax
jae 0x447191
mov ebx, dword [ebp - 4]
nop dword [eax]
mov ecx, esi
call fcn.00446c80
movzx edx, byte [edi + 3]
movzx eax, byte [edi + 2]
mov ecx, dword [esi + 0x40]
xor ecx, dword [esi + 0x48]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [edi]
shl edx, 8
or edx, eax
mov eax, dword [esi + 0x44]
xor ecx, edx
xor ecx, dword [esi + 0x7c]
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x48]
mov dword [esi + 0x44], eax
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x50]
mov dword [esi + 0x4c], eax
mov eax, dword [esi + 0x54]
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x58]
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x60]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x68]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x6c], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x70], eax
mov eax, dword [esi + 0x78]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x78], eax
xor dword [esi + 0x34], edx
mov dword [esi + 0x7c], ecx
xor edx, dword [ebx]
mov eax, edx
mov byte [edi], dl
shr eax, 0x18
mov byte [edi + 3], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 8
mov byte [edi + 1], al
add edi, 4
cmp edi, dword [ebp - 8]
jb 0x4470d0
mov edx, dword [ebp + 8]
lea ebx, [esi + 0xc8]
and edx, 3
mov dword [ebp + 8], edx
je 0x4471e9
mov ecx, esi
call fcn.00446c80
mov edx, dword [ebp + 8]
mov eax, 0x20
mov dword [ebx], 0
mov dword [esi + 0xcc], 0x20
test edx, edx
je 0x4471e9
mov ecx, 0x20
dec edx
sub ecx, eax
movzx eax, byte [edi]
shl eax, cl
xor dword [ebx], eax
mov eax, dword [esi + 0xc4]
shr eax, cl
xor byte [edi], al
inc edi
mov eax, dword [esi + 0xcc]
add eax, 0xfffffff8
mov dword [esi + 0xcc], eax
test eax, eax
jne 0x4471b8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [esi + 0xc4]
mov dword [ebp - 4], eax
test edx, edx
je 0x44723b
movzx eax, byte [edi]
lea ebx, [esi + 0xc8]
mov ecx, 0x20
dec edx
sub ecx, dword [ebp - 8]
shl eax, cl
xor dword [ebx], eax
lea eax, [esi + 0xc4]
mov dword [ebp - 4], eax
mov eax, dword [eax]
shr eax, cl
xor byte [edi], al
inc edi
mov ecx, dword [esi + 0xcc]
add ecx, 0xfffffff8
mov dword [ebp - 8], ecx
mov dword [esi + 0xcc], ecx
test ecx, ecx
jne 0x4471f2
mov dword [ebp + 8], edx
test ecx, ecx
jne 0x4471e9
push dword [ebx]
mov ecx, esi
call fcn.004475b0
mov edx, dword [ebp + 8]
jmp 0x4470b8
Function at 0x447260
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ebx, dword [eax + 4]
push edi
mov edi, dword [eax]
sub ebx, edi
cmp dword [esi + 0xcc], 0
je 0x447286
push dword [esi + 0xc8]
call fcn.004475b0
mov ecx, esi
call fcn.00446c80
mov eax, dword [esi + 0xcc]
lea ecx, [esi + 4]
shl eax, 3
mov edx, 4
xor eax, dword [esi + 0x34]
xor eax, 0x6996c53a
mov dword [esi + 0xcc], 0
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x3c]
lea ecx, [ecx + 0x10]
xor dword [ecx - 0x14], eax
mov eax, dword [ecx + 0x30]
xor dword [ecx - 0x10], eax
mov eax, dword [ecx + 0x34]
xor dword [ecx - 0xc], eax
mov eax, dword [ecx + 0x38]
xor dword [ecx - 8], eax
sub edx, 1
jne 0x4472b3
mov ecx, esi
call fcn.00446f70
test ebx, ebx
je 0x447343
nop
mov ecx, esi
call fcn.00446c80
cmp ebx, 4
jb 0x447322
movzx eax, byte [esi + 0xc7]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xc6]
mov byte [edi + 2], al
movzx eax, byte [esi + 0xc5]
mov byte [edi + 1], al
movzx eax, byte [esi + 0xc4]
mov byte [edi], al
add edi, 4
sub ebx, 4
jne 0x4472e0
pop edi
pop esi
pop ebx
pop ebp
ret 4
xor edx, edx
test ebx, ebx
je 0x447343
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [esi + 0xc4]
shr eax, cl
add ecx, 8
mov byte [edx + edi], al
inc edx
cmp edx, ebx
jb 0x447330
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x447440
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, ecx
mov edx, dword [eax + 4]
sub edx, dword [eax]
push edi
mov ecx, edx
mov dword [ebp - 4], edx
xor edi, edi
lea esi, [ebx + 0x34]
and ecx, 0xfffffffc
mov dword [ebp - 8], ecx
jbe 0x44749f
mov ecx, dword [eax]
movzx eax, byte [ecx + edi + 2]
add ecx, edi
movzx edx, byte [ecx + 3]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [ecx]
shl edx, 8
mov ecx, ebx
or edx, eax
xor dword [esi], edx
call fcn.00446c80
mov eax, dword [ebp + 8]
add edi, 4
cmp edi, dword [ebp - 8]
jb 0x447465
mov edx, dword [ebp - 4]
cmp edi, edx
jae 0x4474fe
mov eax, dword [eax]
mov esi, edx
add eax, edi
sub esi, edi
push esi
push eax
lea eax, [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 4
jge 0x4474cf
jae 0x4475a6
mov byte [ebp + esi + 8], 0
inc esi
cmp esi, 4
jl 0x4474be
movzx edx, byte [ebp + 0xb]
lea esi, [ebx + 0x34]
movzx eax, byte [ebp + 0xa]
shl edx, 8
or edx, eax
mov eax, dword [ebp + 8]
shl edx, 8
movzx ecx, ah
or edx, ecx
movzx eax, al
shl edx, 8
mov ecx, ebx
or edx, eax
xor dword [esi], edx
call fcn.00446c80
mov edx, dword [ebp - 4]
xor dword [esi], edx
mov ecx, ebx
call fcn.00446c80
mov eax, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 4]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 8]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x58], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x5c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x60], eax
mov eax, dword [ebx + 0x24]
mov dword [ebx + 0x64], eax
mov eax, dword [ebx + 0x28]
mov dword [ebx + 0x68], eax
mov eax, dword [ebx + 0x2c]
mov dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x78], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x7c], eax
call fcn.00446f70
pop edi
pop esi
lea eax, [ebx + 4]
mov edx, 4
pop ebx
nop dword [eax + eax]
mov ecx, dword [eax + 0x3c]
lea eax, [eax + 0x10]
xor dword [eax - 0x14], ecx
mov ecx, dword [eax + 0x30]
xor dword [eax - 0x10], ecx
mov ecx, dword [eax + 0x34]
xor dword [eax - 0xc], ecx
mov ecx, dword [eax + 0x38]
xor dword [eax - 8], ecx
sub edx, 1
jne 0x447580
mov esp, ebp
pop ebp
ret 4
call fcn.004d4484
int3
Function at 0x449240
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, dword [ebp + 8]
mov bl, 1
mov dword [ebp - 0x124], eax
cmp dword [edi + 0x78], 0xffffffff
je 0x4493f8
cmp dword [edi + 4], 3
jne 0x4493f8
mov eax, 2
mov word [ebp - 0x1c], ax
mov eax, dword [edi + 0x5c]
mov dword [ebp - 0x18], eax
movzx eax, word [edi + 0x7e]
push esi
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [edi + 0x32e0]
mov word [ebp - 0x1a], ax
add ecx, ecx
imul eax, dword [edi + 0x32c4], 0xf4240
mov esi, dword [edi + 0x78]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], 1
mov dword [ebp - 0xc], 0
cdq
idiv ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x120]
push eax
push 0
lea eax, [esi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x449313
mov eax, dword [0x51d3b0]
cmp dword [eax], 1
jl 0x44930e
push edi
push 0x27c
push str._raopcl_send_audio
call fcn.004048f0
push eax
push str._s__s:_d___p_:_audio_socket_closed_n
call fcn.004048b0
add esp, 0x14
inc dword [edi + 0x30]
jmp 0x44931a
mov dword [edi + 0x30], 0
lea eax, [ebp - 0x120]
push eax
push dword [edi + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4493b8
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x1c]
push 0x10
push eax
push 0
push esi
push dword [ebp - 0x124]
push dword [edi + 0x78]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x449397
mov eax, dword [0x51d3b0]
cmp dword [eax], 4
jl 0x449378
push edi
push 0x284
push str._raopcl_send_audio
call fcn.004048f0
push eax
push str._s__s:_d___p_:_error_sending_audio_packet_n
call fcn.004048b0
add esp, 0x14
xor bl, bl
mov dword [edi + 0x2c], 0
inc dword [edi + 0x34]
mov al, bl
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
pop esi
mov dword [edi + 0x34], 0
mov al, bl
mov dword [edi + 0x2c], 0
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov eax, dword [0x51d3b0]
cmp dword [eax], 4
jl 0x4493e0
push edi
push 0x28c
push str._raopcl_send_audio
call fcn.004048f0
push eax
push str._s__s:_d___p_:_audio_socket_unavailable_n
call fcn.004048b0
add esp, 0x14
xor bl, bl
inc dword [edi + 0x2c]
pop esi
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x449410
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x28], ax
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x24], eax
movzx eax, word [ebx + 0x76]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [ebx + 4], 3
mov word [ebp - 0x26], ax
jne 0x4495b8
mov cl, byte [ebp + 0xc]
mov eax, 0x80
test cl, cl
mov word [ebp - 0x17], 0xd4
mov edx, 0x90
mov byte [ebp - 0x15], 7
cmovne eax, edx
mov byte [ebp - 0x18], al
lea eax, [ebx + 0x32d8]
jne 0x44947c
push eax
call fcn.0045c1f0
add esp, 4
mov eax, dword [ebx + 0x32e0]
push esi
mov esi, dword [ebx + 0x3294]
push edi
mov edi, dword [ebx + 0x3290]
mov ecx, edi
cdq
push edx
shld esi, ecx, 0x10
push eax
shl ecx, 0x10
push esi
push ecx
call fcn.004d4b00
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov ecx, edx
shld ecx, eax, 0x10
shl eax, 0x10
push ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
call esi
push edi
mov dword [ebp - 0xc], eax
call esi
sub edi, dword [ebx + 0x32c0]
push edi
mov dword [ebp - 8], eax
call esi
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebx + 0x70]
call dword [sym.imp.WS2_32.dll_sendto]
cmp byte [ebp + 0xc], 0
mov esi, eax
jne 0x449506
lea ecx, [ebx + 0x32d8]
push ecx
call fcn.0045c4a0
add esp, 4
mov ecx, dword [0x51d3b0]
cmp dword [ecx], 4
jl 0x449547
push dword [ebx + 0x3294]
push dword [ebx + 0x3290]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
push 0x4ed
push str._raopcl_send_sync
call fcn.004048f0
push eax
push str._s__s:_d___p_:_sync_ntp:_u._u__ts:_llu__n
call fcn.004048b0
mov ecx, dword [0x51d3b0]
add esp, 0x24
test esi, esi
jns 0x449591
cmp dword [ecx], 1
jl 0x4495b6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
push eax
push ebx
push 0x4ef
push str._raopcl_send_sync
call fcn.004048f0
push eax
push str._s__s:_d___p_:_write_error:__s_n
call fcn.004048b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
jne 0x4495b6
cmp dword [ecx], 3
jl 0x4495b6
push ebx
push 0x4f0
push str._raopcl_send_sync
call fcn.004048f0
push eax
push str._s__s:_d___p_:_write__disconnected_on_the_other_end_n
call fcn.004048b0
add esp, 0x14
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x44ef00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x44ef9e
push 1
push 0
push dword [ebp + 0xc]
mov dword [edi + 0x288], 0
call fcn.00405430
add esp, 0xc
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x44ef9e
push dword [ebp + 0x14]
push esi
push eax
call fcn.004057b0
add esp, 0xc
test al, al
je 0x44ef9e
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x14]
push ebx
push esi
mov dword [edi + 0x290], eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea eax, [edi + 4]
push str.rtsp:___s__s
push eax
call fcn.00404950
add esp, 0x10
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret
Function at 0x450bc0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov dl, 1
push ebx
push esi
push edi
xor ebx, ebx
movzx eax, dl
mov cl, dl
sar cl, 7
and cl, 0x1b
mov byte [ebp + ebx - 0x208], dl
mov byte [ebp + eax - 0x108], bl
mov al, dl
add al, al
inc ebx
xor cl, al
xor dl, cl
cmp ebx, 0x100
jl 0x450bd0
mov cl, 1
mov edx, 0x53fee0
movzx eax, cl
shl eax, 0x18
mov dword [edx], eax
mov al, cl
sar al, 7
add cl, cl
and al, 0x1b
add edx, 4
xor cl, al
cmp edx, 0x53ff08
jl 0x450c01
mov dword [0x542320], 0x63
mov esi, 1
mov dword [0x5410ac], 0
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x108]
lea ecx, [ebp - 0x109]
sub ecx, eax
mov dl, byte [ecx]
mov cl, dl
mov al, dl
add al, al
shr cl, 7
or cl, al
xor dl, cl
mov al, cl
shr al, 7
add cl, cl
or al, cl
mov bl, al
xor bl, dl
mov dl, al
add al, al
shr dl, 7
or dl, al
mov al, dl
ror al, 7
movzx ecx, al
movzx eax, dl
xor ecx, eax
movzx eax, bl
xor ecx, eax
xor ecx, 0x63
mov dword [esi*4 + 0x542320], ecx
mov dword [ecx*4 + 0x540f20], esi
inc esi
cmp esi, 0x100
jl 0x450c40
xor ebx, ebx
mov dword [ebp - 4], 0xff
nop word [eax + eax]
mov dl, byte [ebx + 0x542320]
mov cl, dl
movzx edi, dl
sar cl, 7
mov al, dl
and cl, 0x1b
add al, al
xor cl, al
movzx eax, dl
movzx esi, cl
shl esi, 8
xor esi, edi
movzx ecx, cl
xor ecx, eax
shl esi, 8
xor esi, edi
mov eax, esi
shl eax, 8
xor eax, ecx
bswap ecx
or ecx, esi
mov dword [ebx + 0x541f20], eax
mov al, byte [ebx + 0x540f20]
mov dword [ebx + 0x541b20], ecx
shr ecx, 8
bswap edi
or ecx, edi
mov dword [ebx + 0x541720], ecx
shr ecx, 8
or ecx, edi
mov dword [ebx + 0x541320], ecx
test al, al
je 0x450da0
movzx esi, al
xor edx, edx
mov eax, dword [ebp - 0xfb]
mov edi, 0xff
movzx eax, al
movzx ecx, byte [ebp + esi - 0x108]
add eax, ecx
div edi
mov eax, dword [ebp - 0xff]
movzx eax, al
add eax, ecx
movzx edi, byte [ebp + edx - 0x208]
xor edx, edx
div dword [ebp - 4]
movzx eax, byte [ebp + edx - 0x208]
xor edx, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xfa]
movzx eax, al
add eax, ecx
mov ecx, 0xff
div ecx
movzx eax, byte [ebp + esi - 0x108]
mov esi, 0xff
movzx ecx, byte [ebp + edx - 0x208]
mov edx, dword [ebp - 0xfd]
movzx edx, dl
add eax, edx
xor edx, edx
div esi
mov eax, dword [ebp - 8]
movzx edx, byte [ebp + edx - 0x208]
jmp 0x450da8
xor edi, edi
xor eax, eax
xor ecx, ecx
xor edx, edx
shl ecx, 8
xor ecx, eax
shl ecx, 8
xor ecx, edi
shl ecx, 8
xor ecx, edx
mov edx, ecx
mov dword [ebx + 0x540b20], ecx
shl edx, 0x18
shr ecx, 8
or edx, ecx
mov eax, edx
mov dword [ebx + 0x540720], edx
shl eax, 0x18
shr edx, 8
or eax, edx
mov dword [ebx + 0x540320], eax
ror eax, 8
mov dword [ebx + 0x53ff20], eax
add ebx, 4
cmp ebx, 0x400
jl 0x450cb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4524b0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9a81
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x51df40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movups xmmword [edi + 0x10], xmm0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
lea esi, [edi + 0x44]
mov byte [ebp - 4], 2
push 0x54
mov dword [ebp - 0x20], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004d4281
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
movq xmm0, qword [str.bplist00]
lea edx, [ebp - 0x1c]
mov al, byte [0x4e4880]
lea ecx, [edx + 1]
mov byte [ebp - 4], 3
movq qword [ebp - 0x1c], xmm0
mov byte [ebp - 0x14], al
mov al, byte [edx]
inc edx
test al, al
jne 0x452582
sub edx, ecx
lea eax, [ebp - 0x1c]
push edx
push eax
push dword [edi + 0x38]
lea ecx, [edi + 0x38]
call fcn.004520e0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d3ed5
mov esp, ebp
pop ebp
ret