Function at 0x81fd25
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
push edi
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x87]
mov byte [ebp - 0x88], 0
mov byte [ebp - 0x288], 0
rep stosd dword es:[edi], eax
fld qword [0x88b578]
fld qword [0x88b578]
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x287]
xor ebx, ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
fld st(0)
fmul st(1)
fld st(0)
fmul qword [0x8a5798]
fsub st(1)
fxch st(1)
fmul qword [0x899d38]
fadd qword [0x89d6c8]
fdivp st(1)
faddp st(2)
fld st(1)
fcomp qword [0x8a5790]
fnstsw ax
test ah, 0x41
jne 0x81fcfc
fld st(0)
fmul qword [0x8a5788]
fsubp st(2)
fadd qword [0x892528]
fcom qword [0x8a5780]
fnstsw ax
test ah, 1
jne 0x81fcc3
fxch st(1)
fst qword [ebp - 0x54]
fxch st(1)
fstp st(0)
fcomp qword [0x88b578]
fnstsw ax
test ah, 1
je 0x81fd68
jp 0x81fda1
inc edi
daa
push esp
dec edx
and dh, byte [ebp + 0x3d]
cmp byte [ebx], dh
sub dword [esi + 0x32], edx
pop edi
pop edx
pop edx
outsd dx, dword [esi]
dec edx
dec eax
insb byte es:[edi], dx
jne 0x81fdb0
insd dword es:[edi], dx
outsd dx, dword [esi]
insb byte es:[edi], dx
aaa
daa
push cs
test eax, 0xad1bb10e
push cs
mov al, 0x1c
scasd eax, dword es:[edi]
adc ch, byte [ebx - 0x5aec4eed]
adc eax, 0x10a312b0
stosd dword es:[edi], eax
push ss
lodsb al, byte [esi]
adc ebp, dword [edx + ebx + 0xfb015ac]
test al, 0xe9
sbb dword [eax], ecx
add byte [eax], al
mov dword [ebp - 0x38], 0x81fd43
mov dword [ebp - 0x34], 0x81fd25
xor eax, eax
mov byte [ebp + eax - 0x188], al
inc eax
cmp eax, 0x100
jb 0x81fd78
fld qword [ebp - 0x54]
mov byte [ebp - 8], 0
mov eax, 0xff
mov esi, dword [ebp - 8]
xor edi, edi
mov dword [ebp - 0x1c], eax
jmp 0x81fd9f
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov ebx, 1
cmp eax, ebx
jbe 0x81fdb3
call 0x81ff61
add byte [ebx], bh
ret
lea ebx, [ebx + ebx + 1]
cmp ebx, eax
jb 0x81fdab
fdiv dword [edx - 8]
cmp edi, 3
ja case.default.0x81fdb8
jmp dword [edi*4 + 0x820750]
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x188]
jmp 0x81fe34
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x188]
shr eax, 8
jmp 0x81fe34
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x188]
shr eax, 0x10
jmp 0x81fe34
fld st(0)
and esi, 0xff
call fcn.008397f4
mov cl, byte [ebp + esi - 0x188]
shr eax, 0x18
jmp 0x81fe34
mov eax, dword [ebp - 0x34]
and esi, 0xff
mov cl, byte [eax + edi - 4]
mov al, byte [ebp + esi - 0x188]
add cl, al
inc edi
cmp edi, 0x22
mov byte [ebp - 8], cl
jb 0x81fe47
xor edi, edi
add cl, 0x22
mov byte [ebp - 8], cl
mov esi, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
mov edx, esi
and edx, 0xff
and edx, ebx
inc eax
cmp eax, 0xb
mov dword [ebp - 0x18], eax
jbe 0x81fe67
mov eax, edx
xor edx, edx
div dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, edx
jb 0x81fdb3
je 0x81fe9f
mov bl, byte [ebp + eax - 0x188]
lea edx, [ebp + edx - 0x188]
lea ecx, [ebp + eax - 0x188]
mov al, byte [edx]
xor bl, al
mov byte [ecx], bl
mov al, bl
mov bl, byte [edx]
xor bl, al
mov byte [edx], bl
mov al, byte [ecx]
mov dl, bl
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
jne 0x81fd9d
mov dl, byte [ebp - 0x181]
and esi, 0xff
mov byte [ebp - 0x28], dl
mov bl, byte [ebp - 0x185]
mov al, byte [ebp + esi - 0x188]
mov esi, dword [ebp - 0x38]
mov byte [ebp - 0x2c], al
mov cl, byte [ebp - 0x183]
mov al, byte [esi]
mov dl, byte [esi + 1]
add al, 3
add dl, 0x5d
shl al, 4
or al, dl
mov byte [ebp - 0x18], al
mov eax, dword [ebp - 0x2c]
and eax, 0xff
fstp st(0)
mov dl, byte [ebp + eax - 0x188]
lea esi, [ebp + eax - 0x188]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x187]
mov eax, edx
and eax, 0xff
mov al, byte [ebp + eax - 0x188]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
lea edi, [ebp + edx - 0x188]
mov dl, byte [ebp + edx - 0x188]
mov byte [esi], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
lea edx, [ebp + edx - 0x188]
mov byte [edi], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x10], edx
lea ebx, [ebp + ebx - 0x188]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x188]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 8], cl
mov edx, dword [ebp - 8]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x188]
add edx, ebx
mov bl, byte [esi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov esi, 1
mov bl, byte [ebp + edx - 0x188]
mov dl, byte [edi]
mov edi, dword [ebp - 0x20]
mov bl, byte [ebp + ebx - 0x188]
add edx, edi
and edx, 0xff
xor bl, byte [ebp + edx - 0x188]
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0x2c], dl
xor bl, dl
mov edx, dword [ebp - 0x38]
mov byte [ebp - 0x28], bl
lea edi, [edx + 2]
mov dl, byte [edx + 2]
add dl, 3
mov bl, byte [edi + 1]
mov dword [ebp - 0x34], 6
shl dl, 4
add bl, 0x5d
or dl, bl
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x188]
mov dl, byte [ebp + edx - 0x188]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
lea edx, [ebp + edx - 0x188]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x188]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x188]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x188]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 8], cl
mov edx, dword [ebp - 8]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x188]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x188]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x188]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
mov byte [ebp - 0x28], dl
mov byte [ebp - 0x64], dl
mov edx, dword [ebp - 0x38]
lea edi, [edx + 2]
jmp 0x8200fd
mov edi, dword [ebp - 0x50]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 3
add dl, 0x5d
mov dword [ebp - 0x50], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x188]
mov dl, byte [ebp + edx - 0x188]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
lea edx, [ebp + edx - 0x188]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x188]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x188]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x188]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 8], cl
mov edx, dword [ebp - 8]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x188]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x188]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x188]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x82020e
mov byte [ebp + esi - 0x65], dl
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x8200fa
mov edx, dword [ebp - 0x38]
inc esi
mov bl, byte [edx + esi*2]
lea edi, [edx + esi*2]
add bl, 3
mov dl, byte [edi + 1]
add dl, 0x5d
shl bl, 4
or dl, bl
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x188]
mov dl, byte [ebp + edx - 0x188]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
lea edx, [ebp + edx - 0x188]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x188]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x188]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x188]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 8], cl
mov edx, dword [ebp - 8]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x188]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x188]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x188]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x820337
mov byte [ebp + esi - 0x65], dl
lea ebx, [esi + 1]
cmp ebx, 0x10
jge 0x820476
mov edx, dword [ebp - 0x38]
lea edi, [edx + esi*2]
mov edx, 0x10
sub edx, ebx
mov dword [ebp - 0x34], edx
jmp 0x820358
mov edi, dword [ebp - 0x50]
mov bl, byte [edi + 2]
mov dl, byte [edi + 3]
add edi, 2
add bl, 3
add dl, 0x5d
mov dword [ebp - 0x50], edi
shl bl, 4
or dl, bl
inc esi
mov byte [ebp - 0x18], dl
mov edx, dword [ebp - 0x2c]
and edx, 0xff
lea edi, [ebp + edx - 0x188]
mov dl, byte [ebp + edx - 0x188]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 0x14]
mov bl, byte [edx]
mov dl, byte [ebp - 4]
add al, bl
inc dl
mov byte [ebp - 0x24], al
mov byte [ebp - 4], dl
mov edx, dword [ebp - 0x24]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
lea edx, [ebp + edx - 0x188]
mov byte [edi], bl
mov ebx, dword [ebp - 0x28]
and ebx, 0xff
mov dword [ebp - 0x1c], edx
lea ebx, [ebp + ebx - 0x188]
mov dword [ebp - 0x10], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov edx, dword [ebp - 4]
mov ebx, dword [ebp - 0x10]
and edx, 0xff
lea edx, [ebp + edx - 0x188]
mov dword [ebp - 0x14], edx
mov dl, byte [edx]
mov byte [ebx], dl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov bl, byte [ebp + edx - 0x188]
add cl, bl
mov ebx, dword [ebp - 0x10]
mov byte [ebp - 8], cl
mov edx, dword [ebp - 8]
mov bl, byte [ebx]
and edx, 0xff
mov dl, byte [ebp + edx - 0x188]
add edx, ebx
mov bl, byte [edi]
add edx, ebx
xor ebx, ebx
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
mov edx, dword [ebp - 0x1c]
mov edi, ebx
mov bl, byte [edx]
mov edx, dword [ebp - 0x20]
add ebx, edx
mov dl, byte [ebp + edi - 0x188]
and ebx, 0xff
xor dl, byte [ebp + ebx - 0x188]
mov bl, byte [ebp - 0x18]
mov byte [ebp - 0x2c], bl
xor dl, bl
test esi, esi
mov byte [ebp - 0x28], dl
jbe 0x820469
mov byte [ebp + esi - 0x65], dl
mov edx, dword [ebp - 0x34]
dec edx
mov dword [ebp - 0x34], edx
jne 0x820355
mov edx, dword [ebp - 0x18]
inc esi
and edx, 0xff
lea edi, [ebp + edx - 0x188]
mov dl, byte [ebp + edx - 0x188]
mov byte [ebp - 0xc], dl
mov edx, dword [ebp - 4]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
add al, bl
mov bl, byte [ebp - 4]
mov byte [ebp - 0x24], al
inc bl
mov eax, dword [ebp - 0x24]
mov byte [ebp - 4], bl
and eax, 0xff
mov dl, byte [ebp + eax - 0x188]
lea eax, [ebp + eax - 0x188]
mov byte [edi], dl
mov edx, dword [ebp - 0x28]
and edx, 0xff
mov bl, byte [ebp + edx - 0x188]
lea edx, [ebp + edx - 0x188]
mov byte [eax], bl
mov ebx, dword [ebp - 4]
and ebx, 0xff
mov dword [ebp - 0x10], edx
test esi, esi
lea ebx, [ebp + ebx - 0x188]
mov dword [ebp - 0x14], ebx
mov bl, byte [ebx]
mov byte [edx], bl
mov ebx, dword [ebp - 0x14]
mov dl, byte [ebp - 0xc]
mov byte [ebx], dl
jbe 0x82057b
mov edx, dword [ebp - 0xc]
mov al, byte [eax]
and edx, 0xff
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x38]
mov bl, byte [edx + esi*2 + 1]
mov dl, byte [edx + esi*2]
add dl, 3
add bl, 0x5d
shl dl, 4
or bl, dl
mov edx, dword [ebp - 0x20]
mov dl, byte [ebp + edx - 0x188]
add dl, cl
and edx, 0xff
mov cl, byte [ebp + edx - 0x188]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
add ecx, edx
mov dl, byte [edi]
mov edi, dword [ebp - 0x20]
add ecx, edx
and ecx, 0xff
xor edx, edx
add eax, edi
mov dl, byte [ebp + ecx - 0x188]
and eax, 0xff
mov cl, byte [ebp + edx - 0x188]
xor bl, cl
mov cl, byte [ebp + eax - 0x188]
xor bl, cl
mov byte [ebp + esi - 0x65], bl
mov byte [ebp - 0x55], 0
xor ebx, ebx
mov edx, dword [ebp + 0xc]
mov cl, byte [0x8cd294]
lea eax, [ebp - 0x88]
push 0xa
mov byte [edx], cl
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0083a19b
or ecx, 0xffffffff
mov edi, 0x8c06c8
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x288]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x288]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp - 0x288]
and ecx, 3
push 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x88]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 3
and ecx, 3
lea eax, [ebp - 0x288]
push ebx
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x8cf93c]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x50], esi
jne 0x820658
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
lea edx, [ebp - 0x30]
mov dword [ebp - 0x4c], ecx
push ebx
mov dword [ebp - 0x48], ecx
push edx
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], ecx
push 8
push eax
lea ecx, [ebp - 0x4c]
push 0xc
push ecx
push 0x2d1400
push esi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call dword [0x8cf8e0]
test eax, eax
jne 0x8206a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
lea edi, [eax + 4]
push edi
call fcn.00839718
mov ecx, edi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
lea edx, [ebp - 0x4c]
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
push ecx
push ebx
push 0xc
push edx
push 0x2d1400
push esi
call dword [0x8cf8e0]
test eax, eax
jne 0x82070c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov edi, eax
call fcn.008396d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x820737
lea edi, [eax + ebx]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x50]
push ebx
call fcn.008396d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret