Function at 0x5f4160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30
call fcn.004d28e0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
cmp dword [ebp + 0x14], 0
je 0x5f41c6
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056b510
add esp, 8
test eax, eax
je 0x5f41c6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0056adf0
add esp, 8
jmp 0x5f4acf
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.0051dd30
add esp, 4
test eax, eax
je 0x5f420a
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xa2
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x72
push 0x10
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5f4acf
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0051dd30
add esp, 4
test eax, eax
je 0x5f4251
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xa6
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0xa4
push 0x10
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5f4acf
mov edx, dword [ebp + 0x18]
push edx
call fcn.005c2cd0
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.0056ab00
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x5f4287
mov ecx, dword [ebp + 8]
push ecx
call fcn.0056ab00
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x5f42b9
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xae
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0xc0100
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
cmp dword [ebp + 0x14], 0
jne 0x5f430a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.0056acc0
add esp, 8
test eax, eax
jne 0x5f4308
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xb4
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80010
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
jmp 0x5f4350
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0056acc0
add esp, 8
test eax, eax
jne 0x5f4350
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xb9
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80010
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
push 4
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call fcn.0051df70
add esp, 8
push 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call fcn.0051df70
add esp, 8
push 4
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.0051df70
add esp, 8
xor ecx, ecx
jne 0x5f4350
push 4
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.0051df70
add esp, 8
push 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0051df70
add esp, 8
push 4
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.0051df70
add esp, 8
xor edx, edx
jne 0x5f4387
push 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
call fcn.0051df70
add esp, 8
push 4
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
call fcn.0051df70
add esp, 8
push 4
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0051df70
add esp, 8
xor eax, eax
jne 0x5f43be
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.005c2fd0
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
push edx
call fcn.005c2fd0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
push eax
call fcn.005c2fd0
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x5f445a
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xc6
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0xc0100
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.005c5280
add esp, 0x10
test eax, eax
jne 0x5f44ae
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xcb
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp - 4]
push ecx
call fcn.0051c710
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 4]
push edx
call fcn.005ff430
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add eax, 2
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f44fa
mov edx, dword [ebp - 0x30]
add edx, 2
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
jne 0x5f452c
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xd9
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.0051cd20
add esp, 8
test eax, eax
jne 0x5f4572
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xde
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
push 4
mov eax, dword [ebp - 0x24]
push eax
call fcn.0051df70
add esp, 8
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0051c710
add esp, 4
cmp eax, dword [ebp - 0x2c]
jg 0x5f45a1
mov edx, dword [ebp - 0x24]
push edx
call fcn.0051de20
add esp, 4
test eax, eax
je 0x5f45ef
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.005efee0
add esp, 0x10
test eax, eax
jne 0x5f45ef
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xea
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.005c5850
add esp, 0xc
test eax, eax
jne 0x5f4639
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xf0
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
push 4
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0051df70
add esp, 8
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.005c5850
add esp, 0xc
test eax, eax
jne 0x5f4691
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0xf5
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.0051d840
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
add ecx, 2
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0051dac0
add esp, 0x10
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
push eax
call fcn.005ff430
add esp, 4
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
je 0x5f47ac
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.0051e030
add esp, 8
test eax, eax
jne 0x5f47de
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0x109
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80003
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x14], 0
jne 0x5f4841
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp dword [eax + 0x6c], 0
je 0x5f480f
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
add esp, 0xc
test eax, eax
jne 0x5f4841
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0x110
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x80010
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005f4ae0
add esp, 0x14
test eax, eax
jne 0x5f4893
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0x116
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x99
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov dword [ebp - 0x28], 1
mov eax, dword [ebp - 0x2c]
sub eax, 1
mov dword [ebp - 0x14], eax
jmp 0x5f48ae
mov ecx, dword [ebp - 0x14]
sub ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jl 0x5f49c0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.0051d840
add esp, 8
xor eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0051dac0
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0051dac0
add esp, 0x10
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0051dac0
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x14]
xor eax, dword [edx + 0x14]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
xor edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
xor edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x14], edx
xor ecx, ecx
jne 0x5f48ce
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.005f4b60
add esp, 0x14
test eax, eax
jne 0x5f49b2
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0x166
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0xa2
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov ecx, dword [ebp - 0x28]
xor ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
jmp 0x5f48a5
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0051dac0
add esp, 0x10
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0051dac0
add esp, 0x10
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.0051dac0
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov ecx, dword [edx + 0x14]
xor ecx, dword [eax + 0x14]
and ecx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x14]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x14]
xor eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x14], eax
xor edx, edx
jne 0x5f49c0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005f4be0
add esp, 0x14
test eax, eax
jne 0x5f4aa1
call fcn.0052db80
push str.ossl_ec_scalar_mul_ladder
push 0x175
push str.cryptoecec_mult.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x88
push 0x10
call fcn.0052df00
add esp, 0xc
jmp 0x5f4aa8
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 8]
push edx
call fcn.0056ac20
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call fcn.0056ac60
add esp, 4
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.005c2f00
add esp, 4
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret