Function at 0x5f8814
Capabilities:
Encrypt data using aes

Disassembly:
call fcn.005f8777
sub dh, ah
jbe 0x5f8875
pushal
pushfd
lea esp, [esp + 4]
popal
pushfd
mov byte [esp + 1], ah
push cx
mov word [esp + 3], sp
jmp 0x61d097
dec edi
mov edx, 0x328bd40f
movzx ebx, byte [eax]
movzx edx, byte [eax + 1]
movzx edi, byte [eax + 5]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 2]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 3]
shl ebx, 8
xor ebx, edx
movzx edx, byte [eax + 4]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 6]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 7]
shl edx, 8
xor edx, edi
xor edx, dword [ecx + 4]
movzx edi, byte [eax + 9]
mov dword [ebp - 4], edx
movzx edx, byte [eax + 8]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 0xa]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 0xb]
shl edx, 8
xor edx, edi
xor edx, dword [ecx + 8]
movzx edi, byte [eax + 0xd]
mov dword [ebp - 0x10], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, edi
movzx edi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
xor ebx, dword [ecx]
shl edx, 8
xor edx, edi
mov edi, dword [ebp - 0x10]
shl edx, 8
xor edx, eax
xor edx, dword [ecx + 0xc]
shr edi, 8
mov dword [ebp - 0x14], edx
shr edx, 0x10
mov eax, 0xff
and edx, eax
mov edx, dword [edx*4 + 0x602f60]
and edi, eax
xor edx, dword [edi*4 + 0x603360]
mov edi, ebx
shr edi, 0x18
xor edx, dword [edi*4 + 0x602b60]
mov edi, dword [ebp - 4]
and edi, eax
xor edx, dword [edi*4 + 0x603760]
mov edi, ebx
xor edx, dword [ecx + 0x10]
shr edi, 0x10
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, eax
and edi, eax
mov dword [ebp - 8], edi
mov edi, dword [edx*4 + 0x603360]
mov edx, dword [ebp - 8]
xor edi, dword [edx*4 + 0x602f60]
mov edx, dword [ebp - 4]
shr edx, 0x18
xor edi, dword [edx*4 + 0x602b60]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
and edx, eax
xor edi, dword [edx*4 + 0x603760]
mov edx, dword [ebp - 4]
shr edx, 0x10
shr ebx, 8
and edx, eax
mov edx, dword [edx*4 + 0x602f60]
and ebx, eax
xor edx, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x603760]
mov ebx, dword [ebp - 4]
xor edx, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x10]
shr edx, 0x10
shr ebx, 8
and edx, eax
mov edx, dword [edx*4 + 0x602f60]
and ebx, eax
xor edx, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 0x18]
and ebx, eax
xor edx, dword [ebx*4 + 0x603760]
mov ebx, dword [ebp + 8]
xor edx, dword [ecx + 0x1c]
sar ebx, 1
add ecx, 0x20
dec ebx
mov dword [ebp + 8], ebx
jmp 0x5f8beb
shr ebx, 8
and ebx, eax
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x602f60]
xor edx, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x602b60]
mov ebx, edi
and ebx, eax
xor edx, dword [ebx*4 + 0x603760]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx]
shr ebx, 0x10
and ebx, eax
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x14]
shr edx, 8
and edx, eax
mov edx, dword [edx*4 + 0x603360]
xor edx, dword [ebx*4 + 0x602f60]
mov ebx, edi
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 8]
and ebx, eax
xor edx, dword [ebx*4 + 0x603760]
mov ebx, dword [ebp - 0xc]
xor edx, dword [ecx + 4]
shr ebx, 8
and ebx, eax
mov dword [ebp - 4], edx
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x602f60]
xor edx, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 8]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x603760]
mov ebx, dword [ebp - 8]
shr edi, 8
and edi, eax
xor edx, dword [ecx + 8]
shr ebx, 0x10
mov dword [ebp - 8], edi
and ebx, eax
mov edi, dword [ebx*4 + 0x602f60]
mov ebx, dword [ebp - 8]
xor edi, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 0x14]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 0xc]
and ebx, eax
xor edi, dword [ebx*4 + 0x603760]
mov ebx, edx
xor edi, dword [ecx + 0xc]
shr ebx, 8
mov dword [ebp - 0x14], edi
shr edi, 0x10
and edi, eax
mov edi, dword [edi*4 + 0x602f60]
and ebx, eax
xor edi, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 0x18]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 4]
and ebx, eax
xor edi, dword [ebx*4 + 0x603760]
mov dword [ebp - 0x10], edx
xor edi, dword [ecx + 0x10]
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x14]
shr edi, 8
and edi, eax
mov ebx, dword [ebp - 0x18]
mov edi, dword [edi*4 + 0x603360]
shr ebx, 0x10
and ebx, eax
xor edi, dword [ebx*4 + 0x602f60]
mov ebx, dword [ebp - 4]
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 0x18]
and edx, eax
xor edi, dword [edx*4 + 0x603760]
mov edx, dword [ebp - 4]
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x602f60]
shr ebx, 8
and ebx, eax
xor edx, dword [ebx*4 + 0x603360]
mov ebx, dword [ebp - 0x10]
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x602b60]
mov ebx, dword [ebp - 0x14]
and ebx, eax
xor edx, dword [ebx*4 + 0x603760]
mov ebx, dword [ebp - 0x10]
xor edx, dword [ecx + 0x18]
xor edi, dword [ecx + 0x14]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 4]
shr ebx, 0x10
shr edx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x602f60]
and edx, eax
xor ebx, dword [edx*4 + 0x603360]
mov edx, dword [ebp - 0x14]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x602b60]
mov edx, dword [ebp - 0x18]
and edx, eax
xor ebx, dword [edx*4 + 0x603760]
add ecx, 0x20
xor ebx, dword [ecx - 4]
dec dword [ebp + 8]
mov edx, ebx
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
jne 0x5f8a0f
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x603b60]
and ebx, 0xff00
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x603b60]
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 0xc]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x603b60]
and ebx, 0xff000000
xor edx, ebx
mov ebx, edi
and ebx, eax
movzx ebx, byte [ebx*4 + 0x603b60]
xor edx, ebx
xor edx, dword [ecx]
mov ebx, edx
shr ebx, 0x18
mov byte [esi], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esi + 1], bl
mov byte [esi + 3], dl
mov ebx, edx
shr ebx, 8
mov byte [esi + 2], bl
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x14]
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x603b60]
and ebx, 0xff00
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x603b60]
and edx, 0xff0000
xor edx, ebx
mov ebx, edi
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x603b60]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 8]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x603b60]
xor edx, ebx
xor edx, dword [ecx + 4]
mov ebx, edx
shr ebx, 0x18
mov byte [esi + 4], bl
mov ebx, edx
shr ebx, 0x10
mov byte [esi + 5], bl
mov ebx, edx
shr ebx, 8
mov byte [esi + 6], bl
mov ebx, dword [ebp - 0xc]
mov byte [esi + 7], dl
shr ebx, 8
and ebx, eax
mov ebx, dword [ebx*4 + 0x603b60]
mov edx, edi
shr edx, 0x10
and edx, eax
mov edx, dword [edx*4 + 0x603b60]
and ebx, 0xff00
and edx, 0xff0000
xor edx, ebx
mov ebx, dword [ebp - 8]
shr ebx, 0x18
mov ebx, dword [ebx*4 + 0x603b60]
and ebx, 0xff000000
xor edx, ebx
mov ebx, dword [ebp - 0x14]
and ebx, eax
movzx ebx, byte [ebx*4 + 0x603b60]
xor edx, ebx
xor edx, dword [ecx + 8]
mov ebx, edx
shr ebx, 0x18
mov byte [esi + 8], bl
mov ebx, edx
mov byte [esi + 0xb], dl
shr ebx, 0x10
mov byte [esi + 9], bl
mov ebx, edx
mov edx, dword [ebp - 8]
shr edi, 8
and edi, eax
shr edx, 0x10
and edx, eax
shr ebx, 8
mov byte [esi + 0xa], bl
mov edi, dword [edi*4 + 0x603b60]
mov edx, dword [edx*4 + 0x603b60]
and edi, 0xff00
and edx, 0xff0000
xor edx, edi
mov edi, dword [ebp - 0x14]
shr edi, 0x18
mov edi, dword [edi*4 + 0x603b60]
and edi, 0xff000000
xor edx, edi
mov edi, dword [ebp - 0xc]
and edi, eax
movzx eax, byte [edi*4 + 0x603b60]
xor edx, eax
xor edx, dword [ecx + 0xc]
mov eax, edx
shr eax, 0x18
mov byte [esi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xe], al
mov byte [esi + 0xf], dl
jmp 0x5f8dac
pop edi
pop ebx
leave
ret
movzx edx, byte [eax]
shl edx, 8
movzx esi, byte [eax + 1]
xor edx, esi
movzx esi, byte [eax + 2]
jmp 0x61d1f6
pushal
bswap ax
popal
pushfd
pop word [esp]
mov word [esp], dx
mov byte [esp], al
mov word [esp], si
push esi
pop word [esp + 1]
lea esp, [esp + 3]
push dx
lea esp, [esp + 3]
push ebx
push ebp
push esi
push edi
jmp 0x61d042
lea esp, [esp]
mov word [esp + 1], dx
mov word [esp + 1], di
mov dword [esp], edi
push dword [esp + 1]
push word [esp + 8]
push dword [esp + 0xa]
push ebp
lea esp, [esp + 0x11]
lea esp, [esp + 3]
lea esp, [esp + 4]
jmp 0x61d060
lea esp, [esp + 0x15]
mov dword [esp + 4], edi
push dword [esp]
push dword [esp + 9]
lea esp, [esp + 1]
lea esp, [esp + 0x14]
popal
lea esi, [esi + 0x18]
mov dword [esi], eax
pop esi
xor edx, eax
push ebp
mov ebp, ecx
lea ebp, [ebp + 0x1c]
mov dword [ebp], edx
pop ebp
call fcn.0060eab2
mov eax, edi
push ebp
mov ebp, eax
lea ebp, [ebp + 0xc]
mov edx, dword [ebp]
pop ebp
pushal
mov ecx, ebp
mov dword [esp + 0x18], edx
pushfd
push dword [esp]
lea esp, [esp + 4]
lea esp, [esp + 3]
lea esp, [esp]
mov byte [esp], ch
pushal
push dword [esp + 0x10]
lea esp, [esp + 1]
lea esp, [esp + 0x24]
popal
shr ecx, 8
pushal
bswap ebx
mov esi, 0x68fd40be
mov ax, word [esp]
mov esi, ecx
mov si, 0x5536
mov dword [esp], edx
pushfd
mov dword [esp], edx
lea esp, [esp + 1]
lea esp, [esp + 3]
popal
jmp 0x61d8b2
mov ch, ah
mov si, word [esp]
mov ebx, 0x7c5929f8
mov dword [esp], edx
push esi
push dword [esp + 3]
push word [esp + 1]
mov byte [esp + 3], dl
mov word [esp + 1], bx
pop word [esp + 2]
mov byte [esp], ch
mov word [esp + 1], si
lea esp, [esp + 8]
popal
and edi, esi
mov edi, dword [edi*4 + 0x602760]
mov ebp, 0xff00
and edi, ebp
xor eax, edi
xor eax, dword [ecx]
lea edi, [ecx + 0x10]
xor ebx, eax
mov dword [edi], eax
mov eax, dword [ecx + 8]
clc
pushal
lea esp, [esp + 6]
push word [esp + 4]
xor eax, ebx
pushal
lea esp, [esp + 0x3c]
mov dword [ecx + 0x14], ebx
push esi
pushal
pushfd
lea edi, [ebp*4]
mov dword [esp], edx
mov dword [esp + 8], ecx
pushal
pop word [esp + 0xe]
jmp 0x61d0d0
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 3]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 5]
mov dword [ecx], edx
movzx edx, byte [eax + 4]
pushal
mov byte [esp + 0x1e], ah
pop dword [esp + 2]
push dword [esp + 6]
shl edx, 8
pushfd
lea esp, [esp + 0x24]
xor edx, esi
movzx esi, byte [eax + 6]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 7]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 9]
mov dword [ecx + 4], edx
movzx edx, byte [eax + 8]
pushal
shl edx, 8
pushfd
lea esp, [esp + 0x24]
xor edx, esi
movzx esi, byte [eax + 0xa]
pushfd
pop word [esp]
push word [esp + 1]
lea esp, [esp + 2]
lea esp, [esp]
push word [esp + 1]
mov word [esp + 1], dx
shl edx, 8
push si
lea esp, [esp + 1]
lea esp, [esp]
push di
mov word [esp], cx
lea esp, [esp + 3]
lea esp, [esp + 4]
xor edx, esi
movzx esi, byte [eax + 0xb]
shl edx, 8
xor edx, esi
movzx esi, byte [eax + 0xd]
mov dword [ecx + 8], edx
movzx edx, byte [eax + 0xc]
shl edx, 8
xor edx, esi
push ebx
mov word [esp + 1], di
mov byte [esp + 1], bl
lea esp, [esp + 1]
push word [esp + 1]
lea esp, [esp + 1]
lea esp, [esp + 4]
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
shl edx, 8
xor edx, esi
shl edx, 8
push ecx
push edi
lea esp, [esp + 8]
xor edx, eax
mov dword [ecx + 0xc], edx
mov eax, edx
shr eax, 0x10
mov esi, 0xff
and eax, esi
push ebp
pushal
setl cl
not esi
mov ecx, dword [esp]
seto bl
mov ebx, dword [esp]
xchg dh, bh
xchg di, si
mov dword [esp + 8], eax
push edx
pop word [esp]
lea esp, [esp + 2]
popal
lea ebp, [ebp*4]
lea ebp, [ebp + 0x602760]
mov eax, dword [ebp]
pop ebp
xor eax, 0x1000000
mov edi, edx
shr edi, 8
and edi, esi
mov edi, dword [edi*4 + 0x602760]
and edi, 0xff0000
mov ebx, dword [ecx + 4]
and eax, 0xff000000
xor eax, edi
mov edi, edx
shr edi, 0x18
movzx edi, byte [edi*4 + 0x602760]
xor eax, edi
pushal
mov word [esp + 5], bx
mov word [esp + 0x15], bx
lea esp, [esp + 0x20]
pushal
bswap bx
xchg cl, bh
setno ch
mov di, word [esp]
mov cl, al
jmp 0x61d167
and ecx, esi
push ebp
pushal
mov dword [esp + 8], ecx
pushfd
lea esp, [esp + 3]
lea esp, [esp]
push sp
mov word [esp], bx
mov word [esp], ax
lea esp, [esp + 3]
popal
lea ebp, [ebp*4]
lea ebp, [ebp + 0x602760]
mov ecx, dword [ebp]
pop ebp
shr edi, 0x10
and edi, esi
push esi
mov esi, edi
lea esi, [esi*4]
lea esi, [esi + 0x602760]
mov edi, dword [esi]
pop esi
and ecx, 0xff0000
and edi, 0xff000000
xor ecx, edi
pushal
lea esi, [eax + edi]
lea ebx, [ebx + ebp]
lea esi, [edx + esi]
mov al, 0x84
not bp
pushfd
lea edi, [ecx*4]
mov dword [esp + 4], edx
pushal
mov byte [esp + 8], ah
mov byte [esp + 0x1c], al
lea esp, [esp + 9]
lea esp, [esp + 3]
lea esp, [esp + 0x18]
popal
and edx, esi
push esi
pushal
mov cx, word [esp]
mov di, word [esp]
xchg ecx, esi
setne al
mov si, bx
mov ebp, ecx
setnp ch
mov dword [esp + 4], edx
pushal
push ecx
lea esp, [esp + 2]
mov word [esp + 0x1c], dx
mov dword [esp + 3], edi
lea esp, [esp + 2]
lea esp, [esp + 0x20]
popal
lea esi, [esi*4]
lea esi, [esi + 0x602760]
mov edx, dword [esi]
pop esi
push esi
mov dword [esp], edx
mov byte [esp + 1], bl
mov byte [esp + 2], ch
mov byte [esp + 2], cl
shr edi, 0x18
push edi
push word [esp + 2]
push word [esp]
push word [esp + 1]
lea esp, [esp + 2]
lea esp, [esp + 0xc]
movzx edi, byte [edi*4 + 0x602760]
xor ecx, edi
and edx, ebp
xor ecx, edx
xor ecx, dword [ebx]
lea edi, [eax + 0x10]
xor ecx, dword [eax]
add ebx, 4
mov dword [edi], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
sub esp, 3
add esp, 2
mov byte [esp], bl
stc
sub esp, 0x15
lea esp, [esp + 2]
xor ecx, edx
push sp
mov byte [esp], al
mov byte [esp], bh
lea esp, [esp + 1]
mov byte [esp], dh
pushfd
lea esp, [esp + 1]
mov byte [esp + 1], bl
lea esp, [esp + 0x18]
mov dword [eax + 0x18], ecx
push ebx
pushal
mov bh, 0xb2
xchg ch, dl
bswap bx
mov dx, bp
lea ebx, [esi*4]
mov dword [esp + 0x10], eax
pushal
push di
lea esp, [esp + 2]
lea esp, [esp + 0x20]
popal
lea ebx, [ebx + 0xc]
mov edx, dword [ebx]
pop ebx
xor edx, ecx
push ebx
mov ebx, eax
lea ebx, [ebx + 0x1c]
mov dword [ebx], edx
pop ebx
cmp ebx, 0x603f88
jne 0x61d0ff
push 0xa
pop eax
pop edi
pop esi
lea ebp, [ecx + edx]
lea ebp, [edi + 0x88]
lea ebp, [edx + edi]
lea ebp, [esi - 0x31]
lea ebp, [edi*4]
mov ebp, 0x5c6e5257
bswap ebp
mov ebp, dword [esp]
push eax
mov byte [esp + 1], ch
mov byte [esp + 1], ah
mov byte [esp + 2], dh
lea esp, [esp + 3]
mov byte [esp], dl
lea esp, [esp + 1]
lea esp, [esp + 4]
pop ebx
ret