Function at 0x5d3e80
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x64
call fcn.005f62e0
mov eax, dword [0x6c02d0]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x68]
push ebx
mov ebx, dword [esp + 0x78]
push ebp
push esi
mov esi, dword [esp + 0x78]
push edi
mov edi, dword [esp + 0x80]
push ebx
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], ebx
mov dword [esp + 0x50], 0
call fcn.00540d80
push ebx
call fcn.00540b90
push ebx
mov dword [esp + 0x3c], eax
call fcn.00540b90
push ebx
mov dword [esp + 0x3c], eax
call fcn.00540b90
mov ebp, eax
push ebx
mov dword [esp + 0x58], ebp
call fcn.00540b90
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x34], ebx
test ebx, ebx
je 0x5d43c5
push 6
lea eax, [esp + 0x5c]
push eax
push edi
call fcn.005d4cc0
add esp, 0xc
test eax, eax
je 0x5d439e
cmp eax, 6
jg 0x5d439e
lea eax, [esp + 0x58]
push eax
push esi
push ebp
call fcn.005d3a20
add esp, 0xc
test eax, eax
je 0x5d43c5
push ebp
call fcn.004deab0
add esp, 4
test eax, eax
jne 0x5d43c5
push edi
push ebx
call fcn.004de850
add esp, 8
test eax, eax
je 0x5d43c5
push ebp
call fcn.004deb80
push dword [esp + 0x38]
mov ebx, eax
mov dword [esp + 0x28], ebx
call fcn.004deb80
mov edi, dword [edi + 4]
push edi
push ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], edi
call fcn.004df780
add esp, 0x10
test eax, eax
je 0x5d43c5
mov eax, dword [ebp + 4]
mov esi, dword [ebp]
mov dword [esp + 0x48], esi
cmp eax, edi
jge 0x5d3fa9
mov ecx, dword [esp + 0x14]
lea edi, [esi + eax*4]
sub ecx, eax
xor eax, eax
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x34]
mov dword [ebp + 4], edi
call fcn.004df780
add esp, 8
test eax, eax
je 0x5d43c5
mov edx, dword [esp + 0x30]
mov ebp, dword [edx]
mov dword [esp + 0x1c], ebp
mov dword [ebp], 1
cmp edi, 1
jle 0x5d3fe5
lea ecx, [edi - 1]
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
push edi
push dword [esp + 0x30]
mov dword [edx + 4], edi
call fcn.004df780
add esp, 8
test eax, eax
je 0x5d43c5
mov eax, dword [esp + 0x2c]
mov edx, dword [eax]
mov dword [esp + 0x18], edx
test edi, edi
jle 0x5d401b
mov ecx, edi
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov dword [eax + 4], edi
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x5d4105
mov ebx, dword [esi]
test bl, 1
jne 0x5d40f9
mov ecx, dword [esp + 0x40]
lea edx, [edi - 1]
mov eax, dword [ebp]
mov ebp, eax
and ebp, 1
neg ebp
mov ecx, dword [ecx]
mov ecx, dword [ecx]
and ecx, ebp
xor eax, ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
test edx, edx
jle 0x5d40d7
mov ecx, dword [esp + 0x1c]
mov edx, esi
sub edx, ecx
mov dword [esp + 0x28], edx
lea edi, [ecx + 4]
mov ecx, 0xfffffffc
sub ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
nop word [eax + eax]
mov ecx, dword [edx + edi]
shl ecx, 0x1f
shr ebx, 1
or ecx, ebx
shr eax, 1
mov ebx, dword [esp + 0x3c]
mov dword [esi + ebx*4], ecx
mov ebx, dword [edx + edi]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
add edx, edi
mov ecx, dword [ecx]
mov edx, dword [edx + ecx + 4]
and edx, ebp
xor edx, dword [edi]
mov ecx, edx
shl ecx, 0x1f
or ecx, eax
mov eax, edx
mov edx, dword [esp + 0x14]
mov dword [edi - 4], ecx
dec edx
mov ecx, dword [esp + 0x3c]
add edi, 4
inc ecx
cmp ecx, edx
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x28]
jl 0x5d4080
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
shr ebx, 1
mov dword [esi + ecx*4], ebx
mov ebx, dword [esp + 0x20]
shr eax, 1
sub ebx, 1
mov dword [ebp + ecx*4], eax
mov dword [esp + 0x20], ebx
jne 0x5d4030
jmp 0x5d40fd
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
cmp ebx, 0x20
jg 0x5d411d
mov eax, dword [esi]
test eax, eax
je 0x5d43c5
cmp eax, 1
je 0x5d4379
cmp ebx, dword [esp + 0x38]
jge 0x5d416a
mov ebp, dword [esp + 0x44]
mov eax, ebx
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], esi
mov esi, ecx
mov ecx, dword [ebp]
mov dword [esp + 0x34], ebp
mov ebp, edx
mov edx, dword [eax]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], edx
xor edx, edx
test edi, edi
jle 0x5d4326
cmp edi, 2
jb 0x5d42dd
mov ebx, dword [esp + 0x18]
lea eax, [edi*4 - 4]
add eax, ebp
lea ecx, [ebx - 4]
lea ecx, [ecx + edi*4]
cmp ebp, ecx
ja 0x5d419c
cmp eax, ebx
jae 0x5d42dd
lea ecx, [edi - 1]
lea ecx, [esi + ecx*4]
cmp ebp, ecx
ja 0x5d41ae
cmp eax, esi
jae 0x5d42dd
mov ebx, dword [esp + 0x10]
lea ebx, [ebx + edi*4]
add ebx, 0xfffffffc
cmp ebp, ebx
ja 0x5d41c6
cmp eax, dword [esp + 0x10]
jae 0x5d42dd
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
add eax, 0xfffffffc
lea eax, [eax + edi*4]
cmp esi, eax
ja 0x5d41e2
cmp ecx, dword [esp + 0x18]
jae 0x5d42dd
cmp esi, ebx
ja 0x5d41f2
mov eax, dword [esp + 0x10]
cmp ecx, eax
jae 0x5d42e1
cmp edi, 4
jb 0x5d426d
mov eax, edi
and eax, reloc.WS2_32.dll_closesocket
jns 0x5d4205
dec eax
or eax, 0xfffffffc
inc eax
mov ecx, dword [esp + 0x10]
sub edi, eax
mov ebx, dword [esp + 0x18]
sub ecx, esi
mov dword [esp + 0x28], edi
sub ebx, esi
mov edi, ebp
mov eax, esi
sub edi, esi
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
nop dword [eax]
movups xmm0, xmmword [eax]
add edx, 4
lea eax, [eax + 0x10]
movups xmm1, xmmword [ecx + eax - 0x10]
xorps xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
movups xmm1, xmmword [ebx + eax - 0x10]
movups xmm0, xmmword [eax + ebp - 0x10]
xorps xmm1, xmm0
movups xmmword [eax + ebp - 0x10], xmm1
cmp edx, edi
jl 0x5d4230
mov edi, dword [esp + 0x14]
mov eax, edi
mov ebp, dword [esp + 0x1c]
and al, 3
cmp al, 2
jb 0x5d42d9
jmp 0x5d4273
mov ecx, dword [esp + 0x10]
sub ecx, esi
mov eax, edi
and eax, reloc.WS2_32.dll_accept
jns 0x5d4281
dec eax
or eax, 0xfffffffe
inc eax
mov ebx, dword [esp + 0x18]
sub edi, eax
sub ebx, esi
mov dword [esp + 0x28], edi
sub ebp, esi
lea eax, [esi + edx*4]
mov dword [esp + 0x24], ebp
nop word [eax + eax]
movq xmm0, qword [eax]
lea eax, [eax + 8]
movq xmm1, qword [ecx + eax - 8]
add edx, 2
xorps xmm1, xmm0
movq qword [eax - 8], xmm1
movq xmm1, qword [eax + ebx - 8]
movq xmm0, qword [eax + ebp - 8]
xorps xmm1, xmm0
movq qword [eax + ebp - 8], xmm1
cmp edx, edi
jl 0x5d42a0
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp edx, edi
jge 0x5d431e
mov eax, dword [esp + 0x10]
mov ebx, eax
lea ecx, [esi + edx*4]
mov eax, dword [esp + 0x18]
sub ebp, esi
sub eax, esi
mov dword [esp + 0x24], ebp
sub ebx, esi
mov dword [esp + 0x28], eax
sub edi, edx
mov edx, eax
nop dword [eax]
mov eax, dword [ecx + ebx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx + edx - 4]
xor dword [ecx + ebp - 4], eax
sub edi, 1
jne 0x5d4300
mov ebp, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
cmp ebx, dword [esp + 0x38]
jne 0x5d4028
lea eax, [ebx - 1]
cdq
and edx, 0x1f
lea edi, [edx + eax]
sar edi, 5
mov eax, dword [esi + edi*4]
test eax, eax
jne 0x5d4355
test edi, edi
je 0x5d4355
mov eax, dword [esi + edi*4 - 4]
dec edi
test eax, eax
je 0x5d4348
push eax
call fcn.004dec50
mov edx, dword [esp + 0x1c]
add esp, 4
mov ecx, dword [esp + 0x10]
shl edi, 5
lea ebx, [edi + eax]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x20], ebx
jmp 0x5d4028
mov ebx, dword [esp + 0x30]
push ebx
call fcn.004df580
push ebx
push dword [esp + 0x58]
call fcn.004de850
add esp, 0xc
test eax, eax
je 0x5d43c5
mov dword [esp + 0x4c], 1
jmp 0x5d43c5
call fcn.004c22a0
push str.BN_GF2m_mod
push 0x18e
push str.crypto_bn_bn_gf2m.c
call fcn.004c23a0
push 0
push 0x6a
push 3
call fcn.004c24b0
add esp, 0x18
push dword [esp + 0x54]
call fcn.00540a90
mov ecx, dword [esp + 0x74]
add esp, 4
mov eax, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005f5e48
add esp, 0x64
ret