Function at 0x4dbc10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x20]
cmp edi, 0x10
sete cl
inc ecx
mov esi, ecx
imul esi, dword [ebp + 0x14]
mov eax, esi
mov dword [ebp - 8], esi
imul eax, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov ebx, eax
imul ebx, ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], ebx
test ecx, ecx
js 0x4dbc98
mov eax, dword [ebp + 0x1c]
test eax, eax
js 0x4dbc98
je 0x4dbc6d
mov eax, Ordinal_1
cdq
idiv dword [ebp + 0x1c]
cmp ecx, eax
jg 0x4dbc98
mov eax, dword [ebp + 0x1c]
imul ecx, eax
test ecx, ecx
js 0x4dbc98
test esi, esi
js 0x4dbc98
je 0x4dbc86
mov eax, Ordinal_1
cdq
idiv esi
cmp ecx, eax
jg 0x4dbc98
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp + 0x1c]
push eax
call fcn.005158f1
add esp, 4
jmp 0x4dbc9a
xor eax, eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x4dbcb5
pop edi
pop esi
mov dword [0x59aa54], 0x560464
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
test ecx, ecx
js 0x4dc8dc
mov esi, dword [ebp + 0x18]
test esi, esi
js 0x4dc8dc
je 0x4dbcdd
mov eax, Ordinal_1
cdq
idiv esi
cmp ecx, eax
jg 0x4dc8dc
imul ecx, esi
mov dword [ebp - 0x2c], ecx
test ecx, ecx
js 0x4dc8dc
test edi, edi
js 0x4dc8dc
je 0x4dbd05
mov eax, Ordinal_1
cdq
idiv edi
cmp ecx, eax
jg 0x4dc8dc
mov eax, ecx
imul eax, edi
cmp eax, 0x7ffffff8
jg 0x4dc8dc
mov ecx, dword [ebp + 0x1c]
add eax, 7
shr eax, 3
mov dword [ebp - 0x28], eax
inc eax
imul eax, ecx
cmp dword [ebp + 0x10], eax
jae 0x4dbd3d
pop edi
pop esi
mov dword [0x59aa54], 0x5606e8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0x4dc4f9
mov edi, dword [ebp + 0xc]
lea ecx, [ecx]
mov ecx, dword [ebp + 8]
mov eax, edx
imul eax, dword [ebp - 0x20]
movzx esi, byte [edi]
inc edi
mov dword [ebp - 0x1c], esi
mov ecx, dword [ecx + 0xc]
add ecx, eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], ecx
cmp esi, 4
ja 0x4dc538
cmp dword [ebp + 0x20], 8
jge 0x4dbd97
mov eax, dword [ebp + 0x14]
mov ebx, 1
imul eax, dword [ebp + 0x18]
mov dword [ebp - 4], ebx
sub eax, dword [ebp - 0x28]
add ecx, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x38], eax
mov eax, ecx
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
test edx, edx
jne 0x4dbdad
movzx esi, byte [esi + 0x58d940]
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x4dbeb4
mov edx, ecx
mov dword [ebp - 0x14], ebx
sub eax, edi
mov esi, edi
sub edx, edi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x34], edx
mov ecx, ebx
cmp dword [ebp - 0x1c], 6
ja case.default.0x4dbdd1
mov ebx, dword [ebp - 0x1c]
jmp dword [ebx*4 + 0x4dc8f0]
mov ebx, dword [ebp - 4]
inc esi
sub ecx, 1
mov dword [ebp - 0x14], ecx
jne 0x4dbdc8
jmp 0x4dbeb1
mov ebx, dword [ebp - 4]
lea esp, [esp]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
sub ecx, 1
jne 0x4dbdf0
jmp 0x4dbeb1
mov ebx, dword [ebp - 4]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
sub ecx, 1
jne 0x4dbe06
jmp 0x4dbeb1
mov ebx, dword [ebp - 4]
lea esp, [esp]
mov al, byte [eax + esi]
lea esi, [esi + 1]
add al, byte [esi - 1]
mov byte [edx + esi - 1], al
sub ecx, 1
je 0x4dbeb1
mov eax, dword [ebp - 0xc]
jmp 0x4dbe20
mov ebx, dword [ebp - 4]
lea ebx, [ebx]
mov al, byte [eax + esi]
lea esi, [esi + 1]
shr al, 1
add al, byte [esi - 1]
mov byte [edx + esi - 1], al
sub ecx, 1
je 0x4dbeb1
mov eax, dword [ebp - 0xc]
jmp 0x4dbe40
mov ebx, dword [ebp - 4]
lea esp, [esp]
movzx eax, byte [eax + esi]
push 0
push eax
push 0
call fcn.004defe0
mov ecx, dword [ebp - 0x34]
lea esi, [esi + 1]
add al, byte [esi - 1]
add esp, 0xc
sub dword [ebp - 0x14], 1
mov byte [ecx + esi - 1], al
je 0x4dbeb1
mov eax, dword [ebp - 0xc]
jmp 0x4dbe60
mov ebx, dword [ebp - 4]
lea esp, [esp]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
sub ecx, 1
jne 0x4dbe90
jmp 0x4dbeb1
mov ebx, dword [ebp - 4]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], al
sub ecx, 1
jne 0x4dbea3
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x20]
cmp eax, 8
jne 0x4dbece
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
cmp edx, eax
je 0x4dbeca
mov byte [ecx + edx], 0xff
mov ecx, eax
jmp 0x4dbef1
cmp eax, 0x10
jne 0x4dbeea
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x14]
je 0x4dbee1
mov word [ecx + ebx], 0xffff
mov eax, dword [ebp - 8]
mov edx, ebx
mov ecx, eax
jmp 0x4dbef4
mov ecx, 1
mov edx, ecx
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x1c]
add edi, edx
mov edx, dword [ebp - 0x30]
add edx, ecx
mov dword [ebp + 0xc], edi
add ecx, dword [ebp - 0x10]
cmp dword [ebp + 0x20], 8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jl 0x4dc2e2
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
je 0x4dc2e2
cmp esi, 6
ja case.default.0x4dbf2f
jmp dword [esi*4 + 0x4dc90c]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x24], edx
mov edi, esi
cmp edx, 1
jb case.default.0x4dbf2f
jmp 0x4dbf50
test ebx, ebx
jle 0x4dbf78
mov eax, edi
mov esi, ebx
sub eax, ecx
mov edx, ecx
mov dword [ebp - 0x34], eax
mov ebx, eax
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x4dbf61
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov byte [ecx + ebx], 0xff
add edi, ebx
add ecx, eax
sub edx, 1
mov dword [ebp - 0x24], edx
jne 0x4dbf50
jmp case.default.0x4dbf2f
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x24], edx
mov edi, esi
cmp edx, 1
jb case.default.0x4dbf2f
mov edx, ecx
mov dword [ebp + 0xc], edi
sub edx, eax
mov dword [ebp - 0x1c], edx
lea esp, [esp]
xor esi, esi
test ebx, ebx
jle 0x4dbfdf
mov dword [ebp - 0x34], edi
sub edi, ecx
jmp 0x4dbfc0
mov ebx, dword [ebp - 0x1c]
lea edx, [esi + ecx]
mov al, byte [edx + edi]
add al, byte [ebx + esi]
inc esi
mov ebx, dword [ebp - 4]
mov byte [edx], al
cmp esi, ebx
jl 0x4dbfc0
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov byte [ecx + ebx], 0xff
add edi, ebx
add edx, eax
mov dword [ebp + 0xc], edi
add ecx, eax
mov dword [ebp - 0x1c], edx
sub dword [ebp - 0x24], 1
jne 0x4dbfb0
jmp case.default.0x4dbf2f
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x14]
dec esi
mov dword [ebp - 0x24], esi
cmp esi, 1
jb case.default.0x4dbf2f
lea ecx, [ecx]
test ebx, ebx
jle 0x4dc048
mov eax, dword [ebp - 0xc]
mov esi, ebx
sub eax, edi
mov edx, edi
sub ecx, edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov ebx, eax
mov al, byte [edx + ebx]
lea edx, [edx + 1]
add al, byte [edx - 1]
mov byte [edx + ecx - 1], al
sub esi, 1
jne 0x4dc027
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x24]
mov byte [ecx + ebx], 0xff
add edx, eax
add ecx, eax
mov dword [ebp - 0xc], edx
add edi, ebx
mov dword [ebp - 0x10], ecx
sub esi, 1
mov dword [ebp - 0x24], esi
jne 0x4dc010
jmp case.default.0x4dbf2f
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp - 0x14]
dec esi
mov dword [ebp - 0x24], esi
cmp esi, 1
jb case.default.0x4dbf2f
mov esi, ecx
mov dword [ebp + 0xc], edi
sub esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x34], 0
test ebx, ebx
jle 0x4dc0d1
sub edx, edi
mov esi, edi
sub ecx, edi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x14], ecx
mov edi, edx
mov ecx, dword [ebp - 0x34]
mov edi, edi
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 1]
movzx edx, byte [esi + edi - 1]
movzx eax, byte [eax + ecx]
inc ecx
add edx, eax
mov eax, dword [ebp - 0x14]
shr edx, 1
add dl, byte [esi - 1]
mov byte [esi + eax - 1], dl
cmp ecx, ebx
jl 0x4dc0a0
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
mov byte [ecx + ebx], 0xff
add edi, ebx
add ecx, eax
mov dword [ebp + 0xc], edi
add esi, eax
mov dword [ebp - 0x10], ecx
add edx, eax
mov dword [ebp - 0x1c], esi
sub dword [ebp - 0x24], 1
mov dword [ebp - 0xc], edx
jne 0x4dc082
jmp case.default.0x4dbf2f
mov esi, dword [ebp + 0x18]
dec esi
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x24], 1
mov esi, dword [ebp - 0x14]
mov edi, esi
jb case.default.0x4dbf2f
mov esi, ecx
mov dword [ebp + 0xc], edi
sub esi, eax
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x4dc1c0
mov eax, edx
mov dword [ebp - 0x34], ebx
mov ebx, dword [ebp - 8]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov esi, edi
sub edx, edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jmp 0x4dc140
movzx edi, byte [esi + edx]
movzx eax, byte [eax + ecx]
movzx edx, byte [ecx]
mov esi, edx
mov dword [ebp - 0x14], eax
sub esi, eax
mov dword [ebp - 0x48], edi
add edi, esi
mov dword [ebp - 0x44], edx
mov eax, edi
sub edi, dword [ebp - 0x14]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x40], eax
mov eax, esi
cdq
mov esi, eax
mov eax, edi
xor esi, edx
sub esi, edx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x40]
cmp edx, esi
jg 0x4dc189
cmp edx, eax
jg 0x4dc189
mov edx, dword [ebp - 0x44]
jmp 0x4dc193
mov edx, dword [ebp - 0x48]
cmp esi, eax
jle 0x4dc193
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov al, byte [esi]
inc esi
add al, dl
mov dword [ebp - 0x30], esi
mov edx, dword [ebp - 0x50]
mov byte [ecx + ebx], al
inc ecx
sub dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x4c]
jne 0x4dc140
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x1c]
mov byte [ecx + ebx], 0xff
add edi, ebx
add ecx, eax
mov dword [ebp + 0xc], edi
add esi, eax
mov dword [ebp - 0x10], ecx
add edx, eax
mov dword [ebp - 0x1c], esi
sub dword [ebp - 0x24], 1
mov dword [ebp - 0xc], edx
jne 0x4dc114
jmp case.default.0x4dbf2f
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x34], edx
mov edi, esi
cmp edx, 1
jb case.default.0x4dbf2f
mov edx, ecx
mov dword [ebp + 0xc], edi
sub edx, eax
mov dword [ebp - 0x24], edx
xor esi, esi
test ebx, ebx
jle 0x4dc22f
sub edi, ecx
mov dword [ebp - 0x50], edi
mov eax, dword [ebp - 0x24]
lea edx, [esi + ecx]
mov al, byte [eax + esi]
inc esi
shr al, 1
add al, byte [edx + edi]
mov byte [edx], al
cmp esi, ebx
jl 0x4dc211
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x24]
mov byte [ecx + ebx], 0xff
add edi, ebx
add edx, eax
mov dword [ebp + 0xc], edi
add ecx, eax
mov dword [ebp - 0x24], edx
sub dword [ebp - 0x34], 1
jne 0x4dc206
jmp case.default.0x4dbf2f
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp - 0x14]
dec esi
mov dword [ebp - 0x34], esi
mov edi, edx
cmp esi, 1
jb case.default.0x4dbf2f
mov edx, ecx
mov dword [ebp + 0xc], edi
sub edx, eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x50], 0
test ebx, ebx
jle 0x4dc298
mov eax, edi
mov edi, dword [ebp - 0x50]
sub eax, ecx
mov dword [ebp - 0x4c], eax
mov dl, byte [edx + edi]
lea esi, [edi + ecx]
mov al, byte [esi + eax]
inc edi
add al, dl
mov edx, dword [ebp - 0x24]
mov byte [esi], al
mov eax, dword [ebp - 0x4c]
cmp edi, ebx
jl 0x4dc277
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0x34]
mov byte [ecx + ebx], 0xff
add edi, ebx
add edx, eax
mov dword [ebp + 0xc], edi
add ecx, eax
mov dword [ebp - 0x24], edx
sub esi, 1
mov dword [ebp - 0x34], esi
jne 0x4dc262
cmp dword [ebp + 0x20], 0x10
mov esi, dword [ebp + 0x18]
jne 0x4dc4e4
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0xc]
inc ecx
test esi, esi
je 0x4dc4e4
add ecx, dword [ebp - 0x54]
mov edx, esi
add ecx, ebx
mov byte [ecx], 0xff
add ecx, eax
sub edx, 1
jne 0x4dc2d3
jmp 0x4dc4e4
mov eax, dword [ebp - 0x38]
dec eax
imul eax, ebx
mov dword [ebp - 0x14], eax
cmp esi, 6
ja case.default.0x4dc2f5
jmp dword [esi*4 + 0x4dc928]
push eax
push edi
push ecx
call fcn.0050c8e0
add esp, 0xc
jmp case.default.0x4dc2f5
xor esi, esi
test eax, eax
jle case.default.0x4dc2f5
mov eax, ecx
sub eax, ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
mov eax, edi
mov edi, dword [ebp - 0x54]
sub eax, ecx
mov dword [ebp - 0x50], eax
lea ebx, [ebx]
lea edx, [ecx + esi]
mov al, byte [eax + edx]
add al, byte [edi + esi]
inc esi
mov byte [edx], al
mov eax, dword [ebp - 0x50]
cmp esi, ebx
jl 0x4dc330
jmp 0x4dc4d8
test eax, eax
jle case.default.0x4dc2f5
sub edx, edi
mov esi, edi
sub ecx, edi
mov ebx, eax
jmp 0x4dc360
mov al, byte [edx + esi]
lea esi, [esi + 1]
add al, byte [esi - 1]
mov byte [ecx + esi - 1], al
sub ebx, 1
jne 0x4dc360
jmp 0x4dc4db
mov dword [ebp - 0x54], 0
test eax, eax
jle case.default.0x4dc2f5
mov eax, ecx
sub edx, edi
sub eax, ebx
mov dword [ebp - 0xc], edx
mov ebx, dword [ebp - 0x14]
mov esi, edi
sub ecx, edi
mov dword [ebp - 0x50], eax
mov edi, dword [ebp - 0x54]
lea esp, [esp]
movzx edx, byte [esi + edx]
lea esi, [esi + 1]
movzx eax, byte [eax + edi]
inc edi
add edx, eax
mov eax, dword [ebp - 0x50]
shr edx, 1
add dl, byte [esi - 1]
mov byte [esi + ecx - 1], dl
mov edx, dword [ebp - 0xc]
cmp edi, ebx
jl 0x4dc3a0
jmp 0x4dc4d8
test eax, eax
jle case.default.0x4dc2f5
mov esi, ecx
mov dword [ebp - 0x24], edi
sub esi, ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x54], esi
mov esi, edx
sub esi, ecx
sub edx, edi
mov edi, dword [ebp - 0x54]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0xc], edx
lea ebx, [ebx]
mov eax, dword [ebp - 0x24]
movzx esi, byte [esi + edi]
mov dword [ebp - 0x34], esi
movzx eax, byte [eax + edx]
movzx edx, byte [edi]
mov ecx, edx
mov dword [ebp - 0x48], eax
sub ecx, esi
mov dword [ebp - 0x4c], edx
lea esi, [ecx + eax]
mov eax, esi
sub esi, dword [ebp - 0x34]
sub eax, edx
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x54], eax
mov eax, ecx
mov ecx, dword [ebp - 0x54]
cdq
xor eax, edx
sub eax, edx
mov dword [ebp - 0x50], eax
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, dword [ebp - 0x50]
cmp ecx, edx
jg 0x4dc441
cmp ecx, eax
jg 0x4dc441
mov ecx, dword [ebp - 0x4c]
jmp 0x4dc44b
mov ecx, dword [ebp - 0x48]
cmp edx, eax
jle 0x4dc44b
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x44]
mov al, byte [edx]
inc edx
add al, cl
mov dword [ebp - 0x24], edx
mov edx, dword [ebp - 0xc]
mov byte [edi + ebx], al
inc edi
sub dword [ebp - 0x30], 1
jne 0x4dc3f0
mov edi, dword [ebp + 0xc]
jmp case.default.0x4dc2f5
xor esi, esi
test eax, eax
jle case.default.0x4dc2f5
mov eax, ecx
sub eax, ebx
mov dword [ebp - 0x54], eax
mov eax, edi
mov edi, dword [ebp - 0x54]
sub eax, ecx
mov dword [ebp - 0x50], eax
mov al, byte [edi + esi]
lea edx, [ecx + esi]
mov ebx, dword [ebp - 0x50]
inc esi
shr al, 1
add al, byte [ebx + edx]
mov byte [edx], al
cmp esi, dword [ebp - 0x14]
jl 0x4dc482
jmp 0x4dc4d8
mov dword [ebp - 0x54], 0
test eax, eax
jle case.default.0x4dc2f5
mov eax, ecx
mov edx, edi
mov edi, dword [ebp - 0x14]
sub eax, ebx
mov ebx, dword [ebp - 0x54]
sub edx, ecx
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
lea esp, [esp]
mov dl, byte [eax + ebx]
lea esi, [ecx + ebx]
mov eax, dword [ebp - 0x50]
inc ebx
mov al, byte [eax + esi]
add al, dl
mov byte [esi], al
mov eax, dword [ebp - 0x4c]
cmp ebx, edi
jl 0x4dc4c0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
add edi, dword [ebp - 0x14]
mov esi, dword [ebp + 0x18]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x1c]
inc edx
mov dword [ebp - 0x3c], edx
cmp edx, ecx
jb 0x4dbd50
mov edi, dword [ebp + 0x20]
cmp edi, 8
jge 0x4dc898
test ecx, ecx
je 0x4dc8d0
mov ebx, dword [ebp + 0x14]
imul ebx, esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp + 8]
mov esi, ebx
sub esi, dword [ebp - 0x28]
mov eax, dword [eax + 0xc]
add esi, eax
add esi, ecx
cmp dword [ebp + 0x24], 0
lea edx, [eax + ecx]
jne 0x4dc54b
mov bl, byte [edi + 0x5601a4]
jmp 0x4dc54d
pop edi
pop esi
mov dword [0x59aa54], 0x5606fc
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, 1
cmp edi, 4
jne 0x4dc5b1
mov ecx, dword [ebp - 0x2c]
cmp ecx, 2
jl 0x4dc59f
mov edi, ecx
shr edi, 1
mov eax, edi
neg eax
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x54], ecx
jmp 0x4dc570
movzx ecx, byte [esi]
shr cl, 4
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
inc esi
and cl, 0xf
movzx ecx, cl
imul ecx, eax
mov byte [edx + 1], cl
add edx, 2
sub edi, 1
jne 0x4dc570
mov ecx, dword [ebp - 0x54]
test ecx, ecx
jle 0x4dc7f9
mov cl, byte [esi]
shr cl, 4
jmp 0x4dc7ee
cmp edi, 2
jne 0x4dc677
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
cmp ecx, 4
jl 0x4dc62d
mov edi, ecx
shr edi, 2
mov eax, edi
neg eax
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [esi]
shr cl, 6
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 3
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
inc esi
and cl, 3
movzx ecx, cl
imul ecx, eax
mov byte [edx + 3], cl
add edx, 4
sub edi, 1
jne 0x4dc5d4
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jle 0x4dc645
mov cl, byte [esi]
shr cl, 6
movzx ecx, cl
movzx eax, bl
imul ecx, eax
mov byte [edx], cl
inc edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
jle 0x4dc661
mov cl, byte [esi]
shr cl, 4
and cl, 3
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
mov ecx, dword [ebp - 0x1c]
cmp ecx, 2
jle 0x4dc7f9
mov cl, byte [esi]
shr cl, 2
and cl, 3
jmp 0x4dc7ee
cmp edi, 1
jne 0x4dc7fc
mov edi, dword [ebp - 0x2c]
cmp edi, 8
jl 0x4dc750
mov eax, edi
shr eax, 3
mov dword [ebp - 0x54], eax
neg eax
lea edi, [edi + eax*8]
mov dword [ebp - 0x50], edi
mov edi, dword [ebp - 0x54]
nop
movzx ecx, byte [esi]
shr cl, 7
movzx ecx, cl
movzx eax, bl
imul ecx, eax
movzx eax, bl
mov byte [edx], cl
movzx ecx, byte [esi]
shr cl, 6
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 1], cl
movzx ecx, byte [esi]
shr cl, 5
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 2], cl
movzx ecx, byte [esi]
shr cl, 4
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 3], cl
movzx ecx, byte [esi]
shr cl, 3
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 4], cl
movzx ecx, byte [esi]
shr cl, 2
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 5], cl
movzx ecx, byte [esi]
shr cl, 1
and cl, 1
movzx ecx, cl
imul ecx, eax
movzx eax, bl
mov byte [edx + 6], cl
movzx ecx, byte [esi]
inc esi
and cl, 1
movzx ecx, cl
imul ecx, eax
mov byte [edx + 7], cl
add edx, 8
sub edi, 1
jne 0x4dc6a0
mov edi, dword [ebp - 0x50]
test edi, edi
jle 0x4dc765
mov cl, byte [esi]
shr cl, 7
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 1
jle 0x4dc77e
mov cl, byte [esi]
shr cl, 6
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 2
jle 0x4dc797
mov cl, byte [esi]
shr cl, 5
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 3
jle 0x4dc7b0
mov cl, byte [esi]
shr cl, 4
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 4
jle 0x4dc7c9
mov cl, byte [esi]
shr cl, 3
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 5
jle 0x4dc7e2
mov cl, byte [esi]
shr cl, 2
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
inc edx
cmp edi, 6
jle 0x4dc7f9
mov cl, byte [esi]
shr cl, 1
and cl, 1
movzx eax, bl
movzx ecx, cl
imul ecx, eax
mov byte [edx], cl
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0x14]
je 0x4dc876
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
add edx, ecx
mov ecx, dword [ebp + 0x18]
dec ecx
cmp ebx, 1
jne 0x4dc832
test ecx, ecx
js 0x4dc873
lea esp, [esp]
mov byte [edx + ecx*2 + 1], 0xff
mov al, byte [ecx + edx]
mov byte [edx + ecx*2], al
sub ecx, 1
jns 0x4dc820
jmp 0x4dc873
test ecx, ecx
js 0x4dc873
lea esi, [ecx*2 + 1]
add esi, edx
lea edx, [edx + ecx*4]
add esi, ecx
add edx, 2
jmp 0x4dc850
sub ecx, 1
mov byte [edx + 1], 0xff
movzx eax, byte [esi + 1]
lea esi, [esi - 3]
mov byte [edx], al
lea edx, [edx - 4]
movzx eax, byte [esi + 3]
mov byte [edx + 3], al
movzx eax, byte [esi + 2]
mov byte [edx + 2], al
jns 0x4dc850
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0x20]
sub dword [ebp + 0x1c], 1
mov ebx, dword [ebp - 0x4c]
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0xc], ecx
jne 0x4dc518
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp edi, 0x10
jne 0x4dc8d0
mov ebx, dword [ebp + 0x14]
imul ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0xc]
mov edx, esi
imul ebx, ecx
test ebx, ebx
je 0x4dc8d0
movzx ecx, byte [esi]
lea edx, [edx + 2]
movzx eax, byte [edx - 1]
lea esi, [esi + 2]
shl cx, 8
or cx, ax
mov word [edx - 2], cx
sub ebx, 1
jne 0x4dc8b3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [0x59aa54], 0x5605e8
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret