Function at 0x4f7340
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x80]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
add eax, 0x200
test ebx, ebx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
je 0x4f74d3
mov eax, dword [eax + 0x3f0]
test eax, eax
je 0x4f7383
mov dword [esp + 0x38], ecx
call eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
test byte [eax + 0x3e4], 4
jne 0x4f7640
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
mov eax, dword [eax + 0x3e8]
test edx, edx
mov dword [esp + 0x3c], eax
je 0x4f74c9
mov eax, dword [esp + 0x70]
lea ebx, [esp + 0x40]
lea esi, [eax + 0x40]
lea ebp, [eax + 0x50]
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x1e4]
mov eax, dword [eax + 0x1e0]
mov dword [esp + 0x30], eax
add eax, 1
mov dword [esp + 0x34], edx
mov dword [esi + 0x1e0], eax
adc edx, 0
tzcnt eax, eax
add eax, 0xa
mov dword [esi + 0x1e4], edx
shl eax, 4
add eax, esi
mov esi, dword [esp + 0x38]
mov edx, eax
xor eax, eax
mov ecx, dword [edx + eax]
xor dword [esi + eax], ecx
add eax, 4
cmp eax, 0x10
jne 0x4f7406
mov eax, dword [edi]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
xor eax, eax
mov edx, dword [ebx + eax]
xor dword [ebp + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x4f7435
xor eax, eax
mov edx, dword [esi + eax]
xor dword [ebx + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x4f7446
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + edx]
xor dword [ebx + edx], eax
add edx, 4
cmp edx, 0x10
jne 0x4f7477
mov edx, dword [esp + 0x40]
add edi, 0x10
add ecx, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 0x38], esi
mov dword [ecx - 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [ecx - 0xc], edx
mov edx, dword [esp + 0x48]
mov dword [ecx - 8], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx - 4], edx
sub dword [esp + 0x7c], 1
jne 0x4f73c0
test eax, eax
je 0x4f74c9
add eax, 0x10
mov dword [esp], eax
call dbg.__gcry_burn_stack
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [eax + 0x3e4], 1
je 0x4f766a
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x3f4]
test eax, eax
je 0x4f74f8
mov dword [esp + 0x38], ecx
call eax
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x70]
test byte [eax + 0x3e4], 4
jne 0x4f7640
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x3ec]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x4f74c9
mov eax, dword [esp + 0x70]
lea ebx, [esp + 0x40]
lea esi, [eax + 0x40]
lea ebp, [eax + 0x50]
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x74], ecx
mov edx, dword [eax + 0x1e4]
mov eax, dword [eax + 0x1e0]
mov dword [esp + 0x30], eax
add eax, 1
mov dword [esp + 0x34], edx
mov dword [esi + 0x1e0], eax
adc edx, 0
tzcnt eax, eax
add eax, 0xa
mov dword [esi + 0x1e4], edx
shl eax, 4
add eax, esi
mov esi, dword [esp + 0x38]
mov edx, eax
xor eax, eax
mov ecx, dword [edx + eax]
xor dword [esi + eax], ecx
add eax, 4
cmp eax, 0x10
jne 0x4f7577
mov eax, dword [edi]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x40], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
xor eax, eax
mov edx, dword [esi + eax]
xor dword [ebx + eax], edx
add eax, 4
cmp eax, 0x10
jne 0x4f75a6
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
call eax
mov ecx, dword [esp + 0x30]
xor edx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esi + edx]
xor dword [ebx + edx], eax
add edx, 4
cmp edx, 0x10
jne 0x4f75d7
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x30], eax
mov eax, dword [ebx + edx]
xor dword [ebp + edx], eax
add edx, 4
cmp edx, 0x10
jne 0x4f75ef
mov edx, dword [esp + 0x40]
add edi, 0x10
add ecx, 0x10
mov dword [esp + 0x38], esi
mov eax, dword [esp + 0x30]
mov dword [ecx - 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [ecx - 0xc], edx
mov edx, dword [esp + 0x48]
mov dword [ecx - 8], edx
mov edx, dword [esp + 0x4c]
mov dword [ecx - 4], edx
sub dword [esp + 0x7c], 1
jne 0x4f7531
jmp 0x4f74ba
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call dbg._gcry_aes_aesni_ocb_crypt
add esp, 0x5c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
call dbg.prepare_decryption
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
or byte [eax + 0x3e4], 1
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x3f4]
test eax, eax
jne 0x4f74ee
jmp 0x4f74f8