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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov edx, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
mov ecx, edx
shr ecx, 4
mov eax, dword [ebx + 0x50]
mov dword [esp + 4], eax
mov dword [esp + 0x28], ecx
add eax, ecx
mov dword [esp + 0xc], eax
mov esi, dword [ebx + 0x54]
mov ecx, esi
adc ecx, 0
cmp edx, 0x10
setae al
mov dword [esp + 0x24], ecx
test ecx, ecx
sete cl
and cl, al
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
cmp cl, 1
jne 0x5f021b
cmp dword [ebx + 0x10], 0
je 0x5f021b
mov ecx, dword [esp + 0xc]
bsr edx, ecx
xor eax, eax
cmp ecx, 2
cmovb edx, eax
mov ecx, ebx
call fcn.005eff10
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x5f033d
mov eax, dword [ebx + 0x50]
inc eax
lea ecx, [ebx + 0x78]
lea edx, [ebx + 0x88]
push edx
push dword [ebx + 0x40]
push ecx
push eax
push dword [ebx + 8]
push dword [esp + 0x3c]
push edi
push dword [ebp + 0xc]
call dword [ebx + 0x10]
add esp, 0x20
jmp 0x5f0237
mov ecx, edx
mov dword [esp + 4], eax
xor edx, edx
test cl, 1
je 0x5f0160
xor edx, edx
mov ebx, dword [esp + 4]
mov eax, esi
nop word cs:[eax + eax]
mov ecx, eax
shld ecx, ebx, 0x1f
shr eax, 1
inc edx
test bl, 2
mov ebx, ecx
je 0x5f0150
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.005eff10
test eax, eax
je 0x5f0345
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor edx, dword [ebx + 0x7c]
mov dword [ebx + 0x7c], edx
movd xmm1, edx
xor ecx, dword [ebx + 0x78]
mov dword [ebx + 0x78], ecx
movd xmm0, ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
xor eax, dword [ebx + 0x84]
mov dword [ebx + 0x84], eax
movd xmm2, eax
xor ecx, dword [ebx + 0x80]
mov dword [ebx + 0x80], ecx
movd xmm3, ecx
mov eax, dword [esp + 8]
movups xmm4, xmmword [eax]
movaps xmmword [esp + 0x10], xmm4
movdqa xmm4, xmmword [esp + 0x10]
movdqu xmm5, xmmword [ebx + 0x88]
pxor xmm5, xmm4
movdqu xmmword [ebx + 0x88], xmm5
punpckldq xmm0, xmm1
add eax, 0x10
mov dword [esp + 8], eax
punpckldq xmm3, xmm2
punpcklqdq xmm0, xmm3
pxor xmm0, xmm4
movdqa xmmword [esp + 0x10], xmm0
push dword [ebx + 8]
lea eax, [esp + 0x14]
push eax
push eax
call dword [ebx]
add esp, 0xc
movups xmm0, xmmword [ebx + 0x78]
xorps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
movaps xmm0, xmmword [esp + 0x10]
movups xmmword [edi], xmm0
add edi, 0x10
mov edx, dword [esp + 4]
mov eax, edx
add eax, 1
adc esi, 0
cmp dword [esp + 0xc], eax
mov ecx, dword [esp + 0x24]
sbb ecx, esi
jae 0x5f0130
mov esi, dword [ebp + 0x14]
mov ecx, esi
and ecx, 0xf
je 0x5f032a
lea eax, [ebx + 0x78]
movdqu xmm0, xmmword [ebx + 0x78]
movdqu xmm1, xmmword [ebx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [ebx + 0x78], xmm1
lea edx, [esp + 0x10]
push dword [ebx + 8]
push edx
push eax
mov dword [esp + 0x10], ecx
call dword [ebx]
add esp, 0xc
and esi, 3
xor eax, eax
cmp dword [esp + 4], 4
mov ebx, dword [esp + 8]
jb 0x5f02c9
mov ecx, dword [esp + 4]
sub ecx, esi
xor eax, eax
nop word cs:[eax + eax]
movzx edx, byte [esp + eax + 0x10]
xor dl, byte [ebx + eax]
mov byte [edi + eax], dl
movzx edx, byte [esp + eax + 0x11]
xor dl, byte [ebx + eax + 1]
mov byte [edi + eax + 1], dl
movzx edx, byte [esp + eax + 0x12]
xor dl, byte [ebx + eax + 2]
mov byte [edi + eax + 2], dl
movzx edx, byte [esp + eax + 0x13]
xor dl, byte [ebx + eax + 3]
mov byte [edi + eax + 3], dl
add eax, 4
cmp ecx, eax
jne 0x5f0290
test esi, esi
je 0x5f02ef
add edi, eax
lea ecx, [esp + eax]
add ecx, 0x10
add eax, dword [esp + 8]
xor edx, edx
nop dword [eax + eax]
movzx ebx, byte [ecx + edx]
xor bl, byte [eax + edx]
mov byte [edi + edx], bl
inc edx
cmp esi, edx
jne 0x5f02e0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
mov esi, dword [esp + 4]
push esi
push dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov byte [esp + esi + 0x10], pe_nt_image_headers32
mov ebx, dword [ebp + 8]
movups xmm0, xmmword [ebx + 0x88]
xorps xmm0, xmmword [esp + 0x10]
movups xmmword [ebx + 0x88], xmm0
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x54], eax
mov eax, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x5f033d