Function at 0x578bdc
Capabilities:
Access peb ldr_data
Encrypt data using rc4 ksa
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], edx
mov ebx, eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x579188
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 7
mov eax, dword [ebp - 0x14]
call fcn.0042f8c8
mov eax, dword [ebx + 0x98]
mov edx, dword [ebp - 0x20]
call fcn.0057981c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 0x20]
call fcn.00428b68
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 0x30]
call fcn.00428b34
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 0x28]
call fcn.00428b98
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x2c]
call fcn.00428a90
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
xor edx, edx
call fcn.00428868
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov dx, word [edx + 0x18]
call fcn.0040500c
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0x6c], esi
fild dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
fmul qword [eax + 0x38]
call fcn.00403114
mov edx, eax
pop eax
call fcn.00428a50
push 0
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 0x14]
call fcn.005cc4ac
lea edx, [ebp - 0x7c]
mov ecx, 0xffffff
mov eax, dword [ebp - 0x14]
call fcn.00569d98
mov eax, dword [ebp + 0x10]
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x58]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
je 0x578d1d
mov eax, esi
mov ecx, 0x30
cdq
idiv ecx
inc eax
push eax
push 0
push 1
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
lea ecx, [ebp - 0x58]
mov edx, dword [ebp - 0x28]
mov dx, word [edx]
call fcn.0057841c
jmp 0x578d44
push 0xf00
lea eax, [ebp - 0x58]
push eax
push 1
mov eax, dword [ebp - 0x28]
call fcn.00405068
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
call fcn.00429ca0
push eax
call sub.user32.dll_DrawTextW
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
lea eax, [ebp - 0x58]
xor edx, edx
call fcn.005cc62c
pop edx
sub edx, eax
sar edx, 1
jns 0x578d61
adc edx, 0
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
lea eax, [ebp - 0x58]
xor edx, edx
call fcn.005cc640
pop edx
sub edx, eax
sar edx, 1
jns 0x578d81
adc edx, 0
mov dword [ebp - 0x64], edx
lea eax, [ebp - 0x58]
xor edx, edx
call fcn.005cc62c
add eax, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x58]
xor edx, edx
call fcn.005cc640
add eax, dword [ebp - 0x64]
mov dword [ebp - 0x5c], eax
test edi, edi
je 0x578dc6
mov dword [ebp - 0x6c], edi
fild dword [ebp - 0x6c]
mov eax, dword [ebp - 0x10]
fmul qword [eax + 0x38]
call fcn.00403114
lea edx, [ebp - 0x68]
mov ecx, eax
xor eax, eax
xchg edx, eax
call fcn.00406de8
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x578e98
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
je 0x578e0c
mov eax, esi
mov ecx, 0x30
cdq
idiv ecx
inc eax
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
push eax
push 0
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x28]
mov dx, word [edx]
call fcn.0057841c
jmp 0x578ef5
mov eax, dword [ebp - 0x14]
call fcn.00561f24
mov esi, eax
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
push eax
mov eax, esi
call fcn.0042e7d8
mov eax, dword [eax + 0xc]
pop edx
mov ecx, dword [eax]
call dword [ecx + 8]
call fcn.00578764
push 0xb04
lea eax, [ebp - 0x68]
push eax
push 1
mov eax, dword [ebp - 0x28]
call fcn.00405068
push eax
mov eax, esi
call fcn.0042e7d8
call fcn.00429ca0
push eax
call sub.user32.dll_DrawTextW
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov ecx, 0x168
cdq
idiv ecx
push edx
lea edx, [ebp - 0x7c]
mov eax, esi
call fcn.005cc4ac
lea eax, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
call fcn.00429ca0
mov edx, esi
pop ecx
call fcn.004eb9a4
mov eax, esi
call fcn.00403980
jmp 0x578ef5
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0x40], 0
je 0x578ec9
mov eax, esi
mov ecx, 0x30
cdq
idiv ecx
inc eax
push eax
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
lea ecx, [ebp - 0x68]
mov edx, dword [ebp - 0x28]
mov dx, word [edx]
call fcn.0057841c
jmp 0x578ef5
call fcn.00578764
push 0xb04
lea eax, [ebp - 0x68]
push eax
push 1
mov eax, dword [ebp - 0x28]
call fcn.00405068
push eax
mov eax, dword [ebp - 0x14]
call fcn.0042e7d8
call fcn.00429ca0
push eax
call sub.user32.dll_DrawTextW
mov esi, dword [ebx + 0x80]
cmp esi, 0x1fffffff
je 0x578f16
mov eax, esi
xor edx, edx
call fcn.0057d138
call fcn.00569d70
mov dword [ebp - 0x18], eax
jmp 0x578f3c
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 0x24]
cmp esi, 0x1fffffff
je 0x578f37
mov eax, esi
xor edx, edx
call fcn.0057d138
call fcn.00569d70
mov dword [ebp - 0x18], eax
jmp 0x578f3c
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x44], 0x1fffffff
je 0x578f83
mov esi, dword [ebx + 0x80]
cmp esi, 0x1fffffff
je 0x578f6c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
xor edx, edx
call fcn.0057d138
call fcn.00569d70
cmp esi, eax
je 0x578f83
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
xor edx, edx
call fcn.0057d138
call fcn.00569d70
mov dword [ebp - 0x1c], eax
jmp 0x578f8a
mov dword [ebp - 0x1c], 0x1fffffff
lea ecx, [ebp - 8]
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.00556830
test al, al
je 0x57916b
cmp dword [ebp - 0x1c], 0x1fffffff
jne 0x57901f
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
dec eax
test eax, eax
jl 0x57916b
inc eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
imul dword [ebp - 0x24]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
dec esi
test esi, esi
jl 0x579012
inc esi
xor edi, edi
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
xor edx, edx
mov dl, byte [eax + 2]
xor ecx, ecx
mov cl, byte [eax + 1]
add ecx, ecx
add edx, ecx
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
shr edx, 2
push edx
mov dl, 0xff
pop ecx
sub dl, cl
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov byte [eax + 3], dl
inc edi
dec esi
jne 0x578fe3
inc dword [ebp - 0x24]
dec dword [ebp - 0x48]
jne 0x578fc5
jmp 0x57916b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x20]
mov esi, eax
dec esi
xor eax, eax
mov al, byte [ebp - 0x1c]
mov dl, byte [ebp - 0x18]
xor ecx, ecx
mov cl, dl
sub eax, ecx
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
mov dword [ebp - 0x80], esi
fild dword [ebp - 0x80]
fdivp st(1)
fstp dword [ebp - 0x3c]
wait
xor eax, eax
mov al, byte [ebp - 0x1b]
mov cl, byte [ebp - 0x17]
xor ebx, ebx
mov bl, cl
sub eax, ebx
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
mov dword [ebp - 0x80], esi
fild dword [ebp - 0x80]
fdivp st(1)
fstp dword [ebp - 0x40]
wait
movzx edi, byte [ebp - 0x1a]
mov al, byte [ebp - 0x16]
xor ebx, ebx
mov bl, al
sub edi, ebx
mov dword [ebp - 0x6c], edi
fild dword [ebp - 0x6c]
mov dword [ebp - 0x80], esi
fild dword [ebp - 0x80]
fdivp st(1)
fstp dword [ebp - 0x44]
wait
and edx, 0xff
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x30]
wait
xor edx, edx
mov dl, cl
mov dword [ebp - 0x6c], edx
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x34]
wait
and eax, 0xff
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
fstp dword [ebp - 0x38]
wait
test esi, esi
jl 0x57916b
inc esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x24], 0
fld dword [ebp - 0x30]
call fcn.00403114
mov byte [ebp - 0x2c], al
fld dword [ebp - 0x34]
call fcn.00403114
mov byte [ebp - 0x2b], al
fld dword [ebp - 0x38]
call fcn.00403114
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 8]
imul dword [ebp - 0x24]
add eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov esi, eax
dec esi
test esi, esi
jl 0x579141
inc esi
xor edi, edi
mov eax, dword [ebp - 0xc]
lea eax, [eax + edi*4]
xor edx, edx
mov dl, byte [eax + 2]
xor ecx, ecx
mov cl, byte [eax + 1]
add ecx, ecx
add edx, ecx
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
shr edx, 2
push edx
mov dl, 0xff
pop ecx
sub dl, cl
test dl, dl
jne 0x579135
xor ecx, ecx
mov dword [eax], ecx
jmp 0x57913a
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov byte [eax + 3], dl
inc edi
dec esi
jne 0x579108
fld dword [ebp - 0x30]
fadd dword [ebp - 0x3c]
fstp dword [ebp - 0x30]
wait
fld dword [ebp - 0x34]
fadd dword [ebp - 0x40]
fstp dword [ebp - 0x34]
wait
fld dword [ebp - 0x38]
fadd dword [ebp - 0x44]
fstp dword [ebp - 0x38]
wait
inc dword [ebp - 0x24]
dec dword [ebp - 0x48]
jne 0x5790c9
push ebp
call fcn.00578768
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57918f
lea eax, [ebp - 0x28]
call fcn.00404efc
ret