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

Disassembly:
mov eax, 0x28
call fcn.004a0d90
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push ebx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
push ebp
push esi
mov esi, dword [eax]
push edi
mov edi, dword [esp + 0x4c]
movzx edx, byte [edi + 1]
mov dword [esp + 0x18], ecx
movzx ecx, byte [edi]
shl edx, 8
or ecx, edx
lea eax, [edi + 1]
movzx edx, byte [eax + 1]
mov dword [esp + 0x28], eax
inc eax
inc eax
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax]
inc eax
movzx ebx, byte [eax + 1]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax]
inc eax
mov ebp, dword [esp + 0x40]
inc eax
shl ebx, 8
or edx, ebx
movzx ebx, byte [eax + 1]
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
mov eax, ecx
shr eax, 8
shl ebx, 0x10
or edx, ebx
mov byte [esp + 0x2d], al
mov eax, ecx
mov ebx, ecx
mov byte [esp + 0x2c], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [esp + 0x2e], al
mov byte [esp + 0x2f], cl
mov ecx, edx
mov eax, edx
mov dword [esp + 0x20], edx
mov byte [esp + 0x30], dl
shr ecx, 8
shr eax, 0x10
shr edx, 0x18
cmp dword [esp + 0x44], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
je 0x588600
dec dword [esp + 0x18]
test esi, esi
jne 0x58856c
mov ecx, dword [esp + 0x24]
push 1
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0053ef00
mov ebx, dword [esp + 0x28]
mov eax, ebx
shr eax, 8
mov ecx, ebx
shr ecx, 0x10
mov edx, ebx
shr edx, 0x18
mov byte [esp + 0x39], al
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x3a], cl
mov byte [esp + 0x3b], dl
mov ecx, eax
mov edx, eax
mov byte [esp + 0x3c], al
shr ecx, 8
shr edx, 0x10
shr eax, 0x18
add esp, 0xc
inc dword [esp + 0x10]
mov byte [esp + 0x2c], bl
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], dl
mov byte [esp + 0x33], al
mov cl, byte [esp + esi + 0x2c]
mov eax, dword [esp + 0x3c]
xor cl, byte [eax]
inc esi
mov byte [ebp], cl
inc eax
inc ebp
and esi, 7
cmp dword [esp + 0x18], 0
mov dword [esp + 0x3c], eax
jne 0x588508
cmp dword [esp + 0x10], 0
je 0x5885e7
mov eax, dword [esp + 0x28]
mov byte [edi], bl
mov edx, ebx
shr edx, 8
mov byte [eax], dl
inc eax
mov ecx, ebx
shr ecx, 0x10
mov byte [eax], cl
mov ecx, dword [esp + 0x20]
inc eax
shr ebx, 0x18
mov byte [eax], bl
mov byte [eax + 1], cl
inc eax
inc eax
mov edx, ecx
shr edx, 8
mov byte [eax], dl
inc eax
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
shr ecx, 0x18
mov byte [eax + 1], cl
mov eax, dword [esp + 0x14]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00499a1c
add esp, 0x28
ret
mov ecx, dword [esp + 0x14]
pop edi
mov dword [ecx], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00499a1c
add esp, 0x28
ret
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00499a1c
add esp, 0x28
ret
Function at 0x58bcc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x18
call fcn.004a0d90
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
push ebp
mov ebp, dword [esp + 0x20]
mov dword [esp + 0xc], eax
test edx, edx
jle 0x58bd53
mov eax, dword [esp + 0x28]
push ebx
push esi
push edi
mov esi, eax
lea edi, [esp + 0x1c]
mov ebx, ecx
sub esi, edi
sub ebx, eax
mov dword [esp + 0x10], edx
mov edi, edi
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push ebp
call fcn.0058aa40
add esp, 0xc
xor ecx, ecx
lea edi, [esi + ebx]
jmp 0x58bd30
lea edx, [esp + ecx + 0x1c]
mov al, byte [esi + edx]
xor al, byte [edx]
inc ecx
cmp ecx, 8
mov byte [esp + ecx + 0x13], al
mov byte [edi + edx], al
jl 0x58bd30
add esi, 8
sub dword [esp + 0x10], 1
jne 0x58bd10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
pop ebp
xor ecx, esp
call fcn.00499a1c
add esp, 0x18
ret
Function at 0x58d090
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.004a0d90
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x78]
mov edx, dword [ebx + 4]
push ebp
mov ebp, dword [ebx]
push esi
push edi
lea esi, [ebx + 0x10]
mov ecx, 8
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x30]
mov ecx, 8
lea edi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x58d19a
xor eax, eax
push ecx
lea ecx, [ebx + 0x50]
push ecx
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.004a26d0
mov eax, dword [ebx + 8]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x6c]
call fcn.0058c8c0
add esp, 0x10
xor ecx, ecx
xor eax, eax
mov edi, edi
movzx esi, byte [esp + eax + 0x1c]
movzx edx, byte [esp + eax + 0x3c]
add esi, ecx
movzx ecx, byte [esp + eax + 0x1d]
add edx, esi
mov byte [esp + eax + 0x3c], dl
sar edx, 8
add ecx, edx
movzx edx, byte [esp + eax + 0x3d]
add ecx, edx
movzx edx, byte [esp + eax + 0x1e]
mov byte [esp + eax + 0x3d], cl
sar ecx, 8
add edx, ecx
movzx ecx, byte [esp + eax + 0x3e]
add edx, ecx
movzx ecx, byte [esp + eax + 0x1f]
mov byte [esp + eax + 0x3e], dl
sar edx, 8
add ecx, edx
movzx edx, byte [esp + eax + 0x3f]
add ecx, edx
mov byte [esp + eax + 0x3f], cl
add eax, 4
sar ecx, 8
cmp eax, 0x20
jl 0x58d130
mov eax, dword [ebx + 0xc]
cdq
add ebp, eax
adc dword [esp + 0x18], edx
mov edx, dword [esp + 0x18]
xor eax, eax
shld edx, ebp, 3
add ebp, ebp
add ebp, ebp
add ebp, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea esi, [esp + 0x1c]
mov eax, ebp
test edx, edx
jl 0x58d1ea
jg 0x58d1d6
test eax, eax
jbe 0x58d1ea
mov byte [esi], al
mov cl, 8
inc esi
call fcn.005d7ab0
test edx, edx
jg 0x58d1d6
jl 0x58d1ea
test eax, eax
ja 0x58d1d6
mov eax, dword [ebx + 8]
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x60]
call fcn.0058c8c0
mov ecx, dword [ebx + 8]
push ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x64]
call fcn.0058c8c0
mov edi, dword [esp + 0x18]
add esp, 8
mov ecx, 8
lea esi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00499a1c
add esp, 0x70
ret
Function at 0x593230
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x593242
xor eax, eax
pop edi
ret
push ebx
push esi
push edi
call fcn.005013d0
mov ebx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x1c]
add esp, 4
mov dword [eax], esi
test ebx, ebx
je 0x5932f2
mov eax, dword [edi + 0x10c]
push ebp
cmp eax, esi
jne 0x593290
test esi, esi
jle 0x5932d1
mov ecx, ebx
lea eax, [edi + 0x8c]
mov ebp, esi
lea ebx, [ebx]
mov dl, byte [eax + 0x60]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x593280
jmp 0x5932d1
mov ecx, esi
sub ecx, eax
cmp ecx, 1
mov byte [eax + edi + 0xec], 0x80
jle 0x5932b5
dec ecx
push ecx
lea eax, [eax + edi + 0xed]
push 0
push eax
call fcn.004a0660
add esp, 0xc
test esi, esi
jle 0x5932d1
mov ecx, ebx
lea eax, [edi + 0xac]
mov ebp, esi
mov dl, byte [eax + 0x40]
xor dl, byte [eax]
inc eax
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x5932c3
push esi
push ebx
push ebx
push edi
call fcn.005255f0
add esp, 0x10
pop ebp
test eax, eax
jne 0x5932f2
push esi
push ebx
call fcn.005105e0
add esp, 8
pop esi
pop ebx
xor eax, eax
pop edi
ret
pop esi
pop ebx
mov eax, 1
pop edi
ret
Function at 0x5a44d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x5a44e9
mov esi, ebx
mov ebx, eax
jmp 0x5a44eb
mov esi, eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jg 0x5a44fb
mov eax, edi
jmp 0x5a4505
push eax
push edi
call fcn.00505da0
add esp, 8
test eax, eax
jne 0x5a450d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x5a4529
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x5a4514
cmp eax, dword [esi + 4]
jge 0x5a4540
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x5a4530
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
test eax, eax
jle 0x5a4561
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x5a455e
dec eax
test eax, eax
jg 0x5a4550
mov dword [edi + 4], eax
cmp dword [edi + 4], 0
jne 0x5a456e
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x5a47e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov eax, 4
call fcn.004a0d90
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor ebp, ebp
push ebx
mov dword [esp + 0x10], ebp
call fcn.00538d90
push ebx
call fcn.00538e20
mov esi, eax
add esp, 8
test esi, esi
je 0x5a4a11
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi + 4]
add eax, eax
cmp eax, dword [esi + 8]
jg 0x5a4823
mov eax, esi
jmp 0x5a482d
push eax
push esi
call fcn.00505da0
add esp, 8
test eax, eax
je 0x5a4a10
mov ecx, dword [edi + 4]
sub ecx, 1
js 0x5a49c4
mov eax, dword [edi]
mov eax, dword [eax + ecx*4]
mov edx, eax
shr edx, 1
and edx, 0x8000
mov ebp, eax
and ebp, 0x20000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x40000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x80000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x100000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x200000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x400000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x800000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x1000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x2000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x4000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x8000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x10000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x20000000
or edx, ebp
shr edx, 1
mov ebp, eax
and ebp, 0x40000000
or edx, ebp
shr edx, 1
and eax, reloc.WS2_32.dll_accept
or edx, eax
mov eax, dword [esi]
shr edx, 1
mov dword [eax + ecx*8 + 4], edx
mov edx, dword [edi]
mov eax, dword [edx + ecx*4]
mov edx, eax
and edx, 0x8000
add edx, edx
mov ebp, eax
and ebp, 0x4000
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x2000
or edx, ebp
mov ebp, eax
add edx, edx
and ebp, 0x1000
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x800
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x400
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x200
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x100
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x80
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x40
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x20
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 0x10
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 8
or edx, ebp
add edx, edx
mov ebp, eax
and ebp, 4
or edx, ebp
mov ebp, eax
add edx, edx
and ebp, 2
or edx, ebp
and eax, 1
add edx, edx
or edx, eax
sub ecx, 1
mov eax, dword [esi]
mov dword [eax + ecx*8 + 8], edx
jns 0x5a4841
mov ebp, dword [esp + 0x10]
mov eax, dword [edi + 4]
add eax, eax
mov dword [esi + 4], eax
test eax, eax
jle 0x5a49e7
mov ecx, dword [esi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x5a49e4
dec eax
test eax, eax
jg 0x5a49d6
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
jne 0x5a49f4
mov dword [esi + 0xc], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
call fcn.005a4580
add esp, 0xc
test eax, eax
je 0x5a4a10
mov ebp, 1
pop edi
push ebx
call fcn.00538de0
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x5c58f0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc
call fcn.004a0d90
push ebp
push esi
mov esi, dword [esp + 0x54]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
xor ebp, ebp
push ebp
xor edi, edi
call fcn.005acc00
add esp, 0xc
test eax, eax
je 0x5c594c
lea esp, [esp]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
shl edx, 0xa
test eax, edx
je 0x5c5930
inc edi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
inc ebp
push ebp
call fcn.005acc00
add esp, 0xc
test eax, eax
jne 0x5c5920
test edi, edi
jne 0x5c5970
push 0x109
push str.._ssl_t1_enc.c
push 0x44
push 0x11c
push 0x14
call fcn.004fb700
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
mov eax, dword [esp + 0x4c]
cdq
idiv edi
push ebx
mov ebx, eax
cmp edi, 1
jne 0x5c5987
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x4c]
push esi
push 0
push eax
call fcn.004a0660
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
mov dword [esp + 0x30], 0
call fcn.005acc00
add esp, 0x18
test eax, eax
je 0x5c5a6f
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
shl eax, 0xa
test ecx, eax
je 0x5c5a4b
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5c5a7c
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
push esi
push ebp
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x5c]
and edx, 1
add edx, ebx
push edx
mov edx, dword [esp + 0x68]
push edi
push eax
call fcn.005c54f0
add esp, 0x34
test eax, eax
je 0x5c5a9a
add edi, ebx
test esi, esi
jle 0x5c5a4b
mov eax, dword [esp + 0x54]
mov ecx, ebp
sub ecx, eax
mov ebp, esi
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
sub ebp, 1
jne 0x5c5a40
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
inc eax
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.005acc00
add esp, 0xc
test eax, eax
jne 0x5c59c0
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0xc
ret
push 0x114
push str.._ssl_t1_enc.c
push 0x146
push 0x11c
push 0x14
call fcn.004fb700
add esp, 0x14
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x5c7c50
Capabilities:
Encode data using xor

Disassembly:
mov eax, 4
call fcn.004a0d90
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 8]
mov ecx, dword [eax + 0x64]
inc ebp
test byte [ecx + 0x38], 1
je 0x5c7c98
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
lea edx, [ecx + ebp]
cmp edx, eax
jbe 0x5c7c8b
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret
add dword [esi + 0xc], ecx
add dword [esi + 0x10], ecx
sub eax, ecx
mov dword [esi + 4], eax
jmp 0x5c7ca3
mov eax, dword [esp + 0x18]
cmp ebp, dword [eax + 4]
ja 0x5c7c84
mov esi, eax
test dword [edi + 0x100], 0x200
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push ebx
movzx ebx, byte [ecx + edx - 1]
je 0x5c7cf6
cmp dword [edi + 0x88], 0
jne 0x5c7cf6
mov eax, dword [edi + 0x58]
push 8
add eax, 8
push 0x627bb4
push eax
call fcn.0050e720
add esp, 0xc
test eax, eax
jne 0x5c7ce9
test bl, 1
jne 0x5c7ce9
mov eax, dword [edi + 0x58]
or dword [eax], 8
mov ecx, dword [edi + 0x58]
test byte [ecx], 8
je 0x5c7cf6
test ebx, ebx
jbe 0x5c7cf6
dec ebx
mov edx, dword [edi + 0x80]
mov eax, dword [edx]
push eax
call fcn.00525600
add esp, 4
test eax, 0x200000
je 0x5c7d21
or ecx, 0xffffffff
sub ecx, ebx
add dword [esi + 4], ecx
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
mov edi, dword [esi + 4]
lea eax, [ebx + ebp]
mov esi, edi
sub esi, eax
xor esi, eax
mov edx, edi
xor edx, eax
or esi, edx
xor esi, edi
shr esi, 0x1f
mov ecx, 0xff
lea eax, [edi - 1]
dec esi
mov dword [esp + 0x18], ecx
cmp eax, ecx
jae 0x5c7d4f
mov ecx, eax
mov dword [esp + 0x18], eax
xor ebp, ebp
test ecx, ecx
jbe 0x5c7da7
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0xc]
mov ecx, ebx
shr ecx, 0x1f
lea eax, [edi + edx - 1]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, ebx
sub edx, ebp
shr edx, 0x1f
mov eax, ebp
shr eax, 0x1f
xor dl, al
xor cl, al
or dl, cl
mov ecx, dword [esp + 0x10]
xor dl, cl
dec dl
movzx eax, dl
mov edx, dword [esp + 0x24]
movzx edx, byte [edx]
dec dword [esp + 0x24]
xor edx, ebx
and eax, edx
not eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0x18]
jb 0x5c7d70
mov edx, dword [esp + 0x1c]
not esi
and esi, 0xff
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
neg ecx
lea eax, [ebx + 1]
and eax, ecx
sub edi, eax
shl eax, 8
or dword [edx], eax
pop ebx
mov dword [edx + 4], edi
mov eax, ecx
pop edi
and eax, 1
not ecx
pop esi
or eax, ecx
pop ebp
pop ecx
ret
Function at 0x5c7de0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.004a0d90
mov eax, dword [0x658aa8]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
cmp ebx, edi
jae 0x5c7e4a
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.0050e6f0
add esp, 0xc
cmp edi, 0x40
jbe 0x5c7e66
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.0050e6f0
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jbe 0x5c7e90
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.004a0660
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x5c7f6f
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x5c7f08
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
dec al
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
inc dword [esp + 0x10]
and al, dl
dec cl
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x5c7f00
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x5c7fa6
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc ebx
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
inc eax
and ebx, edx
cmp eax, edi
jb 0x5c7f75
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00499a1c
add esp, 0xa4
ret
Function at 0x5d7ce0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.004fd2c0
add esp, 8
test esi, esi
jg 0x5d7d3e
je 0x5d7d1c
cmp esi, 0xffffffff
jne 0x5d7d3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 4
je 0x5d7d33
cmp eax, 0xb
je 0x5d7d33
cmp eax, 0x2733
jne 0x5d7d3e
push 0xa
push edi
call fcn.004fd2e0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x5d8630
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [ebx + 0x20]
cmp dword [esi], 6
je 0x5d8647
call fcn.005d7ff0
test eax, eax
jle 0x5d8690
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [ebx + 0x1c]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push ebx
mov esi, eax
call fcn.004fd2c0
add esp, 8
test esi, esi
jg 0x5d868e
push esi
call fcn.005d7c40
add esp, 4
test eax, eax
je 0x5d868e
push 0xa
push ebx
call fcn.004fd2e0
add esp, 8
mov eax, esi
pop esi
pop ebx
ret

Function at 0x5da830
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jge 0x5da871
push 0x248
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004fb700
add esp, 0x14
xor eax, eax
test esi, esi
sete al
pop esi
ret

Function at 0x5da880
Capabilities:
Resolve dns

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
push edi
push esi
mov ecx, ebp
mov ebx, 1
call fcn.005da770
mov edi, eax
add esp, 4
test edi, edi
jge 0x5da8bf
push 0x88
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004fb700
add esp, 0x14
jmp 0x5da97d
call fcn.005da6f0
cmp eax, 1
jne 0x5da98d
test edi, edi
jle 0x5da8d8
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
push 0xa1
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.0050e750
add esp, 0x10
push ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x5da913
push 0xa7
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004fb700
add esp, 0x14
jmp 0x5da963
cmp word [eax + 8], 2
je 0x5da934
push 0xae
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004fb700
add esp, 0x14
jmp 0x5da963
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx]
mov byte [esi], cl
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov dl, byte [ecx + 1]
mov byte [esi + 1], dl
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
movzx ecx, byte [edx + 2]
mov byte [esi + 2], cl
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
mov byte [esi + 3], cl
xor ebx, ebx
push 0xb7
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.0050e750
add esp, 0x10
test ebx, ebx
je 0x5da994
push ebp
push str.host
push 2
call fcn.004fb9d0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret