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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movups xmmword [ebp - 0x14], xmm0
lea edx, [edi + 0x4e0]
push edx
lea edx, [ebp - 0x14]
push edx
call dword [eax + 0x10]
xorps xmm0, xmm0
xor ebx, ebx
movups xmmword [edi + 0x520], xmm0
xor esi, esi
movups xmmword [edi + 0x4f0], xmm0
mov dword [edi + 0x534], 0
mov dword [edi + 0x530], 0
mov dword [edi + 0x538], 0
mov dword [edi + 0x540], 0
mov dword [edi + 0x544], 0
mov dword [edi + 0x548], 0
mov dword [edi + 0x54c], 0
movups xmmword [ebp - 0x14], xmm0
nop dword [eax]
mov eax, dword [edi + 0x550]
add eax, 4
mov byte [ebp - 0x14], bl
add eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + 0x4e0]
push eax
call fcn.00590d40
add esi, 0x10
add esp, 0xc
inc ebx
cmp esi, 0x1000
jl 0x592a80
mov eax, 0x1000
mov ebx, 0x100
nop dword [eax + eax]
mov edx, dword [edi + 0x550]
movzx esi, byte [edx + eax - 0xfed]
movzx ecx, byte [edx + eax - 0xfee]
mov byte [edx + eax + 0x13], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xfef]
mov byte [edx + eax + 0x12], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff0]
mov byte [edx + eax + 0x11], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff1]
mov byte [edx + eax + 0x10], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff2]
mov byte [edx + eax + 0xf], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff3]
mov byte [edx + eax + 0xe], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff4]
mov byte [edx + eax + 0xd], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff5]
mov byte [edx + eax + 0xc], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff6]
mov byte [edx + eax + 0xb], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff7]
mov byte [edx + eax + 0xa], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff8]
mov byte [edx + eax + 9], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xff9]
mov byte [edx + eax + 8], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xffa]
mov byte [edx + eax + 7], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xffb]
mov byte [edx + eax + 6], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [edx + eax - 0xffc]
mov byte [edx + eax + 5], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [esi*2 + 0x656400]
mov byte [edx + eax + 4], cl
mov edx, dword [edi + 0x550]
movzx ecx, byte [esi*2 + 0x656401]
xor byte [edx + eax + 5], cl
add eax, 0x10
sub ebx, 1
jne 0x592ac0
cmp eax, 0x10000
jl 0x592ab3
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x595dc0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 0x68b470
ret

Function at 0x595dd0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, 0x68b4b8
ret
Function at 0x598370
Capabilities:
Encrypt data using twofish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
sub eax, 2
je 0x598448
sub eax, 1
je 0x5983f8
sub eax, 1
jne 0x5983e4
movzx eax, byte [ebp - 8]
mov cl, byte [edi + edx*4 + 0x18]
xor cl, byte [eax + 0x656e00]
movzx eax, byte [ebp - 7]
mov bl, byte [eax + 0x656d00]
movzx eax, byte [ebp - 6]
xor bl, byte [edi + edx*4 + 0x19]
mov ch, byte [eax + 0x656d00]
movzx eax, byte [ebp - 5]
xor ch, byte [edi + edx*4 + 0x1a]
mov bh, byte [eax + 0x656e00]
xor bh, byte [edi + edx*4 + 0x1b]
jmp 0x598404
mov cl, byte [ebp - 8]
mov al, byte [ebp - 5]
mov bl, byte [ebp - 6]
mov bh, byte [ebp - 7]
mov byte [ebp - 9], cl
jmp 0x5984f4
mov bh, byte [ebp - 5]
mov ch, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov cl, byte [ebp - 8]
movzx eax, cl
mov cl, byte [edi + edx*4 + 0x10]
xor cl, byte [eax + 0x656e00]
movzx eax, bl
mov byte [ebp - 9], cl
mov bl, byte [eax + 0x656e00]
xor bl, byte [edi + edx*4 + 0x11]
movzx eax, ch
mov al, byte [eax + 0x656d00]
xor al, byte [edi + edx*4 + 0x12]
mov byte [ebp - 0xa], al
movzx eax, bh
mov bh, byte [ebp - 0xa]
mov al, byte [eax + 0x656d00]
xor al, byte [edi + edx*4 + 0x13]
mov byte [ebp - 0xb], al
mov al, cl
jmp 0x598457
mov al, byte [ebp - 5]
mov bh, byte [ebp - 6]
mov bl, byte [ebp - 7]
mov byte [ebp - 0xb], al
mov al, byte [ebp - 8]
movzx ecx, byte [edi + edx*4 + 8]
movzx eax, al
movzx eax, byte [eax + 0x656d00]
xor ecx, eax
movzx eax, byte [edi + edx*4]
movzx ecx, byte [ecx + 0x656d00]
xor ecx, eax
mov al, byte [ecx + 0x656e00]
mov byte [ebp - 9], al
movzx eax, bl
movzx ecx, byte [eax + 0x656e00]
movzx eax, byte [edi + edx*4 + 9]
xor ecx, eax
movzx eax, byte [edi + edx*4 + 1]
movzx ecx, byte [ecx + 0x656d00]
xor ecx, eax
mov al, byte [ecx + 0x656d00]
mov byte [ebp - 0xa], al
movzx eax, bh
mov bh, byte [ebp - 0xa]
movzx ecx, byte [eax + 0x656d00]
movzx eax, byte [edi + edx*4 + 0xa]
xor ecx, eax
movzx eax, byte [edi + edx*4 + 2]
movzx ecx, byte [ecx + 0x656e00]
xor ecx, eax
movzx eax, byte [ebp - 0xb]
mov bl, byte [ecx + 0x656e00]
movzx ecx, byte [eax + 0x656e00]
movzx eax, byte [edi + edx*4 + 0xb]
xor ecx, eax
movzx eax, byte [edi + edx*4 + 3]
movzx ecx, byte [ecx + 0x656e00]
xor ecx, eax
mov al, byte [ecx + 0x656d00]
movzx eax, al
movzx ecx, bl
pop edi
mov edx, dword [eax*4 + 0x657b00]
xor edx, dword [ecx*4 + 0x657700]
mov ecx, dword [ebp - 4]
movzx eax, bh
xor ecx, ebp
xor edx, dword [eax*4 + 0x657300]
movzx eax, byte [ebp - 9]
xor edx, dword [eax*4 + 0x656f00]
mov eax, edx
mov byte [esi], dl
shr eax, 0x18
mov byte [esi + 3], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
pop esi
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret
Function at 0x59b1d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd40d
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x1c]
mov esi, dword [ebp + 0x10]
xorps xmm0, xmm0
mov edi, dword [ebp + 0xc]
push str.initCrypt_rc2
push eax
mov dword [ebp - 0x24], esi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
call fcn.00447ef0
mov dword [ebp - 4], 0
test esi, esi
je 0x59b267
mov eax, dword [edi + 8]
cmp eax, 3
je 0x59b241
cmp eax, 4
jne 0x59b267
push dword [ebx + 0x80]
lea ecx, [edi + 0x34]
call fcn.00402f10
push eax
lea ecx, [edi + 0x34]
call fcn.00438b90
mov ecx, dword [ebp - 0x24]
push eax
add ecx, 0x484
call fcn.00593c40
mov eax, dword [edi + 0x10]
mov ebx, dword [edi + 0xc8]
cdq
and edx, 7
lea esi, [edx + eax]
sar esi, 3
cmp esi, 0x80
jbe 0x59b289
mov esi, 0x80
jmp 0x59b293
mov eax, 1
cmp esi, eax
cmovb esi, eax
mov eax, 0x400
test ebx, ebx
jne 0x59b2a0
mov ebx, eax
jmp 0x59b2a5
cmp ebx, eax
cmova ebx, eax
push esi
lea ecx, [edi + 0x14]
call fcn.00438680
lea ecx, [edi + 0x14]
call fcn.00438b90
cmp esi, 0x80
jbe 0x59b2c5
xor bl, bl
jmp 0x59b39f
mov edi, dword [ebp - 0x20]
test ebx, ebx
mov ecx, 0x400
push esi
cmove ebx, ecx
add edi, 0x88
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x80
jae 0x59b317
mov eax, dword [ebp - 0x20]
mov edx, edi
mov al, byte [esi + eax + 0x87]
movzx ecx, byte [edx]
lea edx, [edx + 1]
movzx eax, al
add ecx, eax
movzx eax, cl
mov al, byte [eax + 0x65a850]
mov byte [edi + esi], al
inc esi
cmp esi, 0x80
jb 0x59b2f7
mov esi, dword [ebp - 0x20]
lea eax, [ebx + 7]
shr eax, 3
mov edi, 0x80
sub edi, eax
mov dword [ebp - 0x24], eax
add esi, 0x88
neg ebx
add esi, edi
and ebx, 7
mov edx, 0xff
mov ecx, ebx
sar edx, cl
movzx eax, byte [esi]
and edx, eax
mov al, byte [edx + 0x65a850]
mov byte [esi], al
test edi, edi
je 0x59b36e
mov edx, dword [ebp - 0x24]
movzx ecx, byte [esi + edx - 1]
lea esi, [esi - 1]
movzx eax, al
xor ecx, eax
mov al, byte [ecx + 0x65a850]
mov byte [esi], al
sub edi, 1
jne 0x59b354
mov edx, dword [ebp - 0x20]
mov esi, 0x3f
add edx, 0x106
mov edi, 0x100
movzx ecx, byte [edx + 1]
lea edx, [edx - 2]
movzx eax, byte [edx + 2]
imul ecx, edi
add cx, ax
mov eax, esi
dec esi
mov word [edx + 2], cx
test eax, eax
jne 0x59b381
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.00447ff0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x59c030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
mov ecx, dword [eax + 0x440]
mov ebx, dword [eax + 0x43c]
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], edi
jle 0x59c08e
push esi
inc bl
movzx ebx, bl
mov edx, dword [eax + ebx*4 + 0x3c]
mov cl, dl
add cl, byte [ebp - 4]
mov eax, dword [ebp + 8]
movzx ecx, cl
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 4]
mov ecx, dword [eax + ecx*4 + 0x3c]
mov dword [eax + ebx*4 + 0x3c], ecx
mov dword [eax + esi*4 + 0x3c], edx
add dl, cl
movzx ecx, dl
mov edx, dword [ebp + 0xc]
mov cl, byte [eax + ecx*4 + 0x3c]
xor byte [edi + edx], cl
inc edi
cmp edi, dword [ebp + 0x10]
jl 0x59c050
mov ecx, esi
pop esi
pop edi
mov dword [eax + 0x43c], ebx
mov dword [eax + 0x440], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x59c4c0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, str.expand_16_byte_k
movzx ecx, byte [esi + 3]
lea edx, [esi + 0x10]
shl ecx, 8
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x454], ecx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x458], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x45c], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
cmp dword [ebp + 0x10], 0x100
mov dword [ebx + 0x460], ecx
mov ecx, 0x65a950
cmovne edx, esi
cmove edi, ecx
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x464], ecx
movzx ecx, byte [edx + 7]
movzx eax, byte [edx + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x468], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x46c], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x470], ecx
movsx ecx, byte [edi + 3]
movsx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x444], ecx
movsx ecx, byte [edi + 7]
movsx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x448], ecx
movsx ecx, byte [edi + 0xb]
movsx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x44c], ecx
movsx ecx, byte [edi + 0xf]
movsx eax, byte [edi + 0xe]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xd]
shl ecx, 8
or ecx, eax
movsx eax, byte [edi + 0xc]
shl ecx, 8
pop edi
or ecx, eax
pop esi
mov dword [ebx + 0x450], ecx
pop ebx
pop ebp
ret 0x10
Function at 0x59c6b0
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x59c89e
mov esi, dword [ebp + 8]
lea ecx, [esi + 0x14]
call fcn.00402f10
cmp eax, 0x20
jne 0x59c89e
lea eax, [esi + 0x34]
mov ecx, eax
mov dword [ebp + 0xc], eax
call fcn.00402f10
cmp eax, 0xc
jb 0x59c89e
lea ecx, [esi + 0x14]
call fcn.00438b90
mov ecx, dword [ebp + 0xc]
mov esi, eax
call fcn.00438b90
mov dword [ebx], 0x61707865
mov edi, eax
mov dword [ebx + 4], 0x3320646e
mov dword [ebx + 8], 0x79622d32
mov dword [ebx + 0xc], 0x6b206574
movzx edx, byte [esi + 3]
movzx ecx, byte [esi + 2]
movzx eax, byte [esi + 1]
shl edx, 8
or edx, ecx
shl edx, 8
or edx, eax
movzx eax, byte [esi]
shl edx, 8
or edx, eax
mov dword [ebx + 0x10], edx
movzx ecx, byte [esi + 7]
movzx eax, byte [esi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x14], ecx
movzx ecx, byte [esi + 0xb]
movzx eax, byte [esi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x18], ecx
movzx ecx, byte [esi + 0xf]
movzx eax, byte [esi + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x1c], ecx
movzx ecx, byte [esi + 0x13]
movzx eax, byte [esi + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x10]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x20], ecx
movzx ecx, byte [esi + 0x17]
movzx eax, byte [esi + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x24], ecx
movzx ecx, byte [esi + 0x1b]
movzx eax, byte [esi + 0x1a]
shl ecx, 8
or ecx, eax
shl ecx, 8
movzx eax, byte [esi + 0x19]
or ecx, eax
movzx eax, byte [esi + 0x18]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x28], ecx
movzx ecx, byte [esi + 0x1f]
movzx eax, byte [esi + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0x1c]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x2c], ecx
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x34], ecx
movzx ecx, byte [edi + 7]
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebx + 0x38], ecx
movzx ecx, byte [edi + 0xb]
movzx eax, byte [edi + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 8]
shl ecx, 8
pop edi
or ecx, eax
mov al, 1
pop esi
mov dword [ebx + 0x3c], ecx
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
Function at 0x59f4a0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x68cc00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x10]
lea ebx, [esi + 8]
mov dword [eax], 0xffffffff
push edi
mov eax, dword [esi + 0x80c]
xor edi, edi
mov dword [ebp - 0x14], ecx
mov dword [ebx], eax
test eax, eax
je 0x59f4f5
lea edx, [esi + 0xc]
nop dword [eax + eax]
mov eax, dword [edx + 0x804]
lea edx, [edx + 4]
mov dword [edx - 4], eax
inc edi
cmp edi, dword [esi + 0x80c]
jb 0x59f4e0
cmp dword [ebx], 0
jne 0x59f519
mov eax, dword [ecx]
push str.No_sockets_exists_for_fdSetSelect.
call dword [eax + 0x14]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp + 8]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [ebp - 0xc], edx
sub ecx, eax
imul eax, ecx, 0x3e8
cmp byte [ebp + 0xc], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
je 0x59f54b
push 0
push ebx
jmp 0x59f54e
push ebx
push 0
push 0
call dword [sym.imp.WS2_32.dll_select]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x59f58e
mov ecx, dword [ebp - 0x14]
push str.select_system_call_failed.
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 4]
mov dword [ebx], 0
mov dword [esi + 0x80c], 0
test ecx, ecx
je 0x59f504
call fcn.004cba90
jmp 0x59f504
cmp dword [ebx], 0
jne 0x59f5b1
mov ecx, dword [esi + 4]
mov dword [ebx], 0
mov dword [esi + 0x80c], 0
test ecx, ecx
je 0x59f621
call fcn.004cba90
jmp 0x59f621
call fcn.004cbaa0
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x59f504
mov eax, dword [ebx]
xor ebx, ebx
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x59f611
nop
mov edx, dword [esi + 0x80c]
xor eax, eax
test edx, edx
jle 0x59f60b
mov edi, dword [esi + ebx*4 + 0xc]
lea ecx, [esi + 0x810]
cmp edi, dword [ecx]
je 0x59f5f7
inc eax
add ecx, 4
cmp eax, edx
jl 0x59f5e6
mov edi, dword [ebp - 0x10]
jmp 0x59f60b
mov ecx, dword [esi + 4]
push eax
call fcn.004cbbb0
mov edi, dword [ebp - 0x10]
mov ecx, edi
push eax
call fcn.004cba50
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x59f5d0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x59f61e
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 4], edi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005af5a8
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5a6770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
call fcn.00438b90
mov edi, eax
lea ecx, [esi + 0x20]
mov dword [ebp - 4], edi
call fcn.00438b90
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ebx, dword [ecx + edx*4]
lea edx, [ecx + edx*4]
xor ebx, dword [edi]
xor edi, edi
mov esi, dword [ebp - 4]
mov ecx, dword [edx + 4]
add esi, 8
mov dword [ebp + 8], edx
mov dword [ebp + 0xc], ecx
nop dword [eax]
mov edx, ebx
lea esi, [esi + 8]
and edx, 0xff0000
mov ecx, ebx
or edx, 0x1000000
shr ecx, 0x18
shr edx, 0x10
add edi, 2
mov edx, dword [eax + edx*4]
add edx, dword [eax + ecx*4]
mov ecx, ebx
and ecx, 0xff00
or ecx, 0x20000
shr ecx, 8
xor edx, dword [eax + ecx*4]
movzx ecx, bl
or ecx, 0x300
add edx, dword [eax + ecx*4]
xor edx, dword [esi - 0xc]
mov ecx, dword [ebp + 0xc]
xor ecx, edx
mov edx, ecx
mov dword [ebp + 0xc], ecx
and edx, 0xff0000
shr ecx, 0x18
or edx, 0x1000000
shr edx, 0x10
mov edx, dword [eax + edx*4]
add edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
and ecx, 0xff00
or ecx, 0x20000
shr ecx, 8
xor edx, dword [eax + ecx*4]
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
or ecx, 0x300
add edx, dword [eax + ecx*4]
xor edx, dword [esi - 8]
xor ebx, edx
cmp edi, 0xe
jbe 0x5a67b0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov eax, dword [eax + 0x44]
xor eax, dword [ebp + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5a6af0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x20], 0
push esi
push edi
mov dword [ebp - 0x14], ebx
lea ecx, [ebx + 4]
mov dword [ebp - 0x1c], 0
call fcn.00402f10
cdq
lea ecx, [ebx + 0x20]
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 4], eax
call fcn.00402f10
cdq
lea ecx, [ebx + 4]
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x10], eax
call fcn.00438b90
lea ecx, [ebx + 0x20]
mov dword [ebp - 0xc], eax
call fcn.00438b90
cmp dword [ebp - 4], 0
mov edi, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], 0
jle 0x5a6be5
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ebx, dword [ebp - 0xc]
mov edi, dword [ebp + 8]
lea eax, [edx + 1]
movzx ecx, byte [edx + edi]
cdq
idiv esi
shl ecx, 8
movzx esi, byte [edx + edi]
lea eax, [edx + 1]
cdq
or esi, ecx
idiv dword [ebp + 0xc]
shl esi, 8
movzx edi, byte [edx + edi]
lea eax, [edx + 1]
cdq
or edi, esi
mov esi, dword [ebp + 0xc]
idiv esi
mov eax, dword [ebp + 8]
shl edi, 8
movzx ecx, byte [edx + eax]
lea eax, [edx + 1]
cdq
or ecx, edi
idiv esi
mov eax, dword [ebp - 8]
xor dword [ebx + eax*4], ecx
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x5a6b65
mov ebx, dword [ebp - 0x14]
xor esi, esi
mov edi, dword [ebp - 0xc]
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005a6770
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, dword [ebp - 4]
jl 0x5a6bc0
mov edi, dword [ebp - 0x18]
xor esi, esi
cmp dword [ebp - 0x10], esi
jle 0x5a6c12
nop dword [eax]
push 0
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.005a6770
mov eax, dword [ebp - 0x20]
mov dword [edi + esi*4], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + esi*4 + 4], eax
add esi, 2
cmp esi, dword [ebp - 0x10]
jl 0x5a6bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8