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

Disassembly:
sub esp, 0xf4
mov eax, dword [0x5eef00]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebp
mov ebp, dword [esp + 0xfc]
or eax, 0xffffffff
test ebp, ebp
mov dword [esp + 0x18], eax
je 0x582c16
mov eax, dword [ebp + 0xd90]
cmp eax, 5
push ebx
push esi
push edi
lea esi, [ebp + 0xd30]
lea edi, [ebp + 0xc90]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0xcc0]
lea esi, [ebp + 0xd60]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
lea ebx, [ebp + 0xc70]
lea esi, [ebp + 0xd10]
mov ecx, 8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0xc50]
lea esi, [ebp + 0xcf0]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
jae 0x582c0f
shl eax, 5
cmp word [eax + 0x5bc458], 0xffff
je 0x582c0f
mov edi, dword [esp + 0x10c]
mov esi, ebp
call fcn.0057f980
test eax, eax
jne 0x582c0f
mov esi, dword [ebp + 0xda8]
add esi, dword [ebp + 0xd9c]
add esi, esi
cmp word [ebp + 0x1054], 0x301
mov dword [esp + 0x10], esi
jne 0x5825bf
mov eax, dword [ebp + 0xdbc]
lea ecx, [esi + eax*2]
mov dword [esp + 0x10], ecx
mov esi, ecx
push esi
call fcn.004772c0
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x582c0f
test ebx, ebx
je 0x582bf9
lea eax, [ebp + 0xc50]
test eax, eax
je 0x582bf9
lea edi, [ebp + 0xcc0]
test edi, edi
je 0x582bf9
mov edx, dword [str.key_expansion]
mov ecx, dword [0x5bc590]
mov dword [esp + 0xb0], edx
mov edx, dword [0x5bc594]
push 0x20
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], ecx
mov cl, byte [0x5bc598]
push eax
lea edx, [esp + 0xc5]
push edx
mov byte [esp + 0xc8], cl
call fcn.004b42c0
push 0x20
lea eax, [esp + 0xed]
push ebx
push eax
call fcn.004b42c0
add esp, 0x18
cmp word [ebp + 0x1054], 0x303
jb 0x5827e7
lea ecx, [esp + 0xb0]
test ecx, ecx
je 0x582bf9
test esi, esi
je 0x582bf9
push 0x20
lea edx, [esp + 0x50]
push edx
push 0x30
push edi
mov eax, ecx
push 0x4d
push eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], 0xffffffff
call fcn.004cbed0
add esp, 0x18
test eax, eax
jne 0x582bf9
push 0x6d
call fcn.004772c0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x582bf9
test esi, esi
jbe 0x582767
mov ecx, 8
lea esi, [esp + 0x4c]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x4d
lea ecx, [esp + 0xb4]
push ecx
lea eax, [ebx + 0x20]
push eax
call fcn.004b42c0
push 0x20
lea edx, [esp + 0xa0]
push edx
push 0x30
lea esi, [ebp + 0xcc0]
push esi
push 0x6d
push ebx
call fcn.004cbed0
add esp, 0x24
test eax, eax
jne 0x5827c5
push 0x20
lea eax, [esp + 0x50]
push eax
push 0x30
push esi
mov ecx, eax
push 0x20
push ecx
call fcn.004cbed0
add esp, 0x18
test eax, eax
jne 0x5827c5
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, edi
sub eax, esi
cmp eax, 0x20
jbe 0x58273b
mov eax, 0x20
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x94]
push edx
lea ecx, [esi + eax]
push ecx
call fcn.004b42c0
add esi, 0x20
add esp, 0xc
cmp esi, edi
mov dword [esp + 0x14], esi
jb 0x5826c0
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
xor edi, edi
jmp 0x5827cd
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x10]
push 0x6d
push 0
push ebx
call fcn.004b3a80
push ebx
call fcn.00477540
add esp, 0x10
test edi, edi
jmp 0x582ae4
lea edx, [esp + 0xb0]
test edx, edx
mov dword [esp + 0x1c], 0xffffffff
je 0x582bf9
test esi, esi
je 0x582bf9
push esi
call fcn.004772c0
add esp, 4
test eax, eax
mov dword [esp + 0x14], eax
je 0x582bf9
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0x18
lea edi, [ebp + 0xcc0]
push edi
lea ecx, [esp + 0xc0]
push 0x4d
push ecx
xor ebx, ebx
mov dword [esp + 0x38], 0xffffffff
call fcn.004cbb40
add esp, 0x18
test eax, eax
jne 0x582ac9
push 0x5d
call fcn.004772c0
mov esi, eax
add esp, 4
test esi, esi
je 0x582ac5
cmp dword [esp + 0x10], ebx
jbe 0x582905
lea ecx, [ecx]
mov edx, dword [esp + 0x28]
mov dword [esi], edx
mov eax, dword [esp + 0x2c]
mov dword [esi + 4], eax
mov ecx, dword [esp + 0x30]
push 0x4d
lea eax, [esp + 0xb4]
push eax
mov dword [esi + 8], ecx
mov edx, dword [esp + 0x3c]
lea eax, [esi + 0x10]
push eax
mov dword [esi + 0xc], edx
call fcn.004b42c0
push 0x10
lea ecx, [esp + 0x7c]
push ecx
push 0x18
push edi
push 0x5d
push esi
call fcn.004cbb40
add esp, 0x24
test eax, eax
jne 0x58292b
push 0x10
lea edx, [esp + 0x2c]
push edx
push 0x18
push edi
mov eax, edx
push 0x10
push eax
call fcn.004cbb40
add esp, 0x18
test eax, eax
jne 0x58292b
mov eax, dword [esp + 0x10]
sub eax, ebx
cmp eax, 0x10
jbe 0x5828e2
mov eax, 0x10
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x70]
push ecx
lea eax, [ebx + edx]
push eax
call fcn.004b42c0
add ebx, 0x10
add esp, 0xc
cmp ebx, dword [esp + 0x10]
jb 0x582870
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
xor ebx, ebx
jmp 0x58292f
mov ebx, dword [esp + 0x20]
push 0x5d
push 0
push esi
call fcn.004b3a80
push esi
call fcn.00477540
add esp, 0x10
test ebx, ebx
jne 0x582ac5
add edi, 0x18
test edi, edi
mov dword [esp + 0x20], 0xffffffff
je 0x582ac5
push 0x14
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push edi
lea edx, [esp + 0xc0]
push 0x4d
push edx
call fcn.004cbd00
add esp, 0x18
test eax, eax
jne 0x582ac5
push 0x61
call fcn.004772c0
mov esi, eax
add esp, 4
test esi, esi
je 0x582ac5
cmp dword [esp + 0x10], ebx
jbe 0x582a46
nop
mov eax, dword [esp + 0x38]
mov dword [esi], eax
mov ecx, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov edx, dword [esp + 0x40]
mov dword [esi + 8], edx
mov eax, dword [esp + 0x44]
mov dword [esi + 0xc], eax
mov ecx, dword [esp + 0x48]
push 0x4d
lea edx, [esp + 0xb4]
push edx
lea eax, [esi + 0x14]
push eax
mov dword [esi + 0x10], ecx
call fcn.004b42c0
push 0x14
lea eax, [esp + 0x8c]
push eax
push 0x18
push edi
push 0x61
push esi
call fcn.004cbd00
add esp, 0x24
test eax, eax
jne 0x582a80
push 0x14
lea ecx, [esp + 0x3c]
push ecx
push 0x18
push edi
mov edx, ecx
push 0x14
push edx
call fcn.004cbd00
add esp, 0x18
test eax, eax
jne 0x582a80
mov eax, dword [esp + 0x10]
sub eax, ebx
cmp eax, 0x14
jbe 0x582a20
mov eax, 0x14
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x80]
push eax
lea edx, [ebx + ecx]
push edx
call fcn.004b42c0
add ebx, 0x14
add esp, 0xc
cmp ebx, dword [esp + 0x10]
jb 0x5829a0
xor eax, eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
xor edi, edi
jmp 0x582a84
mov edi, dword [esp + 0x20]
push 0x61
push 0
push esi
call fcn.004b3a80
push esi
call fcn.00477540
add esp, 0x10
test edi, edi
jne 0x582ac5
mov esi, dword [esp + 0x10]
test esi, esi
jbe 0x582abd
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
sub ecx, eax
lea ecx, [ecx]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x582ab0
mov dword [esp + 0x1c], 0
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
push esi
push 0
push edi
call fcn.004b3a80
push edi
call fcn.00477540
add esp, 0x10
cmp dword [esp + 0x1c], 0
jne 0x582bf9
mov eax, dword [ebp + 0xd9c]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 0xd98]
push eax
push ecx
push edx
call fcn.004b42c0
mov esi, dword [ebp + 0xd9c]
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp + 0xd94]
push esi
lea eax, [esi + edi]
push eax
push ecx
call fcn.004b42c0
add esi, dword [ebp + 0xd9c]
mov edx, dword [ebp + 0xda8]
mov ecx, dword [ebp + 0xda4]
push edx
lea eax, [esi + edi]
push eax
push ecx
call fcn.004b42c0
mov eax, dword [ebp + 0xda8]
add esi, eax
push eax
mov eax, dword [ebp + 0xda0]
lea edx, [esi + edi]
push edx
push eax
call fcn.004b42c0
add esi, dword [ebp + 0xda8]
add esp, 0x30
cmp word [ebp + 0x1054], 0x301
jne 0x582bb5
mov eax, dword [ebp + 0xdbc]
test eax, eax
jbe 0x582bb5
mov edx, dword [ebp + 0xdb4]
push eax
lea ecx, [esi + edi]
push ecx
push edx
call fcn.004b42c0
mov eax, dword [ebp + 0xdbc]
mov ecx, dword [ebp + 0xdac]
push eax
add esi, eax
lea eax, [esi + edi]
push eax
mov ebx, 1
push ecx
mov dword [ebp + 0xdb8], ebx
call fcn.004b42c0
add esp, 0x18
add esi, dword [ebp + 0xdbc]
mov dword [ebp + 0xdb0], ebx
cmp dword [esp + 0x10], esi
jne 0x582bf5
mov ecx, dword [esp + 0x10c]
cmp ecx, dword [ebp]
jne 0x582bcf
mov eax, dword [ebp + 0xda4]
jmp 0x582bd5
mov eax, dword [ebp + 0xda0]
mov ebx, dword [ebp + 0xda8]
push ecx
push eax
mov esi, ebp
call fcn.0057f810
mov esi, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x582bf9
mov dword [esp + 0x24], eax
jmp 0x582bf9
mov esi, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push 0
push esi
call fcn.004b3a80
push esi
call fcn.00477540
add esp, 0x10
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
pop ebp
xor ecx, esp
call fcn.004b2f95
add esp, 0xf4
ret