Function at 0x4fb8c2
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508518
push 0x4fda70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff90
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x78], ecx
cmp dword [ebp + 8], 0
jne 0x4fb912
mov dword [ebp - 0x54], 0x54c6cc
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x50]
call fcn.004b77bd
push 0x50ad70
lea ecx, [ebp - 0x50]
push ecx
call fcn.004b7cd8
cmp dword [ebp + 0x10], 0x10
je 0x4fb945
cmp dword [ebp + 0x10], 0x18
je 0x4fb945
cmp dword [ebp + 0x10], 0x20
je 0x4fb945
mov dword [ebp - 0x64], 0x54c6d0
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x60]
call fcn.004b77bd
push 0x50ad70
lea eax, [ebp - 0x60]
push eax
call fcn.004b7cd8
cmp dword [ebp + 0x14], 0x10
je 0x4fb978
cmp dword [ebp + 0x14], 0x18
je 0x4fb978
cmp dword [ebp + 0x14], 0x20
je 0x4fb978
mov dword [ebp - 0x74], 0x54c6d4
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x70]
call fcn.004b77bd
push 0x50ad70
lea edx, [ebp - 0x70]
push edx
call fcn.004b7cd8
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x3c8], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0x3cc], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x3cc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x78]
add ecx, 0x3d4
push ecx
call fcn.004b6e40
add esp, 0xc
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x3cc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x78]
add edx, 0x3f4
push edx
call fcn.004b6e40
add esp, 0xc
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x3c8]
mov dword [ebp - 0x7c], ecx
cmp dword [ebp - 0x7c], 0x10
je 0x4fb9ea
cmp dword [ebp - 0x7c], 0x18
je 0x4fba26
jmp 0x4fba47
mov edx, dword [ebp - 0x78]
cmp dword [edx + 0x3cc], 0x10
jne 0x4fb9ff
mov dword [ebp - 0x80], 0xa
jmp 0x4fba18
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x3cc]
sub ecx, 0x18
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, 0xc
mov dword [ebp - 0x80], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x80]
mov dword [edx + 0x3d0], eax
jmp 0x4fba54
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x3cc]
sub edx, 0x20
neg edx
sbb edx, edx
and edx, 0xfffffffe
add edx, 0xe
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x3d0], edx
jmp 0x4fba54
mov ecx, dword [ebp - 0x78]
mov dword [ecx + 0x3d0], 0xe
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x2c], 0
jmp 0x4fba7b
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x3d0]
jg 0x4fbabe
mov dword [ebp - 0x34], 0
jmp 0x4fba9b
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x44]
jge 0x4fbabc
mov edx, dword [ebp - 0x2c]
shl edx, 5
mov eax, dword [ebp - 0x78]
lea ecx, [eax + edx + 8]
mov edx, dword [ebp - 0x34]
mov dword [ecx + edx*4], 0
jmp 0x4fba92
jmp 0x4fba72
mov dword [ebp - 0x2c], 0
jmp 0x4fbad0
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ecx + 0x3d0]
jg 0x4fbb16
mov dword [ebp - 0x34], 0
jmp 0x4fbaf0
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp ecx, dword [ebp - 0x44]
jge 0x4fbb14
mov edx, dword [ebp - 0x2c]
shl edx, 5
mov eax, dword [ebp - 0x78]
lea ecx, [eax + edx + 0x1e8]
mov edx, dword [ebp - 0x34]
mov dword [ecx + edx*4], 0
jmp 0x4fbae7
jmp 0x4fbac7
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + 0x3d0]
add ecx, 1
imul ecx, dword [ebp - 0x44]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [edx + 0x3c8]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x78]
add eax, 0x414
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], 0
jmp 0x4fbb61
mov edx, dword [ebp - 0x2c]
add edx, 1
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x24]
jge 0x4fbc14
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov dl, byte [ecx]
shl edx, 0x18
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
mov al, byte [edx]
shl eax, 0x10
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
or edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
xor eax, eax
mov al, byte [edx]
shl eax, 8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
or edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0
mov eax, 0
mov dword [eax], edx
mov dword [ebp - 4], 0xffffffff
jmp 0x4fbc0f
jmp 0x4fbb58
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
jmp 0x4fbc36
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x24]
jge 0x4fbca9
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x40]
jge 0x4fbca9
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
shl eax, 5
mov ecx, dword [ebp - 0x78]
lea ecx, [ecx + eax + 8]
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x3d0]
sub edx, eax
shl edx, 5
mov eax, dword [ebp - 0x78]
lea ecx, [eax + edx + 0x1e8]
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
jmp 0x4fbc24
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x40]
jge 0x4fbfb4
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax + edx*4 + 0x410]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
sar edx, 0x10
and edx, 0xff
movsx eax, byte [edx + str.cw]
and eax, 0xff
shl eax, 0x18
mov ecx, dword [ebp - 0x38]
sar ecx, 8
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
shl edx, 0x10
xor eax, edx
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
shl edx, 8
xor eax, edx
mov ecx, dword [ebp - 0x38]
sar ecx, 0x18
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
xor eax, edx
mov ecx, dword [ebp - 0x3c]
movsx edx, byte [ecx + 0x508498]
and edx, 0xff
shl edx, 0x18
xor eax, edx
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x414]
xor edx, eax
mov eax, dword [ebp - 0x78]
mov dword [eax + 0x414], edx
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x24], 8
je 0x4fbdc9
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x24]
jge 0x4fbdc4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov eax, dword [ecx + eax*4 + 0x414]
xor eax, dword [esi + edx*4 + 0x414]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x78]
mov dword [edx + ecx*4 + 0x414], eax
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
jmp 0x4fbd81
jmp 0x4fbf21
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x2c], eax
jge 0x4fbe1f
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov edx, dword [eax + edx*4 + 0x414]
xor edx, dword [esi + ecx*4 + 0x414]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + eax*4 + 0x414], edx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x4fbdd7
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + eax*4 + 0x410]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x38]
and ecx, 0xff
movsx edx, byte [ecx + str.cw]
and edx, 0xff
mov ecx, dword [ebp - 0x38]
sar ecx, 8
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
and ecx, 0xff
shl ecx, 8
xor edx, ecx
mov ecx, dword [ebp - 0x38]
sar ecx, 0x10
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
and ecx, 0xff
shl ecx, 0x10
xor edx, ecx
mov ecx, dword [ebp - 0x38]
sar ecx, 0x18
and ecx, 0xff
movsx ecx, byte [ecx + str.cw]
and ecx, 0xff
shl ecx, 0x18
xor edx, ecx
mov ecx, dword [ebp - 0x78]
mov ecx, dword [ecx + eax*4 + 0x414]
xor ecx, edx
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x78]
mov dword [edx + eax*4 + 0x414], ecx
mov eax, dword [ebp - 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x24]
jge 0x4fbf21
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov edx, dword [eax + edx*4 + 0x414]
xor edx, dword [esi + ecx*4 + 0x414]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x78]
mov dword [ecx + eax*4 + 0x414], edx
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x4fbede
mov dword [ebp - 0x34], 0
jmp 0x4fbf3c
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x24]
jge 0x4fbfaf
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x40]
jge 0x4fbfaf
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
shl eax, 5
mov edx, dword [ebp - 0x78]
lea ecx, [edx + eax + 8]
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ecx + 0x3d0]
sub edx, eax
shl edx, 5
mov eax, dword [ebp - 0x78]
lea ecx, [eax + edx + 0x1e8]
mov eax, dword [ebp - 0x28]
cdq
idiv dword [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x78]
mov eax, dword [esi + eax*4 + 0x414]
mov dword [ecx + edx*4], eax
jmp 0x4fbf2a
jmp 0x4fbcb0
mov dword [ebp - 0x20], 1
jmp 0x4fbfc6
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0x3d0]
jge 0x4fc072
mov dword [ebp - 0x34], 0
jmp 0x4fbfea
mov ecx, dword [ebp - 0x34]
add ecx, 1
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x44]
jge 0x4fc06d
mov eax, dword [ebp - 0x20]
shl eax, 5
mov ecx, dword [ebp - 0x78]
lea edx, [ecx + eax + 0x1e8]
mov eax, dword [ebp - 0x34]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x38]
sar edx, 0x18
and edx, 0xff
mov eax, dword [ebp - 0x38]
sar eax, 0x10
and eax, 0xff
mov ecx, dword [edx*4 + 0x507498]
xor ecx, dword [eax*4 + 0x507898]
mov edx, dword [ebp - 0x38]
sar edx, 8
and edx, 0xff
xor ecx, dword [edx*4 + 0x507c98]
mov eax, dword [ebp - 0x38]
and eax, 0xff
xor ecx, dword [eax*4 + 0x508098]
mov edx, dword [ebp - 0x20]
shl edx, 5
mov eax, dword [ebp - 0x78]
lea edx, [eax + edx + 0x1e8]
mov eax, dword [ebp - 0x34]
mov dword [edx + eax*4], ecx
jmp 0x4fbfe1
jmp 0x4fbfbd
mov ecx, dword [ebp - 0x78]
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10