Function at 0x440140
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov edx, dword [esp + 0xd4]
mov ebx, dword [esp + 0xe0]
test edx, edx
jle 0x440467
mov eax, dword [esp + 0xdc]
test eax, eax
jle 0x440467
cmp ebx, dword [esp + 0xdc]
jge 0x4401e0
xor esi, esi
xor edi, edi
mov dword [esp + 0x10], 0xcd
mov dword [esp + 0xc], str.external_openssl_crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x79
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.00429970
test edi, edi
mov ebx, 0xffffffff
je 0x4401b9
mov dword [esp], edi
call fcn.00427840
test esi, esi
mov eax, ebx
je 0x4401cf
mov dword [esp], esi
mov dword [esp + 0x20], ebx
call fcn.00427840
mov eax, dword [esp + 0x20]
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp ebx, 0x29
jle 0x440178
lea ebp, [ebx - 0x15]
mov dword [esp + 8], 0x7a
mov dword [esp + 4], str.external_openssl_crypto_rsa_rsa_oaep.c
mov dword [esp], ebp
call fcn.00427550
mov dword [esp + 8], 0x7b
mov dword [esp + 4], str.external_openssl_crypto_rsa_rsa_oaep.c
mov dword [esp], ebx
mov edi, eax
call fcn.00427550
test eax, eax
mov esi, eax
je 0x440350
test edi, edi
je 0x440350
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [esp + 0xdc]
sub ebx, dword [esp + 0xdc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd8]
add ebx, esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcpy
movzx eax, byte [esi]
mov byte [esp + 0x24], al
call fcn.004506c0
lea edx, [esp + 0x30]
mov dword [esp], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 4], 0x14
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
lea eax, [esi + 0x15]
mov dword [esp + 8], eax
call fcn.0043fd90
mov edx, dword [esp + 0x20]
test eax, eax
jne 0x440340
xor ebx, ebx
movzx eax, byte [esi + ebx + 1]
xor byte [edx + ebx], al
add ebx, 1
cmp ebx, 0x14
jne 0x4402a8
mov dword [esp + 0x20], edx
call fcn.004506c0
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], 0x14
mov dword [esp + 4], ebp
mov dword [esp], edi
mov dword [esp + 8], edx
mov dword [esp + 0x10], eax
call fcn.0043fd90
test eax, eax
jne 0x440340
movzx edx, byte [esi + eax + 0x15]
xor byte [edi + eax], dl
add eax, 1
cmp ebp, eax
jg 0x4402e5
call fcn.004506c0
lea edx, [esp + 0x70]
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [esp], eax
call fcn.004636a0
mov edx, dword [esp + 0x20]
test eax, eax
jne 0x440381
nop
lea esi, [esi]
mov ebx, 0xffffffff
jmp 0x4401b1
mov dword [esp + 0x10], 0x7e
mov dword [esp + 0xc], str.external_openssl_crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.00429970
jmp 0x4401a8
movzx ecx, byte [esp + 0x24]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x14
mov dword [esp], edi
mov dword [esp + 0x20], ecx
call fcn.0042ace0
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebp
lea edx, [eax - 1]
not eax
and edx, eax
lea eax, [ecx - 1]
not ecx
and eax, ecx
xor ecx, ecx
and eax, edx
cdq
mov dword [esp + 0x20], edx
xor edx, edx
mov eax, dword [esp + 0x24]
movzx esi, byte [eax + ebx]
mov eax, esi
xor eax, 1
movzx eax, al
lea edi, [eax - 1]
not eax
and edi, eax
mov eax, edx
sar edi, 0x1f
not eax
and eax, edi
or edx, edi
mov ebp, eax
and eax, ebx
not ebp
add ebx, 1
and ecx, ebp
or ecx, eax
lea eax, [esi - 1]
not esi
and eax, esi
sar eax, 0x1f
or eax, edx
and dword [esp + 0x20], eax
cmp dword [esp + 0x28], ebx
jg 0x4403c7
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
test edx, eax
je 0x44017c
mov eax, ecx
mov ebx, ebp
add eax, 1
sub ebx, eax
cmp dword [esp + 0xd4], ebx
jge 0x440471
mov dword [esp + 0x10], 0xc1
mov dword [esp + 0xc], str.external_openssl_crypto_rsa_rsa_oaep.c
mov dword [esp + 8], 0x6d
mov dword [esp + 4], 0x7a
mov dword [esp], 4
call fcn.00429970
jmp 0x44017c
mov eax, 0xffffffff
jmp 0x4401cf
add eax, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0xd0]
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x4401b1